mac80211: handle HT PHY BSS membership selector value correctly
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 14 Oct 2011 22:14:49 +0000 (00:14 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Nov 2011 21:02:40 +0000 (22:02 +0100)
802.11n-2009 extends the supported rates element with a
magic value which can be used to prevent legacy stations
from joining the BSS.

However, this magic value is not a rate like the others
and the magic can simply be ignored/skipped at this late
stage.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>---
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/linux/ieee80211.h

index aeac65b4b281d683d80f671285813ca46c91faca..cbea2b1a5ac8b646b150237ef1283f6ebe7eef2d 100644 (file)
@@ -783,6 +783,9 @@ struct ieee80211_mgmt {
        } u;
 } __attribute__ ((packed));
 
+/* Supported Rates value encodings in 802.11n-2009 7.3.2.2 */
+#define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
+
 /* mgmt header + 1 byte category code */
 #define IEEE80211_MIN_ACTION_SIZE offsetof(struct ieee80211_mgmt, u.action.u)