aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-27 09:38:07 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-04-08 03:16:58 -0400
commit79ba1d8910f517c3bd39d794ddb1a5b4c03795c4 (patch)
treefaff88285c710cacce1c04beda8074b57b17801a /net/mac80211/ieee80211_i.h
parent1946bed95707ef75d85e94ebe106ce7a119ca831 (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 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 6ad019d32623..c783e996bcce 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1180,7 +1180,7 @@ struct ieee802_11_elems {
1180 const struct ieee80211_channel_sw_ie *ch_switch_ie; 1180 const struct ieee80211_channel_sw_ie *ch_switch_ie;
1181 const u8 *country_elem; 1181 const u8 *country_elem;
1182 const u8 *pwr_constr_elem; 1182 const u8 *pwr_constr_elem;
1183 const u8 *timeout_int; 1183 const struct ieee80211_timeout_interval_ie *timeout_int;
1184 const u8 *opmode_notif; 1184 const u8 *opmode_notif;
1185 1185
1186 /* length of them, respectively */ 1186 /* length of them, respectively */
@@ -1198,7 +1198,6 @@ struct ieee802_11_elems {
1198 u8 prep_len; 1198 u8 prep_len;
1199 u8 perr_len; 1199 u8 perr_len;
1200 u8 country_elem_len; 1200 u8 country_elem_len;
1201 u8 timeout_int_len;
1202 1201
1203 /* whether a parse error occurred while retrieving these elements */ 1202 /* whether a parse error occurred while retrieving these elements */
1204 bool parse_error; 1203 bool parse_error;