nl80211: add HT/VHT capabilities to AP parameters
authorJohannes Berg <johannes.berg@intel.com>
Tue, 7 Feb 2017 20:40:44 +0000 (22:40 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 5 Nov 2017 17:09:50 +0000 (18:09 +0100)
For the benefit of drivers that rebuild IEs in firmware, parse the
IEs for HT/VHT capabilities and the respective membership selector
in the (extended) supported rates. This avoids duplicating the same
code into all drivers that need this information.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h

index d2111d020cf68ed09dabb55c9478a094e7f8bf1f..354843a42dbde79a1fc7343d634ed418717cacd4 100644 (file)
@@ -1045,8 +1045,9 @@ struct ieee80211_mgmt {
        } u;
 } __packed __aligned(2);
 
-/* Supported Rates value encodings in 802.11n-2009 7.3.2.2 */
+/* Supported rates membership selectors */
 #define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
+#define BSS_MEMBERSHIP_SELECTOR_VHT_PHY        126
 
 /* mgmt header + 1 byte category code */
 #define IEEE80211_MIN_ACTION_SIZE offsetof(struct ieee80211_mgmt, u.action.u)