[PATCH 40/44] FT: handle OVER_DS reassociate client retry

michael-dev at fami-braun.de michael-dev at fami-braun.de
Wed Feb 24 03:53:46 PST 2016


From: Michael Braun <michael-dev at fami-braun.de>

Signed-off-by: Michael Braun <michael-dev at fami-braun.de>
---
 src/ap/ieee802_11.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 2bbbf99..a7903bf 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2060,6 +2060,19 @@ static void handle_assoc(struct hostapd_data *hapd,
 		 */
 		sta->flags |= WLAN_STA_AUTH;
 	} else
+	if (sta && sta->auth_alg == WLAN_AUTH_FT &&
+	    (sta->flags & WLAN_STA_AUTH) == 0 &&
+	    (sta->flags & WLAN_STA_PREAUTH_FT_OVER_DS) == 0 &&
+	    (sta->flags & WLAN_STA_ASSOC)) {
+		hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
+			       HOSTAPD_LEVEL_DEBUG,
+			       "FT: Already associated STA " MACSTR " try to "
+			       "connect without authenticated and with OVER_DS "
+			       "cleared but using FT. Ignore as it might be a "
+			       "retry.",
+			   MAC2STR(mgmt->sa));
+		return;
+	} else
 #endif /* CONFIG_IEEE80211R */
 	if (sta == NULL || (sta->flags & WLAN_STA_AUTH) == 0) {
 		hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
-- 
1.9.1




More information about the Hostap mailing list