diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2012-04-11 14:06:50 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-04-11 14:06:50 +0300 |
commit | c72bd6d49b39333b162196a245ba952037291674 (patch) | |
tree | faf71b6181920b00a3806e755873fb5ef7010cd8 | |
parent | 31b4961f02f222a5446988cd9f5f7d63acdd0508 (diff) | |
download | external_wpa_supplicant_8_ti-c72bd6d49b39333b162196a245ba952037291674.zip external_wpa_supplicant_8_ti-c72bd6d49b39333b162196a245ba952037291674.tar.gz external_wpa_supplicant_8_ti-c72bd6d49b39333b162196a245ba952037291674.tar.bz2 |
AP: Reset STA timeout_next on driver-based-SME association
The next ap_handle_timer action was already cleared when association
is handled with user space -based SME. However, this step was missing
from the driver callback for indicating new association. This could
result in the first ap_handle_timer timeout on the new association
removing the station unexpectedly. Fix this by resetting the timeout_next
in hostapd_notif_assoc().
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
intended-for: hostap-1
-rw-r--r-- | src/ap/drv_callbacks.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index bd5b908..8d24e08 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -78,6 +78,12 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, sta = ap_get_sta(hapd, addr); if (sta) { accounting_sta_stop(hapd, sta); + + /* + * Make sure that the previously registered inactivity timer + * will not remove the STA immediately. + */ + sta->timeout_next = STA_NULLFUNC; } else { sta = ap_sta_add(hapd, addr); if (sta == NULL) |