mac80211: handle extended channel switch announcement
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Mar 2013 14:17:18 +0000 (15:17 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 31 May 2013 15:27:43 +0000 (17:27 +0200)
Handle the (public) extended channel switch announcement
action frames. Parts of the data in these frames isn't
really in IEs, but put it into the elems struct anyway
to simplify the handling.

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

index 5d7b15fc77b0b5f7d59d10b3459ce1a9abfa3f5f..94011dafc00604eaa1da13e5b49c9bb78e581b1f 100644 (file)
@@ -845,6 +845,11 @@ struct ieee80211_mgmt {
                                        u8 action_code;
                                        u8 variable[0];
                                } __packed chan_switch;
+                               struct{
+                                       u8 action_code;
+                                       struct ieee80211_ext_chansw_ie data;
+                                       u8 variable[0];
+                               } __packed ext_chan_switch;
                                struct{
                                        u8 action_code;
                                        u8 dialog_token;
@@ -1800,6 +1805,7 @@ enum ieee80211_key_len {
 
 /* Public action codes */
 enum ieee80211_pub_actioncode {
+       WLAN_PUB_ACTION_EXT_CHANSW_ANN = 4,
        WLAN_PUB_ACTION_TDLS_DISCOVER_RES = 14,
 };