diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-03-27 09:38:07 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 03:16:58 -0400 |
commit | 79ba1d8910f517c3bd39d794ddb1a5b4c03795c4 (patch) | |
tree | faff88285c710cacce1c04beda8074b57b17801a /include/linux/ieee80211.h | |
parent | 1946bed95707ef75d85e94ebe106ce7a119ca831 (diff) |
mac80211: parse Timeout Interval Element using a struct
Instead of open-coding the accesses and length check do
the length check in the IE parser and assign a struct
pointer for use in the remaining code.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/linux/ieee80211.h')
-rw-r--r-- | include/linux/ieee80211.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index d10b5bba3268..e46fea8b972e 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -1955,6 +1955,16 @@ enum ieee80211_timeout_interval_type { | |||
1955 | WLAN_TIMEOUT_ASSOC_COMEBACK = 3 /* 802.11w */, | 1955 | WLAN_TIMEOUT_ASSOC_COMEBACK = 3 /* 802.11w */, |
1956 | }; | 1956 | }; |
1957 | 1957 | ||
1958 | /** | ||
1959 | * struct ieee80211_timeout_interval_ie - Timeout Interval element | ||
1960 | * @type: type, see &enum ieee80211_timeout_interval_type | ||
1961 | * @value: timeout interval value | ||
1962 | */ | ||
1963 | struct ieee80211_timeout_interval_ie { | ||
1964 | u8 type; | ||
1965 | __le32 value; | ||
1966 | } __packed; | ||
1967 | |||
1958 | /* BACK action code */ | 1968 | /* BACK action code */ |
1959 | enum ieee80211_back_actioncode { | 1969 | enum ieee80211_back_actioncode { |
1960 | WLAN_ACTION_ADDBA_REQ = 0, | 1970 | WLAN_ACTION_ADDBA_REQ = 0, |