During BSS reload (ctrl iface or SIGHUP) need to reconfigure the group rekey timer, as it might change for specific BSS via the new config file. If not reconfigured, the previous running timer will need to expire in order to apply the new group rekey timeout. Signed-off-by: Nikita Chernikov <nchernikov@xxxxxxxxxxxxx> --- src/ap/wpa_auth.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index ffb88a03f..671eacd2c 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -652,6 +652,18 @@ static void wpa_auth_pmksa_free_cb(struct rsn_pmksa_cache_entry *entry, â??â??â??â??â??wpa_auth_for_each_sta(wpa_auth, wpa_auth_pmksa_clear_cb, entry); } +static void wpa_reconfig_group_rekey_timer(struct wpa_authenticator *wpa_auth) +{ +â??â??â??â??â??if (!wpa_auth) +â??â??â??â??â??â??â??â??â??â??â??return; + +â??â??â??â??â??eloop_cancel_timeout(wpa_rekey_ptk, wpa_auth, NULL); + +â??â??â??â??â??if (wpa_auth->conf.wpa_group_rekey) { +â??â??â??â??â??â??â??â??â??â??â??eloop_register_timeout(wpa_auth->conf.wpa_group_rekey, +â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? 0, wpa_rekey_gtk, wpa_auth, NULL); +â??â??â??â??â??} +} static int wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? struct wpa_group *group) @@ -990,6 +1002,8 @@ int wpa_reconfig(struct wpa_authenticator *wpa_auth, â??â??â??â??â??group->GInit = false; â??â??â??â??â??wpa_group_sm_step(wpa_auth, group); +â??â??â??â??â??wpa_reconfig_group_rekey_timer(wpa_auth); + â??â??â??â??â??return 0; } -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap