mac80211: add parsing of TDLS specific IEs
authorArik Nemtsov <arik@wizery.com>
Sun, 9 Nov 2014 16:50:18 +0000 (18:50 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Thu, 1 Jan 2015 14:58:45 +0000 (15:58 +0100)
These are used in TDLS channel switching code.

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

index 5a110ad649212e8067a6fb3bd4203510f835b4c5..64d65a673ac14142026ac6469987776e8421d31b 100644 (file)
@@ -1070,6 +1070,12 @@ struct ieee80211_pspoll {
 
 /* TDLS */
 
+/* Channel switch timing */
+struct ieee80211_ch_switch_timing {
+       __le16 switch_time;
+       __le16 switch_timeout;
+} __packed;
+
 /* Link-id information element */
 struct ieee80211_tdls_lnkie {
        u8 ie_type; /* Link Identifier IE */
@@ -1111,6 +1117,15 @@ struct ieee80211_tdls_data {
                        u8 dialog_token;
                        u8 variable[0];
                } __packed discover_req;
+               struct {
+                       u8 target_channel;
+                       u8 oper_class;
+                       u8 variable[0];
+               } __packed chan_switch_req;
+               struct {
+                       __le16 status_code;
+                       u8 variable[0];
+               } __packed chan_switch_resp;
        } u;
 } __packed;