aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-18 10:54:50 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-21 16:20:49 -0500
commitdd76986b0e398978ca32dd60c1b7dc50ab4e9ae1 (patch)
treefea61a3dcb75a0c90e772b2beeaf4edb49ae7b50 /net/mac80211/ieee80211_i.h
parent80b998993d97d8a13589f8462e62a60298c72cf2 (diff)
cfg80211/mac80211: Revert "move information element parsing logic to cfg80211"
No other driver ever ended up using this, and the commit forgot to move the prototype so no driver could have used it. Revert it, if any driver shows up and needs it it can be moved again, but until then it's more efficient to have it in mac80211 where the only user is. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index f2785056d8d9..17661df1515f 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1040,6 +1040,69 @@ struct ieee80211_ra_tid {
1040 u16 tid; 1040 u16 tid;
1041}; 1041};
1042 1042
1043/* Parsed Information Elements */
1044struct ieee802_11_elems {
1045 u8 *ie_start;
1046 size_t total_len;
1047
1048 /* pointers to IEs */
1049 u8 *ssid;
1050 u8 *supp_rates;
1051 u8 *fh_params;
1052 u8 *ds_params;
1053 u8 *cf_params;
1054 struct ieee80211_tim_ie *tim;
1055 u8 *ibss_params;
1056 u8 *challenge;
1057 u8 *wpa;
1058 u8 *rsn;
1059 u8 *erp_info;
1060 u8 *ext_supp_rates;
1061 u8 *wmm_info;
1062 u8 *wmm_param;
1063 struct ieee80211_ht_cap *ht_cap_elem;
1064 struct ieee80211_ht_info *ht_info_elem;
1065 struct ieee80211_meshconf_ie *mesh_config;
1066 u8 *mesh_id;
1067 u8 *peering;
1068 u8 *preq;
1069 u8 *prep;
1070 u8 *perr;
1071 struct ieee80211_rann_ie *rann;
1072 u8 *ch_switch_elem;
1073 u8 *country_elem;
1074 u8 *pwr_constr_elem;
1075 u8 *quiet_elem; /* first quite element */
1076 u8 *timeout_int;
1077
1078 /* length of them, respectively */
1079 u8 ssid_len;
1080 u8 supp_rates_len;
1081 u8 fh_params_len;
1082 u8 ds_params_len;
1083 u8 cf_params_len;
1084 u8 tim_len;
1085 u8 ibss_params_len;
1086 u8 challenge_len;
1087 u8 wpa_len;
1088 u8 rsn_len;
1089 u8 erp_info_len;
1090 u8 ext_supp_rates_len;
1091 u8 wmm_info_len;
1092 u8 wmm_param_len;
1093 u8 mesh_id_len;
1094 u8 peering_len;
1095 u8 preq_len;
1096 u8 prep_len;
1097 u8 perr_len;
1098 u8 ch_switch_elem_len;
1099 u8 country_elem_len;
1100 u8 pwr_constr_elem_len;
1101 u8 quiet_elem_len;
1102 u8 num_of_quiet_elem; /* can be more the one */
1103 u8 timeout_int_len;
1104};
1105
1043static inline struct ieee80211_local *hw_to_local( 1106static inline struct ieee80211_local *hw_to_local(
1044 struct ieee80211_hw *hw) 1107 struct ieee80211_hw *hw)
1045{ 1108{