]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
VHT: Use status code 104 to indicate VHT required
authorJouni Malinen <j@w1.fi>
Tue, 24 Dec 2013 19:19:45 +0000 (21:19 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 24 Dec 2013 19:19:45 +0000 (21:19 +0200)
IEEE Std 802.11ac-2013 defines a status code for this, so use that
instead of the unspecified reason.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/ieee802_11.c
src/common/ieee802_11_defs.h

index 6f013fb18048a1f7afe5a33555650cc0b3035bd4..88f575a5913fab6d94bcdfc56e7644037f472229 100644 (file)
@@ -925,7 +925,7 @@ static u16 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
                hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
                               HOSTAPD_LEVEL_INFO, "Station does not support "
                               "mandatory VHT PHY - reject association");
-               return WLAN_STATUS_UNSPECIFIED_FAILURE;
+               return WLAN_STATUS_ASSOC_DENIED_NO_VHT;
        }
 #endif /* CONFIG_IEEE80211AC */
 
index 9b2d54f4abb691e3439592b4d7fb925841ac7970..c2bf09d1237fff7cbae7e2d3d198680bdb901590 100644 (file)
 #define WLAN_STATUS_ANTI_CLOGGING_TOKEN_REQ 76
 #define WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED 77
 #define WLAN_STATUS_TRANSMISSION_FAILURE 79
+#define WLAN_STATUS_ASSOC_DENIED_NO_VHT 104
 
 /* Reason codes (IEEE 802.11-2007, 7.3.1.7, Table 7-22) */
 #define WLAN_REASON_UNSPECIFIED 1