[PATCH 2/3] AP: disconnect station on (Re)Assoc Resp xmit fail
Michal Kazior
michal.kazior
Thu Jul 9 05:26:25 PDT 2015
Station entry should be removed from driver to
avoid unprivilaged traffic. It's also worth it to
Deauth.
Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
---
src/ap/ieee802_11.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 957fd02eff24..cf3567fd3031 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2426,6 +2426,9 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211,
HOSTAPD_LEVEL_DEBUG,
"did not acknowledge association response");
+ hostapd_drv_sta_remove(hapd, sta->addr);
+ ap_sta_disconnect(hapd, sta, sta->addr,
+ WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY);
sta->flags &= ~WLAN_STA_ASSOC_REQ_OK;
return;
}
--
2.1.4
More information about the Hostap
mailing list