diff options
-rw-r--r-- | drivers/net/wireless/airo.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_rx.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw_rx.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/mesh.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/scan.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/main.h | 2 |
9 files changed, 19 insertions, 16 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 3cd05a7173f6..57f7db1ac31b 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -7433,7 +7433,7 @@ static inline char *airo_translate_scan(struct net_device *dev, | |||
7433 | num_null_ies++; | 7433 | num_null_ies++; |
7434 | break; | 7434 | break; |
7435 | 7435 | ||
7436 | case WLAN_EID_GENERIC: | 7436 | case WLAN_EID_VENDOR_SPECIFIC: |
7437 | if (ie[1] >= 4 && | 7437 | if (ie[1] >= 4 && |
7438 | ie[2] == 0x00 && | 7438 | ie[2] == 0x00 && |
7439 | ie[3] == 0x50 && | 7439 | ie[3] == 0x50 && |
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 99a75d92c6cf..277089963eb4 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -301,7 +301,7 @@ static bool ath6kl_cfg80211_ready(struct ath6kl_vif *vif) | |||
301 | 301 | ||
302 | static bool ath6kl_is_wpa_ie(const u8 *pos) | 302 | static bool ath6kl_is_wpa_ie(const u8 *pos) |
303 | { | 303 | { |
304 | return pos[0] == WLAN_EID_WPA && pos[1] >= 4 && | 304 | return pos[0] == WLAN_EID_VENDOR_SPECIFIC && pos[1] >= 4 && |
305 | pos[2] == 0x00 && pos[3] == 0x50 && | 305 | pos[2] == 0x00 && pos[3] == 0x50 && |
306 | pos[4] == 0xf2 && pos[5] == 0x01; | 306 | pos[4] == 0xf2 && pos[5] == 0x01; |
307 | } | 307 | } |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index c1abaa6db59e..0e952092ee8f 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | |||
@@ -2679,7 +2679,7 @@ brcmf_find_wpaie(u8 *parse, u32 len) | |||
2679 | { | 2679 | { |
2680 | struct brcmf_tlv *ie; | 2680 | struct brcmf_tlv *ie; |
2681 | 2681 | ||
2682 | while ((ie = brcmf_parse_tlvs(parse, len, WLAN_EID_WPA))) { | 2682 | while ((ie = brcmf_parse_tlvs(parse, len, WLAN_EID_VENDOR_SPECIFIC))) { |
2683 | if (brcmf_tlv_has_ie((u8 *)ie, &parse, &len, | 2683 | if (brcmf_tlv_has_ie((u8 *)ie, &parse, &len, |
2684 | WPA_OUI, TLV_OUI_LEN, WPA_OUI_TYPE)) | 2684 | WPA_OUI, TLV_OUI_LEN, WPA_OUI_TYPE)) |
2685 | return (struct brcmf_vs_tlv *)ie; | 2685 | return (struct brcmf_vs_tlv *)ie; |
diff --git a/drivers/net/wireless/hostap/hostap_80211_rx.c b/drivers/net/wireless/hostap/hostap_80211_rx.c index df7050abe717..d39e3e24077b 100644 --- a/drivers/net/wireless/hostap/hostap_80211_rx.c +++ b/drivers/net/wireless/hostap/hostap_80211_rx.c | |||
@@ -415,7 +415,7 @@ static void hostap_rx_sta_beacon(local_info_t *local, struct sk_buff *skb, | |||
415 | ssid = pos + 2; | 415 | ssid = pos + 2; |
416 | ssid_len = pos[1]; | 416 | ssid_len = pos[1]; |
417 | break; | 417 | break; |
418 | case WLAN_EID_GENERIC: | 418 | case WLAN_EID_VENDOR_SPECIFIC: |
419 | if (pos[1] >= 4 && | 419 | if (pos[1] >= 4 && |
420 | pos[2] == 0x00 && pos[3] == 0x50 && | 420 | pos[2] == 0x00 && pos[3] == 0x50 && |
421 | pos[4] == 0xf2 && pos[5] == 1) { | 421 | pos[4] == 0xf2 && pos[5] == 1) { |
diff --git a/drivers/net/wireless/ipw2x00/libipw_rx.c b/drivers/net/wireless/ipw2x00/libipw_rx.c index 02e057923236..95a1ca1e895c 100644 --- a/drivers/net/wireless/ipw2x00/libipw_rx.c +++ b/drivers/net/wireless/ipw2x00/libipw_rx.c | |||
@@ -1108,7 +1108,7 @@ static const char *get_info_element_string(u16 id) | |||
1108 | MFIE_STRING(ERP_INFO); | 1108 | MFIE_STRING(ERP_INFO); |
1109 | MFIE_STRING(RSN); | 1109 | MFIE_STRING(RSN); |
1110 | MFIE_STRING(EXT_SUPP_RATES); | 1110 | MFIE_STRING(EXT_SUPP_RATES); |
1111 | MFIE_STRING(GENERIC); | 1111 | MFIE_STRING(VENDOR_SPECIFIC); |
1112 | MFIE_STRING(QOS_PARAMETER); | 1112 | MFIE_STRING(QOS_PARAMETER); |
1113 | default: | 1113 | default: |
1114 | return "UNKNOWN"; | 1114 | return "UNKNOWN"; |
@@ -1248,8 +1248,8 @@ static int libipw_parse_info_param(struct libipw_info_element | |||
1248 | LIBIPW_DEBUG_MGMT("WLAN_EID_CHALLENGE: ignored\n"); | 1248 | LIBIPW_DEBUG_MGMT("WLAN_EID_CHALLENGE: ignored\n"); |
1249 | break; | 1249 | break; |
1250 | 1250 | ||
1251 | case WLAN_EID_GENERIC: | 1251 | case WLAN_EID_VENDOR_SPECIFIC: |
1252 | LIBIPW_DEBUG_MGMT("WLAN_EID_GENERIC: %d bytes\n", | 1252 | LIBIPW_DEBUG_MGMT("WLAN_EID_VENDOR_SPECIFIC: %d bytes\n", |
1253 | info_element->len); | 1253 | info_element->len); |
1254 | if (!libipw_parse_qos_info_param_IE(info_element, | 1254 | if (!libipw_parse_qos_info_param_IE(info_element, |
1255 | network)) | 1255 | network)) |
diff --git a/drivers/net/wireless/libertas/mesh.c b/drivers/net/wireless/libertas/mesh.c index 97807751ebcf..3e81264db81e 100644 --- a/drivers/net/wireless/libertas/mesh.c +++ b/drivers/net/wireless/libertas/mesh.c | |||
@@ -101,7 +101,7 @@ static int lbs_mesh_config(struct lbs_private *priv, uint16_t action, | |||
101 | 101 | ||
102 | switch (action) { | 102 | switch (action) { |
103 | case CMD_ACT_MESH_CONFIG_START: | 103 | case CMD_ACT_MESH_CONFIG_START: |
104 | ie->id = WLAN_EID_GENERIC; | 104 | ie->id = WLAN_EID_VENDOR_SPECIFIC; |
105 | ie->val.oui[0] = 0x00; | 105 | ie->val.oui[0] = 0x00; |
106 | ie->val.oui[1] = 0x50; | 106 | ie->val.oui[1] = 0x50; |
107 | ie->val.oui[2] = 0x43; | 107 | ie->val.oui[2] = 0x43; |
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c index 00b658d3b6ec..5896b1fb4a2d 100644 --- a/drivers/net/wireless/mwifiex/scan.c +++ b/drivers/net/wireless/mwifiex/scan.c | |||
@@ -153,7 +153,7 @@ mwifiex_is_wpa_oui_present(struct mwifiex_bssdescriptor *bss_desc, u32 cipher) | |||
153 | 153 | ||
154 | if (((bss_desc->bcn_wpa_ie) && | 154 | if (((bss_desc->bcn_wpa_ie) && |
155 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id == | 155 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id == |
156 | WLAN_EID_WPA))) { | 156 | WLAN_EID_VENDOR_SPECIFIC))) { |
157 | iebody = (struct ie_body *) bss_desc->bcn_wpa_ie->data; | 157 | iebody = (struct ie_body *) bss_desc->bcn_wpa_ie->data; |
158 | oui = &mwifiex_wpa_oui[cipher][0]; | 158 | oui = &mwifiex_wpa_oui[cipher][0]; |
159 | ret = mwifiex_search_oui_in_ie(iebody, oui); | 159 | ret = mwifiex_search_oui_in_ie(iebody, oui); |
@@ -202,7 +202,7 @@ mwifiex_is_bss_no_sec(struct mwifiex_private *priv, | |||
202 | if (!priv->sec_info.wep_enabled && !priv->sec_info.wpa_enabled && | 202 | if (!priv->sec_info.wep_enabled && !priv->sec_info.wpa_enabled && |
203 | !priv->sec_info.wpa2_enabled && ((!bss_desc->bcn_wpa_ie) || | 203 | !priv->sec_info.wpa2_enabled && ((!bss_desc->bcn_wpa_ie) || |
204 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id != | 204 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id != |
205 | WLAN_EID_WPA)) && | 205 | WLAN_EID_VENDOR_SPECIFIC)) && |
206 | ((!bss_desc->bcn_rsn_ie) || | 206 | ((!bss_desc->bcn_rsn_ie) || |
207 | ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id != | 207 | ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id != |
208 | WLAN_EID_RSN)) && | 208 | WLAN_EID_RSN)) && |
@@ -237,7 +237,8 @@ mwifiex_is_bss_wpa(struct mwifiex_private *priv, | |||
237 | { | 237 | { |
238 | if (!priv->sec_info.wep_enabled && priv->sec_info.wpa_enabled && | 238 | if (!priv->sec_info.wep_enabled && priv->sec_info.wpa_enabled && |
239 | !priv->sec_info.wpa2_enabled && ((bss_desc->bcn_wpa_ie) && | 239 | !priv->sec_info.wpa2_enabled && ((bss_desc->bcn_wpa_ie) && |
240 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id == WLAN_EID_WPA)) | 240 | ((*(bss_desc->bcn_wpa_ie)). |
241 | vend_hdr.element_id == WLAN_EID_VENDOR_SPECIFIC)) | ||
241 | /* | 242 | /* |
242 | * Privacy bit may NOT be set in some APs like | 243 | * Privacy bit may NOT be set in some APs like |
243 | * LinkSys WRT54G && bss_desc->privacy | 244 | * LinkSys WRT54G && bss_desc->privacy |
@@ -309,7 +310,8 @@ mwifiex_is_bss_adhoc_aes(struct mwifiex_private *priv, | |||
309 | if (!priv->sec_info.wep_enabled && !priv->sec_info.wpa_enabled && | 310 | if (!priv->sec_info.wep_enabled && !priv->sec_info.wpa_enabled && |
310 | !priv->sec_info.wpa2_enabled && | 311 | !priv->sec_info.wpa2_enabled && |
311 | ((!bss_desc->bcn_wpa_ie) || | 312 | ((!bss_desc->bcn_wpa_ie) || |
312 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id != WLAN_EID_WPA)) && | 313 | ((*(bss_desc->bcn_wpa_ie)). |
314 | vend_hdr.element_id != WLAN_EID_VENDOR_SPECIFIC)) && | ||
313 | ((!bss_desc->bcn_rsn_ie) || | 315 | ((!bss_desc->bcn_rsn_ie) || |
314 | ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id != WLAN_EID_RSN)) && | 316 | ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id != WLAN_EID_RSN)) && |
315 | !priv->sec_info.encryption_mode && bss_desc->privacy) { | 317 | !priv->sec_info.encryption_mode && bss_desc->privacy) { |
@@ -329,7 +331,8 @@ mwifiex_is_bss_dynamic_wep(struct mwifiex_private *priv, | |||
329 | if (!priv->sec_info.wep_enabled && !priv->sec_info.wpa_enabled && | 331 | if (!priv->sec_info.wep_enabled && !priv->sec_info.wpa_enabled && |
330 | !priv->sec_info.wpa2_enabled && | 332 | !priv->sec_info.wpa2_enabled && |
331 | ((!bss_desc->bcn_wpa_ie) || | 333 | ((!bss_desc->bcn_wpa_ie) || |
332 | ((*(bss_desc->bcn_wpa_ie)).vend_hdr.element_id != WLAN_EID_WPA)) && | 334 | ((*(bss_desc->bcn_wpa_ie)). |
335 | vend_hdr.element_id != WLAN_EID_VENDOR_SPECIFIC)) && | ||
333 | ((!bss_desc->bcn_rsn_ie) || | 336 | ((!bss_desc->bcn_rsn_ie) || |
334 | ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id != WLAN_EID_RSN)) && | 337 | ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id != WLAN_EID_RSN)) && |
335 | priv->sec_info.encryption_mode && bss_desc->privacy) { | 338 | priv->sec_info.encryption_mode && bss_desc->privacy) { |
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 0c9f70b2cbe6..552d72ed055a 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c | |||
@@ -713,7 +713,7 @@ static int mwifiex_set_wpa_ie_helper(struct mwifiex_private *priv, | |||
713 | dev_dbg(priv->adapter->dev, "cmd: Set Wpa_ie_len=%d IE=%#x\n", | 713 | dev_dbg(priv->adapter->dev, "cmd: Set Wpa_ie_len=%d IE=%#x\n", |
714 | priv->wpa_ie_len, priv->wpa_ie[0]); | 714 | priv->wpa_ie_len, priv->wpa_ie[0]); |
715 | 715 | ||
716 | if (priv->wpa_ie[0] == WLAN_EID_WPA) { | 716 | if (priv->wpa_ie[0] == WLAN_EID_VENDOR_SPECIFIC) { |
717 | priv->sec_info.wpa_enabled = true; | 717 | priv->sec_info.wpa_enabled = true; |
718 | } else if (priv->wpa_ie[0] == WLAN_EID_RSN) { | 718 | } else if (priv->wpa_ie[0] == WLAN_EID_RSN) { |
719 | priv->sec_info.wpa2_enabled = true; | 719 | priv->sec_info.wpa2_enabled = true; |
@@ -1253,7 +1253,7 @@ mwifiex_set_gen_ie_helper(struct mwifiex_private *priv, u8 *ie_data_ptr, | |||
1253 | } | 1253 | } |
1254 | pvendor_ie = (struct ieee_types_vendor_header *) ie_data_ptr; | 1254 | pvendor_ie = (struct ieee_types_vendor_header *) ie_data_ptr; |
1255 | /* Test to see if it is a WPA IE, if not, then it is a gen IE */ | 1255 | /* Test to see if it is a WPA IE, if not, then it is a gen IE */ |
1256 | if (((pvendor_ie->element_id == WLAN_EID_WPA) && | 1256 | if (((pvendor_ie->element_id == WLAN_EID_VENDOR_SPECIFIC) && |
1257 | (!memcmp(pvendor_ie->oui, wpa_oui, sizeof(wpa_oui)))) || | 1257 | (!memcmp(pvendor_ie->oui, wpa_oui, sizeof(wpa_oui)))) || |
1258 | (pvendor_ie->element_id == WLAN_EID_RSN)) { | 1258 | (pvendor_ie->element_id == WLAN_EID_RSN)) { |
1259 | 1259 | ||
diff --git a/drivers/net/wireless/orinoco/main.h b/drivers/net/wireless/orinoco/main.h index 4dadf9880a97..5a8fec26136e 100644 --- a/drivers/net/wireless/orinoco/main.h +++ b/drivers/net/wireless/orinoco/main.h | |||
@@ -39,7 +39,7 @@ static inline u8 *orinoco_get_wpa_ie(u8 *data, size_t len) | |||
39 | { | 39 | { |
40 | u8 *p = data; | 40 | u8 *p = data; |
41 | while ((p + 2 + WPA_SELECTOR_LEN) < (data + len)) { | 41 | while ((p + 2 + WPA_SELECTOR_LEN) < (data + len)) { |
42 | if ((p[0] == WLAN_EID_GENERIC) && | 42 | if ((p[0] == WLAN_EID_VENDOR_SPECIFIC) && |
43 | (memcmp(&p[2], WPA_OUI_TYPE, WPA_SELECTOR_LEN) == 0)) | 43 | (memcmp(&p[2], WPA_OUI_TYPE, WPA_SELECTOR_LEN) == 0)) |
44 | return p; | 44 | return p; |
45 | p += p[1] + 2; | 45 | p += p[1] + 2; |