mac80211: unify CSA action frame/beacon processing
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Mar 2013 13:02:26 +0000 (14:02 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 31 May 2013 15:27:28 +0000 (17:27 +0200)
CSA action frame content should be processed as variable IEs
rather than fixed to make it extensible. Unify the code and
process them just like CSA in beacons to make it easier to
extend for HT/VHT.

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

index 805364f81634321202c7e55ce6dd84f96c359360..d47a1ea0d9d2cdfabd5f71b07714263a04bf2eb3 100644 (file)
@@ -821,9 +821,7 @@ struct ieee80211_mgmt {
                                } __packed wme_action;
                                struct{
                                        u8 action_code;
-                                       u8 element_id;
-                                       u8 length;
-                                       struct ieee80211_channel_sw_ie sw_elem;
+                                       u8 variable[0];
                                } __packed chan_switch;
                                struct{
                                        u8 action_code;