@@ -2005,15 +2005,20 @@ void wpa_receive(struct wpa_authenticator *wpa_auth,
LOGGER_INFO,
"received EAPOL-Key Request for GTK rekeying");
-eloop_cancel_timeout(wpa_rekey_gtk,
- wpa_get_primary_auth(wpa_auth),
- NULL);
-if (wpa_auth_gtk_rekey_in_process(wpa_auth))
-wpa_auth_logger(wpa_auth, NULL, LOGGER_DEBUG,
-"skip new GTK rekey - already in process");
-else
-wpa_rekey_gtk(wpa_get_primary_auth(wpa_auth),
- NULL);
+if (wpa_auth->conf.wpa_group_rekey){
+eloop_cancel_timeout(wpa_rekey_gtk,
+ wpa_get_primary_auth(wpa_auth),
+ NULL);
+if (wpa_auth_gtk_rekey_in_process(wpa_auth))
+wpa_auth_logger(wpa_auth, NULL, LOGGER_DEBUG,
+"skip new GTK rekey - already in process");
+else
+wpa_rekey_gtk(wpa_get_primary_auth(wpa_auth),
+ NULL);
+} else{
+wpa_auth_logger(wpa_auth, NULL, LOGGER_INFO,
+"skip new GTK rekey - group rekeying disabled");
+}
}
} else {
/* Do not allow the same key replay counter to be reused. */