]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Fix erroneous "station tried TKIP" error
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 11 Aug 2012 07:53:03 +0000 (10:53 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Aug 2012 07:53:03 +0000 (10:53 +0300)
The commit b5fd8b18335f2a7784a1f0a5eb5dbe45976d9e21
"VHT: Do not allow use of TKIP with VHT" introduced
an off-by-one regression: a WPA/RSN 11n AP would no
longer accept stations to connect, instead it would
produce a bogus error message:
... Station tried to use TKIP with HT association.

Signed-hostapd: Christian Lamparter <chunkeey@googlemail.com>

src/ap/ieee802_11.c

index dedf72a64c4263254ab25b6110694d969b43c883..537b555a8e0267c4385c9e7cdb3e373723429460 100644 (file)
@@ -785,7 +785,7 @@ static u16 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
 #endif /* CONFIG_IEEE80211R */
 
 #ifdef CONFIG_IEEE80211N
-               if ((sta->flags & (WLAN_STA_HT | WLAN_STA_VHT)) ||
+               if ((sta->flags & (WLAN_STA_HT | WLAN_STA_VHT)) &&
                    wpa_auth_get_pairwise(sta->wpa_sm) == WPA_CIPHER_TKIP) {
                        hostapd_logger(hapd, sta->addr,
                                       HOSTAPD_MODULE_IEEE80211,