blob: 05dde2a5ac2a6af347c56bd7129f000f6a9a98bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -567,7 +567,7 @@ void ap_sta_disassociate(struct hostapd_
{
wpa_printf(MSG_DEBUG, "%s: disassociate STA " MACSTR,
hapd->conf->iface, MAC2STR(sta->addr));
- sta->flags &= ~WLAN_STA_ASSOC;
+ sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_ASSOC_REQ_OK);
ap_sta_set_authorized(hapd, sta, 0);
sta->timeout_next = STA_DEAUTH;
wpa_printf(MSG_DEBUG, "%s: reschedule ap_handle_timer timeout "
|