aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-12 10:27:04 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-15 03:41:12 -0500
commit441a33baf1805861354fb9e3149c000311b6996f (patch)
treeccde980ca5ef27401ba49be7cacd7ef37c4e43a7 /net/mac80211
parent5b36ebd8249f403c7edf7cf68d68e9a0d0f55243 (diff)
mac80211: don't pick up WPA vendor IE
There's no use for it, WPA is entirely handled in wpa_supplicant in userspace, so don't pick the IE. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/ieee80211_i.h2
-rw-r--r--net/mac80211/util.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 52bf954ef61c..8f9564460cb0 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1175,7 +1175,6 @@ struct ieee802_11_elems {
1175 struct ieee80211_tim_ie *tim; 1175 struct ieee80211_tim_ie *tim;
1176 u8 *ibss_params; 1176 u8 *ibss_params;
1177 u8 *challenge; 1177 u8 *challenge;
1178 u8 *wpa;
1179 u8 *rsn; 1178 u8 *rsn;
1180 u8 *erp_info; 1179 u8 *erp_info;
1181 u8 *ext_supp_rates; 1180 u8 *ext_supp_rates;
@@ -1208,7 +1207,6 @@ struct ieee802_11_elems {
1208 u8 tim_len; 1207 u8 tim_len;
1209 u8 ibss_params_len; 1208 u8 ibss_params_len;
1210 u8 challenge_len; 1209 u8 challenge_len;
1211 u8 wpa_len;
1212 u8 rsn_len; 1210 u8 rsn_len;
1213 u8 erp_info_len; 1211 u8 erp_info_len;
1214 u8 ext_supp_rates_len; 1212 u8 ext_supp_rates_len;
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 218cb52f2b59..b231bc2ed740 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -739,11 +739,7 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
739 if (calc_crc) 739 if (calc_crc)
740 crc = crc32_be(crc, pos - 2, elen + 2); 740 crc = crc32_be(crc, pos - 2, elen + 2);
741 741
742 if (pos[3] == 1) { 742 if (elen >= 5 && pos[3] == 2) {
743 /* OUI Type 1 - WPA IE */
744 elems->wpa = pos;
745 elems->wpa_len = elen;
746 } else if (elen >= 5 && pos[3] == 2) {
747 /* OUI Type 2 - WMM IE */ 743 /* OUI Type 2 - WMM IE */
748 if (pos[4] == 0) { 744 if (pos[4] == 0) {
749 elems->wmm_info = pos; 745 elems->wmm_info = pos;