aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-05-28 14:37:47 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 09:44:27 (GMT)
commitfbbb4bb0921a967b97791b06a28ec7ae3c2e5307 (patch)
tree0791634dbf9fbfbc56eb014c1c5bb0ca36cd6e2d
parent78ba968c0c96abcb88ebf093df468a2d9c9c5666 (diff)
downloadhostap-06-fbbb4bb0921a967b97791b06a28ec7ae3c2e5307.zip
hostap-06-fbbb4bb0921a967b97791b06a28ec7ae3c2e5307.tar.gz
hostap-06-fbbb4bb0921a967b97791b06a28ec7ae3c2e5307.tar.bz2
Fix STA flag setting for auto-authorization if 802.1X/WPA is not used
The authorized flag needs to be added to the set_flags mask to fix the flags_or/_and values that are now used with the new nl80211 attribute. (cherry picked from commit 8077a80042c371c6c79e4f1e576943c2c64a6d4e)
-rw-r--r--hostapd/ieee802_11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c
index 5b8f0d9..3ea0a2c 100644
--- a/hostapd/ieee802_11.c
+++ b/hostapd/ieee802_11.c
@@ -1679,6 +1679,9 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
}
set_flags = WLAN_STA_SHORT_PREAMBLE | WLAN_STA_WMM | WLAN_STA_MFP;
+ if (!hapd->conf->ieee802_1x && !hapd->conf->wpa &&
+ sta->flags & WLAN_STA_AUTHORIZED)
+ set_flags |= WLAN_STA_AUTHORIZED;
flags_or = sta->flags & set_flags;
flags_and = sta->flags | ~set_flags;
hostapd_sta_set_flags(hapd, sta->addr, sta->flags,