mac80211: add extended channel switching capability if the driver supports CSA
authorLuciano Coelho <luciano.coelho@intel.com>
Wed, 8 Oct 2014 06:48:36 +0000 (09:48 +0300)
committerChristian Lamparter <chunkeey@googlemail.com>
Thu, 1 Jan 2015 13:52:28 +0000 (14:52 +0100)
The Extended Channel Switching capability bit in the extended
capabilities element must be set if the driver supports CSA on
non-beaconing interfaces.

Since this capability needs to be set during driver registration, the
extended_capabiliities global variable needs to be moved to the local
structure so that it can be modified.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/linux/ieee80211.h

index f3699e3dc64872e0fc3bb783b62627c131be2625..6ddfcccdb72b9bb1eb9e8f30d3b2da32d89c1f89 100644 (file)
@@ -2018,6 +2018,11 @@ enum ieee80211_tdls_actioncode {
        WLAN_TDLS_DISCOVERY_REQUEST = 10,
 };
 
+/* Extended Channel Switching capability to be set in the 1st byte of
+ * the @WLAN_EID_EXT_CAPABILITY information element
+ */
+#define WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING   BIT(2)
+
 /* Interworking capabilities are set in 7th bit of 4th byte of the
  * @WLAN_EID_EXT_CAPABILITY information element
  */