Commit 9300c94b authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove duplicate #defines for WLAN_EID_VENDOR_SPECIFIC

Lets not keep one local copy ... no lets keep two ... no lets keep three!
Rip them all out and use the kernel provided one.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 597baaff
...@@ -927,7 +927,7 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter, u8 *pbuf, int len) ...@@ -927,7 +927,7 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter, u8 *pbuf, int len)
psecuritypriv->wpa_group_cipher = _NO_PRIVACY_; psecuritypriv->wpa_group_cipher = _NO_PRIVACY_;
psecuritypriv->wpa_pairwise_cipher = _NO_PRIVACY_; psecuritypriv->wpa_pairwise_cipher = _NO_PRIVACY_;
for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2)) { for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2)) {
p = rtw_get_ie23a(p, _SSN_IE_1_, &ie_len, p = rtw_get_ie23a(p, WLAN_EID_VENDOR_SPECIFIC, &ie_len,
(pbss_network->IELength - _BEACON_IE_OFFSET_ - (pbss_network->IELength - _BEACON_IE_OFFSET_ -
(ie_len + 2))); (ie_len + 2)));
if ((p) && (!memcmp(p+2, OUI1, 4))) { if ((p) && (!memcmp(p+2, OUI1, 4))) {
...@@ -955,7 +955,7 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter, u8 *pbuf, int len) ...@@ -955,7 +955,7 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter, u8 *pbuf, int len)
pmlmepriv->qospriv.qos_option = 0; pmlmepriv->qospriv.qos_option = 0;
if (pregistrypriv->wmm_enable) { if (pregistrypriv->wmm_enable) {
for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2)) { for (p = ie + _BEACON_IE_OFFSET_; ;p += (ie_len + 2)) {
p = rtw_get_ie23a(p, _VENDOR_SPECIFIC_IE_, &ie_len, p = rtw_get_ie23a(p, WLAN_EID_VENDOR_SPECIFIC, &ie_len,
(pbss_network->IELength - (pbss_network->IELength -
_BEACON_IE_OFFSET_ - (ie_len + 2))); _BEACON_IE_OFFSET_ - (ie_len + 2)));
if ((p) && !memcmp(p+2, WMM_PARA_IE, 6)) { if ((p) && !memcmp(p+2, WMM_PARA_IE, 6)) {
...@@ -1374,7 +1374,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx) ...@@ -1374,7 +1374,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
update_bcn_htinfo_ie(padapter); update_bcn_htinfo_ie(padapter);
break; break;
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
update_bcn_vendor_spec_ie(padapter, oui); update_bcn_vendor_spec_ie(padapter, oui);
break; break;
......
...@@ -469,7 +469,8 @@ unsigned char *rtw_get_wpa_ie23a(unsigned char *pie, int *wpa_ie_len, int limit) ...@@ -469,7 +469,8 @@ unsigned char *rtw_get_wpa_ie23a(unsigned char *pie, int *wpa_ie_len, int limit)
int limit_new = limit; int limit_new = limit;
while(1) { while(1) {
pbuf = rtw_get_ie23a(pbuf, _WPA_IE_ID_, &len, limit_new); pbuf = rtw_get_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC,
&len, limit_new);
if (pbuf) { if (pbuf) {
/* check if oui matches... */ /* check if oui matches... */
...@@ -557,7 +558,8 @@ int rtw_parse_wpa_ie23a(u8* wpa_ie, int wpa_ie_len, int *group_cipher, int *pair ...@@ -557,7 +558,8 @@ int rtw_parse_wpa_ie23a(u8* wpa_ie, int wpa_ie_len, int *group_cipher, int *pair
return _FAIL; return _FAIL;
} }
if ((*wpa_ie != _WPA_IE_ID_) || (*(wpa_ie+1) != (u8)(wpa_ie_len - 2)) || if ((*wpa_ie != WLAN_EID_VENDOR_SPECIFIC) ||
(*(wpa_ie+1) != (u8)(wpa_ie_len - 2)) ||
memcmp(wpa_ie + 2, RTW_WPA_OUI23A_TYPE, WPA_SELECTOR_LEN)) { memcmp(wpa_ie + 2, RTW_WPA_OUI23A_TYPE, WPA_SELECTOR_LEN)) {
return _FAIL; return _FAIL;
} }
...@@ -719,7 +721,7 @@ int rtw_get_sec_ie23a(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, ...@@ -719,7 +721,7 @@ int rtw_get_sec_ie23a(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
while(cnt < in_len) { while(cnt < in_len) {
authmode = in_ie[cnt]; authmode = in_ie[cnt];
if ((authmode == _WPA_IE_ID_) && if ((authmode == WLAN_EID_VENDOR_SPECIFIC) &&
!memcmp(&in_ie[cnt+2], &wpa_oui[0], 4)) { !memcmp(&in_ie[cnt+2], &wpa_oui[0], 4)) {
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_,
("\n rtw_get_wpa_ie23a: sec_idx =%d " ("\n rtw_get_wpa_ie23a: sec_idx =%d "
...@@ -788,7 +790,8 @@ u8 rtw_is_wps_ie23a(u8 *ie_ptr, uint *wps_ielen) ...@@ -788,7 +790,8 @@ u8 rtw_is_wps_ie23a(u8 *ie_ptr, uint *wps_ielen)
eid = ie_ptr[0]; eid = ie_ptr[0];
if ((eid == _WPA_IE_ID_) && !memcmp(&ie_ptr[2], wps_oui, 4)) { if ((eid == WLAN_EID_VENDOR_SPECIFIC) &&
!memcmp(&ie_ptr[2], wps_oui, 4)) {
/* DBG_8723A("==> found WPS_IE.....\n"); */ /* DBG_8723A("==> found WPS_IE.....\n"); */
*wps_ielen = ie_ptr[1] + 2; *wps_ielen = ie_ptr[1] + 2;
match = true; match = true;
...@@ -824,7 +827,8 @@ u8 *rtw_get_wps_ie23a(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) ...@@ -824,7 +827,8 @@ u8 *rtw_get_wps_ie23a(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen)
while (cnt < in_len) { while (cnt < in_len) {
eid = in_ie[cnt]; eid = in_ie[cnt];
if ((eid == _WPA_IE_ID_) && !memcmp(&in_ie[cnt+2], wps_oui, 4)) { if ((eid == WLAN_EID_VENDOR_SPECIFIC) &&
!memcmp(&in_ie[cnt+2], wps_oui, 4)) {
wpsie_ptr = &in_ie[cnt]; wpsie_ptr = &in_ie[cnt];
if (wps_ie) if (wps_ie)
...@@ -866,7 +870,7 @@ u8 *rtw_get_wps_attr23a(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, ...@@ -866,7 +870,7 @@ u8 *rtw_get_wps_attr23a(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
if (len_attr) if (len_attr)
*len_attr = 0; *len_attr = 0;
if ((wps_ie[0] != _VENDOR_SPECIFIC_IE_) || if ((wps_ie[0] != WLAN_EID_VENDOR_SPECIFIC) ||
memcmp(wps_ie + 2, wps_oui, 4)) { memcmp(wps_ie + 2, wps_oui, 4)) {
return attr_ptr; return attr_ptr;
} }
...@@ -1305,7 +1309,7 @@ u8 *rtw_get_p2p_ie23a(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen) ...@@ -1305,7 +1309,7 @@ u8 *rtw_get_p2p_ie23a(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen)
dump_stack(); dump_stack();
return NULL; return NULL;
} }
if ((eid == _VENDOR_SPECIFIC_IE_) && if ((eid == WLAN_EID_VENDOR_SPECIFIC) &&
!memcmp(&in_ie[cnt + 2], p2p_oui, 4)) { !memcmp(&in_ie[cnt + 2], p2p_oui, 4)) {
p2p_ie_ptr = in_ie + cnt; p2p_ie_ptr = in_ie + cnt;
...@@ -1351,7 +1355,7 @@ u8 *rtw_get_p2p_attr23a(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id, ...@@ -1351,7 +1355,7 @@ u8 *rtw_get_p2p_attr23a(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id,
if (len_attr) if (len_attr)
*len_attr = 0; *len_attr = 0;
if (!p2p_ie || (p2p_ie[0] != _VENDOR_SPECIFIC_IE_) || if (!p2p_ie || (p2p_ie[0] != WLAN_EID_VENDOR_SPECIFIC) ||
memcmp(p2p_ie + 2, p2p_oui, 4)) { memcmp(p2p_ie + 2, p2p_oui, 4)) {
return attr_ptr; return attr_ptr;
} }
...@@ -1531,7 +1535,7 @@ int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id, ...@@ -1531,7 +1535,7 @@ int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id,
match = false; match = false;
if ((wfd_ie[0] != _VENDOR_SPECIFIC_IE_) || if ((wfd_ie[0] != WLAN_EID_VENDOR_SPECIFIC) ||
memcmp(wfd_ie + 2, wfd_oui, 4)) { memcmp(wfd_ie + 2, wfd_oui, 4)) {
return match; return match;
} }
......
...@@ -2014,7 +2014,7 @@ _rtw_report_sec_ie(struct rtw_adapter *adapter, u8 authmode, u8 *sec_ie) ...@@ -2014,7 +2014,7 @@ _rtw_report_sec_ie(struct rtw_adapter *adapter, u8 authmode, u8 *sec_ie)
("+_rtw_report_sec_ie, authmode =%d\n", authmode)); ("+_rtw_report_sec_ie, authmode =%d\n", authmode));
buff = NULL; buff = NULL;
if (authmode == _WPA_IE_ID_) { if (authmode == WLAN_EID_VENDOR_SPECIFIC) {
RT_TRACE(_module_mlme_osdep_c_, _drv_info_, RT_TRACE(_module_mlme_osdep_c_, _drv_info_,
("_rtw_report_sec_ie, authmode =%d\n", authmode)); ("_rtw_report_sec_ie, authmode =%d\n", authmode));
...@@ -2064,7 +2064,7 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie, ...@@ -2064,7 +2064,7 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie,
ielength = 12; ielength = 12;
if ((ndisauthmode==Ndis802_11AuthModeWPA) || if ((ndisauthmode==Ndis802_11AuthModeWPA) ||
(ndisauthmode==Ndis802_11AuthModeWPAPSK)) (ndisauthmode==Ndis802_11AuthModeWPAPSK))
authmode=_WPA_IE_ID_; authmode = WLAN_EID_VENDOR_SPECIFIC;
if ((ndisauthmode==Ndis802_11AuthModeWPA2) || if ((ndisauthmode==Ndis802_11AuthModeWPA2) ||
(ndisauthmode==Ndis802_11AuthModeWPA2PSK)) (ndisauthmode==Ndis802_11AuthModeWPA2PSK))
authmode=_WPA2_IE_ID_; authmode=_WPA2_IE_ID_;
...@@ -2074,7 +2074,8 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie, ...@@ -2074,7 +2074,8 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie,
psecuritypriv->wps_ie_len); psecuritypriv->wps_ie_len);
ielength += psecuritypriv->wps_ie_len; ielength += psecuritypriv->wps_ie_len;
} else if ((authmode==_WPA_IE_ID_) || (authmode==_WPA2_IE_ID_)) { } else if ((authmode == WLAN_EID_VENDOR_SPECIFIC) ||
(authmode==_WPA2_IE_ID_)) {
/* copy RSN or SSN */ /* copy RSN or SSN */
memcpy(&out_ie[ielength], &psecuritypriv->supplicant_ie[0], memcpy(&out_ie[ielength], &psecuritypriv->supplicant_ie[0],
psecuritypriv->supplicant_ie[1] + 2); psecuritypriv->supplicant_ie[1] + 2);
...@@ -2242,7 +2243,7 @@ unsigned int rtw_restructure_ht_ie23a(struct rtw_adapter *padapter, u8 *in_ie, ...@@ -2242,7 +2243,7 @@ unsigned int rtw_restructure_ht_ie23a(struct rtw_adapter *padapter, u8 *in_ie,
if (pqospriv->qos_option == 0) { if (pqospriv->qos_option == 0) {
out_len = *pout_len; out_len = *pout_len;
pframe = rtw_set_ie23a(out_ie + out_len, pframe = rtw_set_ie23a(out_ie + out_len,
_VENDOR_SPECIFIC_IE_, WLAN_EID_VENDOR_SPECIFIC,
_WMM_IE_Length_, WMM_IE, pout_len); _WMM_IE_Length_, WMM_IE, pout_len);
pqospriv->qos_option = 1; pqospriv->qos_option = 1;
......
...@@ -1543,7 +1543,10 @@ unsigned int OnAssocReq23a(struct rtw_adapter *padapter, struct recv_frame *prec ...@@ -1543,7 +1543,10 @@ unsigned int OnAssocReq23a(struct rtw_adapter *padapter, struct recv_frame *prec
p = pframe + sizeof(struct ieee80211_hdr_3addr) + ie_offset; ie_len = 0; p = pframe + sizeof(struct ieee80211_hdr_3addr) + ie_offset; ie_len = 0;
for (;;) for (;;)
{ {
p = rtw_get_ie23a(p, _VENDOR_SPECIFIC_IE_, &ie_len, pkt_len - sizeof(struct ieee80211_hdr_3addr) - ie_offset); p = rtw_get_ie23a(p, WLAN_EID_VENDOR_SPECIFIC, &ie_len,
pkt_len -
sizeof(struct ieee80211_hdr_3addr) -
ie_offset);
if (p != NULL) { if (p != NULL) {
if (!memcmp(p+2, WMM_IE, 6)) { if (!memcmp(p+2, WMM_IE, 6)) {
...@@ -1826,7 +1829,7 @@ unsigned int OnAssocRsp23a(struct rtw_adapter *padapter, struct recv_frame *prec ...@@ -1826,7 +1829,7 @@ unsigned int OnAssocRsp23a(struct rtw_adapter *padapter, struct recv_frame *prec
switch (pIE->ElementID) switch (pIE->ElementID)
{ {
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
if (!memcmp(pIE->data, WMM_PARA_OUI23A, 6))/* WMM */ if (!memcmp(pIE->data, WMM_PARA_OUI23A, 6))/* WMM */
WMM_param_handler23a(padapter, pIE); WMM_param_handler23a(padapter, pIE);
#if defined(CONFIG_8723AU_P2P) #if defined(CONFIG_8723AU_P2P)
...@@ -2245,7 +2248,8 @@ void issue_p2p_GO_request23a(struct rtw_adapter *padapter, u8* raddr) ...@@ -2245,7 +2248,8 @@ void issue_p2p_GO_request23a(struct rtw_adapter *padapter, u8* raddr)
wpsielen += 2; wpsielen += 2;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, (unsigned char *) wpsie, &pattrib->pktlen); pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, wpsielen,
(unsigned char *) wpsie, &pattrib->pktlen);
/* P2P IE Section. */ /* P2P IE Section. */
...@@ -2497,7 +2501,8 @@ void issue_p2p_GO_request23a(struct rtw_adapter *padapter, u8* raddr) ...@@ -2497,7 +2501,8 @@ void issue_p2p_GO_request23a(struct rtw_adapter *padapter, u8* raddr)
/* Channel Number */ /* Channel Number */
p2pie[p2pielen++] = pwdinfo->operating_channel; /* operating channel number */ p2pie[p2pielen++] = pwdinfo->operating_channel; /* operating channel number */
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &pattrib->pktlen); pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
wfdielen = build_nego_req_wfd_ie(pwdinfo, pframe); wfdielen = build_nego_req_wfd_ie(pwdinfo, pframe);
...@@ -2641,7 +2646,7 @@ static void issue_p2p_GO_response(struct rtw_adapter *padapter, u8* raddr, u8* f ...@@ -2641,7 +2646,7 @@ static void issue_p2p_GO_response(struct rtw_adapter *padapter, u8* raddr, u8* f
} }
} }
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, wpsielen,
(unsigned char *) wpsie, &pattrib->pktlen); (unsigned char *) wpsie, &pattrib->pktlen);
/* P2P IE Section. */ /* P2P IE Section. */
...@@ -2910,7 +2915,7 @@ static void issue_p2p_GO_response(struct rtw_adapter *padapter, u8* raddr, u8* f ...@@ -2910,7 +2915,7 @@ static void issue_p2p_GO_response(struct rtw_adapter *padapter, u8* raddr, u8* f
} }
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &pattrib->pktlen); (unsigned char *) p2pie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -3115,7 +3120,7 @@ static void issue_p2p_GO_confirm(struct rtw_adapter *padapter, u8* raddr, ...@@ -3115,7 +3120,7 @@ static void issue_p2p_GO_confirm(struct rtw_adapter *padapter, u8* raddr,
p2pielen += pwdinfo->nego_ssidlen; p2pielen += pwdinfo->nego_ssidlen;
} }
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *)p2pie, &pattrib->pktlen); (unsigned char *)p2pie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -3393,7 +3398,7 @@ void issue_p2p_invitation_request23a(struct rtw_adapter *padapter, u8* raddr) ...@@ -3393,7 +3398,7 @@ void issue_p2p_invitation_request23a(struct rtw_adapter *padapter, u8* raddr)
pwdinfo->device_name_len); pwdinfo->device_name_len);
p2pielen += pwdinfo->device_name_len; p2pielen += pwdinfo->device_name_len;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &pattrib->pktlen); (unsigned char *) p2pie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -3612,7 +3617,7 @@ void issue_p2p_invitation_response23a(struct rtw_adapter *padapter, u8 *raddr, ...@@ -3612,7 +3617,7 @@ void issue_p2p_invitation_response23a(struct rtw_adapter *padapter, u8 *raddr,
} }
} }
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *)p2pie, &pattrib->pktlen); (unsigned char *)p2pie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -3721,7 +3726,7 @@ void issue_p2p_provision_request23a(struct rtw_adapter *padapter, u8 *pssid, ...@@ -3721,7 +3726,7 @@ void issue_p2p_provision_request23a(struct rtw_adapter *padapter, u8 *pssid,
*(u16*) (wpsie + wpsielen) = cpu_to_be16(pwdinfo->tx_prov_disc_info.wps_config_method_request); *(u16*) (wpsie + wpsielen) = cpu_to_be16(pwdinfo->tx_prov_disc_info.wps_config_method_request);
wpsielen += 2; wpsielen += 2;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, wpsielen,
(unsigned char *) wpsie, &pattrib->pktlen); (unsigned char *) wpsie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -4047,8 +4052,8 @@ void issue_probersp23a_p2p23a(struct rtw_adapter *padapter, unsigned char *da) ...@@ -4047,8 +4052,8 @@ void issue_probersp23a_p2p23a(struct rtw_adapter *padapter, unsigned char *da)
cpu_to_be16(pwdinfo->supported_wps_cm); cpu_to_be16(pwdinfo->supported_wps_cm);
wpsielen += 2; wpsielen += 2;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC,
(unsigned char *)wpsie, wpsielen, (unsigned char *)wpsie,
&pattrib->pktlen); &pattrib->pktlen);
p2pielen = build_probe_resp_p2p_ie23a(pwdinfo, pframe); p2pielen = build_probe_resp_p2p_ie23a(pwdinfo, pframe);
...@@ -4283,8 +4288,8 @@ static int _issue23a_probereq_p2p(struct rtw_adapter *padapter, u8 *da, ...@@ -4283,8 +4288,8 @@ static int _issue23a_probereq_p2p(struct rtw_adapter *padapter, u8 *da,
cpu_to_be16(WPS_DPID_REGISTRAR_SPEC); cpu_to_be16(WPS_DPID_REGISTRAR_SPEC);
wpsielen += 2; wpsielen += 2;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC,
(unsigned char *)wpsie, wpsielen, (unsigned char *)wpsie,
&pattrib->pktlen); &pattrib->pktlen);
/* P2P OUI */ /* P2P OUI */
...@@ -4393,8 +4398,8 @@ static int _issue23a_probereq_p2p(struct rtw_adapter *padapter, u8 *da, ...@@ -4393,8 +4398,8 @@ static int _issue23a_probereq_p2p(struct rtw_adapter *padapter, u8 *da,
p2pie[p2pielen++] = pwdinfo->operating_channel; p2pie[p2pielen++] = pwdinfo->operating_channel;
} }
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC,
(unsigned char *)p2pie, p2pielen, (unsigned char *)p2pie,
&pattrib->pktlen); &pattrib->pktlen);
if (pmlmepriv->wps_probe_req_ie) { if (pmlmepriv->wps_probe_req_ie) {
...@@ -6239,7 +6244,7 @@ void issue_asocrsp23a(struct rtw_adapter *padapter, unsigned short status, ...@@ -6239,7 +6244,7 @@ void issue_asocrsp23a(struct rtw_adapter *padapter, unsigned short status,
0x01, 0x01}; 0x01, 0x01};
for (pbuf = ie + _BEACON_IE_OFFSET_; ; pbuf += (ie_len + 2)) { for (pbuf = ie + _BEACON_IE_OFFSET_; ; pbuf += (ie_len + 2)) {
pbuf = rtw_get_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, pbuf = rtw_get_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC,
&ie_len, (pnetwork->IELength - &ie_len, (pnetwork->IELength -
_BEACON_IE_OFFSET_ - _BEACON_IE_OFFSET_ -
(ie_len + 2))); (ie_len + 2)));
...@@ -6257,7 +6262,7 @@ void issue_asocrsp23a(struct rtw_adapter *padapter, unsigned short status, ...@@ -6257,7 +6262,7 @@ void issue_asocrsp23a(struct rtw_adapter *padapter, unsigned short status,
} }
if (pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_REALTEK) { if (pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_REALTEK) {
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, 6, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, 6,
REALTEK_96B_IE23A, &pattrib->pktlen); REALTEK_96B_IE23A, &pattrib->pktlen);
} }
...@@ -6513,7 +6518,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter) ...@@ -6513,7 +6518,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter)
switch (pIE->ElementID) switch (pIE->ElementID)
{ {
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
if (!memcmp(pIE->data, RTW_WPA_OUI23A, 4) || if (!memcmp(pIE->data, RTW_WPA_OUI23A, 4) ||
!memcmp(pIE->data, WMM_OUI23A, 4) || !memcmp(pIE->data, WMM_OUI23A, 4) ||
!memcmp(pIE->data, WPS_OUI23A, 4)) { !memcmp(pIE->data, WPS_OUI23A, 4)) {
...@@ -6526,7 +6531,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter) ...@@ -6526,7 +6531,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter)
pIE->Length = 14; pIE->Length = 14;
} }
pframe = rtw_set_ie23a(pframe, pframe = rtw_set_ie23a(pframe,
_VENDOR_SPECIFIC_IE_, WLAN_EID_VENDOR_SPECIFIC,
pIE->Length, pIE->data, pIE->Length, pIE->data,
&pattrib->pktlen); &pattrib->pktlen);
} }
...@@ -6540,7 +6545,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter) ...@@ -6540,7 +6545,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter)
} }
if (pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_REALTEK) if (pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_REALTEK)
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, 6, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, 6,
REALTEK_96B_IE23A, &pattrib->pktlen); REALTEK_96B_IE23A, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -6704,7 +6709,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter) ...@@ -6704,7 +6709,7 @@ void issue_assocreq23a(struct rtw_adapter *padapter)
ETH_ALEN); /* P2P Interface Address List */ ETH_ALEN); /* P2P Interface Address List */
p2pielen += ETH_ALEN; p2pielen += ETH_ALEN;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC,
p2pielen, (unsigned char *)p2pie, p2pielen, (unsigned char *)p2pie,
&pattrib->pktlen); &pattrib->pktlen);
...@@ -9300,7 +9305,7 @@ u8 join_cmd_hdl23a(struct rtw_adapter *padapter, u8 *pbuf) ...@@ -9300,7 +9305,7 @@ u8 join_cmd_hdl23a(struct rtw_adapter *padapter, u8 *pbuf)
switch (pIE->ElementID) switch (pIE->ElementID)
{ {
case _VENDOR_SPECIFIC_IE_:/* Get WMM IE. */ case WLAN_EID_VENDOR_SPECIFIC:/* Get WMM IE. */
if (!memcmp(pIE->data, WMM_OUI23A, 4)) if (!memcmp(pIE->data, WMM_OUI23A, 4))
pmlmeinfo->WMM_enable = 1; pmlmeinfo->WMM_enable = 1;
break; break;
......
...@@ -256,7 +256,8 @@ static void issue_p2p_devdisc_resp(struct wifidirect_info *pwdinfo, u8 *da, u8 s ...@@ -256,7 +256,8 @@ static void issue_p2p_devdisc_resp(struct wifidirect_info *pwdinfo, u8 *da, u8 s
/* P2P_ATTR_STATUS */ /* P2P_ATTR_STATUS */
p2pielen += rtw_set_p2p_attr_content23a(&p2pie[p2pielen], P2P_ATTR_STATUS, 1, &status); p2pielen += rtw_set_p2p_attr_content23a(&p2pie[p2pielen], P2P_ATTR_STATUS, 1, &status);
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, p2pie, &pattrib->pktlen); pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
p2pie, &pattrib->pktlen);
pattrib->last_txcmdsz = pattrib->pktlen; pattrib->last_txcmdsz = pattrib->pktlen;
...@@ -340,7 +341,8 @@ static void issue_p2p_provision_resp(struct wifidirect_info *pwdinfo, u8* raddr, ...@@ -340,7 +341,8 @@ static void issue_p2p_provision_resp(struct wifidirect_info *pwdinfo, u8* raddr,
put_unaligned_be16(config_method, wpsie + wpsielen); put_unaligned_be16(config_method, wpsie + wpsielen);
wpsielen += 2; wpsielen += 2;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, (unsigned char *) wpsie, &pattrib->pktlen); pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, wpsielen,
(unsigned char *) wpsie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
wfdielen = build_provdisc_resp_wfd_ie(pwdinfo, pframe); wfdielen = build_provdisc_resp_wfd_ie(pwdinfo, pframe);
...@@ -428,8 +430,8 @@ static void issue_p2p_presence_resp(struct wifidirect_info *pwdinfo, u8 *da, u8 ...@@ -428,8 +430,8 @@ static void issue_p2p_presence_resp(struct wifidirect_info *pwdinfo, u8 *da, u8
p2pielen += rtw_set_p2p_attr_content23a(&p2pie[p2pielen], P2P_ATTR_NOA, 2, noa_attr_content); p2pielen += rtw_set_p2p_attr_content23a(&p2pie[p2pielen], P2P_ATTR_NOA, 2, noa_attr_content);
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, p2pie, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
&pattrib->pktlen); p2pie, &pattrib->pktlen);
pattrib->last_txcmdsz = pattrib->pktlen; pattrib->last_txcmdsz = pattrib->pktlen;
...@@ -481,7 +483,8 @@ u32 build_beacon_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -481,7 +483,8 @@ u32 build_beacon_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf)
/* go_add_noa_attr(pwdinfo); */ /* go_add_noa_attr(pwdinfo); */
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &len);
return len; return len;
} }
...@@ -602,7 +605,8 @@ u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -602,7 +605,8 @@ u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -713,7 +717,8 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -713,7 +717,8 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -900,7 +905,8 @@ u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 tunnel ...@@ -900,7 +905,8 @@ u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 tunnel
} }
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1007,7 +1013,8 @@ u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1007,7 +1013,8 @@ u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1105,7 +1112,8 @@ u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1105,7 +1112,8 @@ u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1203,7 +1211,8 @@ u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1203,7 +1211,8 @@ u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1301,7 +1310,8 @@ u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1301,7 +1310,8 @@ u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1398,7 +1408,8 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1398,7 +1408,8 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1511,7 +1522,8 @@ u32 build_invitation_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1511,7 +1522,8 @@ u32 build_invitation_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
} }
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1624,7 +1636,8 @@ u32 build_invitation_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1624,7 +1636,8 @@ u32 build_invitation_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
} }
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1722,7 +1735,8 @@ u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1722,7 +1735,8 @@ u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1820,7 +1834,8 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1820,7 +1834,8 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
wfdie[ wfdielen++ ] = 0; wfdie[ wfdielen++ ] = 0;
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, wfdielen, (unsigned char *) wfdie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, wfdielen,
(unsigned char *) wfdie, &len);
return len; return len;
} }
...@@ -1973,7 +1988,8 @@ u32 build_probe_resp_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf) ...@@ -1973,7 +1988,8 @@ u32 build_probe_resp_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf)
p2pielen += go_add_group_info_attr(pwdinfo, p2pie + p2pielen); p2pielen += go_add_group_info_attr(pwdinfo, p2pie + p2pielen);
} }
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &len);
return len; return len;
} }
...@@ -2103,7 +2119,8 @@ u32 build_prov_disc_request_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf, ...@@ -2103,7 +2119,8 @@ u32 build_prov_disc_request_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf,
} }
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &len);
return len; return len;
} }
...@@ -2132,7 +2149,8 @@ u32 build_assoc_resp_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 sta ...@@ -2132,7 +2149,8 @@ u32 build_assoc_resp_p2p_ie23a(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 sta
/* Length: */ /* Length: */
/* Value: */ /* Value: */
pbuf = rtw_set_ie23a(pbuf, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *) p2pie, &len); pbuf = rtw_set_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *) p2pie, &len);
return len; return len;
} }
......
...@@ -1130,7 +1130,7 @@ unsigned int is_ap_in_tkip23a(struct rtw_adapter *padapter) ...@@ -1130,7 +1130,7 @@ unsigned int is_ap_in_tkip23a(struct rtw_adapter *padapter)
pIE = (struct ndis_802_11_var_ies *)(pmlmeinfo->network.IEs + i); pIE = (struct ndis_802_11_var_ies *)(pmlmeinfo->network.IEs + i);
switch (pIE->ElementID) { switch (pIE->ElementID) {
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
if ((!memcmp(pIE->data, RTW_WPA_OUI23A, 4)) && (!memcmp((pIE->data + 12), WPA_TKIP_CIPHER23A, 4))) if ((!memcmp(pIE->data, RTW_WPA_OUI23A, 4)) && (!memcmp((pIE->data + 12), WPA_TKIP_CIPHER23A, 4)))
return true; return true;
break; break;
...@@ -1161,7 +1161,7 @@ unsigned int should_forbid_n_rate23a(struct rtw_adapter * padapter) ...@@ -1161,7 +1161,7 @@ unsigned int should_forbid_n_rate23a(struct rtw_adapter * padapter)
pIE = (struct ndis_802_11_var_ies *)(cur_network->IEs + i); pIE = (struct ndis_802_11_var_ies *)(cur_network->IEs + i);
switch (pIE->ElementID) { switch (pIE->ElementID) {
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
if (!memcmp(pIE->data, RTW_WPA_OUI23A, 4) && if (!memcmp(pIE->data, RTW_WPA_OUI23A, 4) &&
((!memcmp((pIE->data + 12), WPA_CIPHER_SUITE_CCMP23A, 4)) || ((!memcmp((pIE->data + 12), WPA_CIPHER_SUITE_CCMP23A, 4)) ||
(!memcmp((pIE->data + 16), WPA_CIPHER_SUITE_CCMP23A, 4)))) (!memcmp((pIE->data + 16), WPA_CIPHER_SUITE_CCMP23A, 4))))
...@@ -1196,7 +1196,7 @@ unsigned int is_ap_in_wep23a(struct rtw_adapter *padapter) ...@@ -1196,7 +1196,7 @@ unsigned int is_ap_in_wep23a(struct rtw_adapter *padapter)
pIE = (struct ndis_802_11_var_ies *)(pmlmeinfo->network.IEs + i); pIE = (struct ndis_802_11_var_ies *)(pmlmeinfo->network.IEs + i);
switch (pIE->ElementID) { switch (pIE->ElementID) {
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
if (!memcmp(pIE->data, RTW_WPA_OUI23A, 4)) if (!memcmp(pIE->data, RTW_WPA_OUI23A, 4))
return false; return false;
break; break;
...@@ -1404,7 +1404,7 @@ unsigned char check_assoc_AP23a(u8 *pframe, uint len) ...@@ -1404,7 +1404,7 @@ unsigned char check_assoc_AP23a(u8 *pframe, uint len)
pIE = (struct ndis_802_11_var_ies *)(pframe + i); pIE = (struct ndis_802_11_var_ies *)(pframe + i);
switch (pIE->ElementID) { switch (pIE->ElementID) {
case _VENDOR_SPECIFIC_IE_: case WLAN_EID_VENDOR_SPECIFIC:
if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) || if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) ||
(!memcmp(pIE->data, ARTHEROS_OUI2, 3))) { (!memcmp(pIE->data, ARTHEROS_OUI2, 3))) {
DBG_8723A("link to Artheros AP\n"); DBG_8723A("link to Artheros AP\n");
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#define is_wep_enc(alg) (((alg) == _WEP40_) || ((alg) == _WEP104_)) #define is_wep_enc(alg) (((alg) == _WEP40_) || ((alg) == _WEP104_))
#define _WPA_IE_ID_ 0xdd
#define _WPA2_IE_ID_ 0x30 #define _WPA2_IE_ID_ 0x30
#define SHA256_MAC_LEN 32 #define SHA256_MAC_LEN 32
......
...@@ -229,7 +229,6 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe) ...@@ -229,7 +229,6 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
#define _SUPPORTED_CH_IE_ 36 #define _SUPPORTED_CH_IE_ 36
#define _CH_SWTICH_ANNOUNCE_ 37 /* Secondary Channel Offset */ #define _CH_SWTICH_ANNOUNCE_ 37 /* Secondary Channel Offset */
#define _RSN_IE_2_ 48 #define _RSN_IE_2_ 48
#define _SSN_IE_1_ 221
#define _ERPINFO_IE_ 42 #define _ERPINFO_IE_ 42
#define _EXT_SUPPORTEDRATES_IE_ 50 #define _EXT_SUPPORTEDRATES_IE_ 50
...@@ -249,7 +248,6 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe) ...@@ -249,7 +248,6 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
#define _CH_SWITCH_TIMING_ 104 #define _CH_SWITCH_TIMING_ 104
#define _PTI_BUFFER_STATUS_ 106 #define _PTI_BUFFER_STATUS_ 106
#define _EXT_CAP_IE_ 127 #define _EXT_CAP_IE_ 127
#define _VENDOR_SPECIFIC_IE_ 221
#define _RESERVED47_ 47 #define _RESERVED47_ 47
......
...@@ -2986,10 +2986,10 @@ static int rtw_add_beacon(struct rtw_adapter *adapter, const u8 *head, ...@@ -2986,10 +2986,10 @@ static int rtw_add_beacon(struct rtw_adapter *adapter, const u8 *head,
#endif #endif
/* pbss_network->IEs will not include p2p_ie, wfd ie */ /* pbss_network->IEs will not include p2p_ie, wfd ie */
rtw_ies_remove_ie23a(pbuf, &len, _BEACON_IE_OFFSET_, _VENDOR_SPECIFIC_IE_, rtw_ies_remove_ie23a(pbuf, &len, _BEACON_IE_OFFSET_,
P2P_OUI23A, 4); WLAN_EID_VENDOR_SPECIFIC, P2P_OUI23A, 4);
rtw_ies_remove_ie23a(pbuf, &len, _BEACON_IE_OFFSET_, _VENDOR_SPECIFIC_IE_, rtw_ies_remove_ie23a(pbuf, &len, _BEACON_IE_OFFSET_,
WFD_OUI23A, 4); WLAN_EID_VENDOR_SPECIFIC, WFD_OUI23A, 4);
if (rtw_check_beacon_data23a(adapter, pbuf, len) == _SUCCESS) { if (rtw_check_beacon_data23a(adapter, pbuf, len) == _SUCCESS) {
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -3489,7 +3489,7 @@ void rtw_cfg80211_issue_p2p_provision_request23a(struct rtw_adapter *padapter, ...@@ -3489,7 +3489,7 @@ void rtw_cfg80211_issue_p2p_provision_request23a(struct rtw_adapter *padapter,
memcpy(p2p_ie + p2pielen, devinfo_content, devinfo_contentlen); memcpy(p2p_ie + p2pielen, devinfo_content, devinfo_contentlen);
p2pielen += devinfo_contentlen; p2pielen += devinfo_contentlen;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, p2pielen,
(unsigned char *)p2p_ie, &p2p_ielen); (unsigned char *)p2p_ie, &p2p_ielen);
pattrib->pktlen += p2p_ielen; pattrib->pktlen += p2p_ielen;
...@@ -3524,7 +3524,7 @@ void rtw_cfg80211_issue_p2p_provision_request23a(struct rtw_adapter *padapter, ...@@ -3524,7 +3524,7 @@ void rtw_cfg80211_issue_p2p_provision_request23a(struct rtw_adapter *padapter,
cpu_to_be16(pwdinfo->tx_prov_disc_info.wps_config_method_request); cpu_to_be16(pwdinfo->tx_prov_disc_info.wps_config_method_request);
wpsielen += 2; wpsielen += 2;
pframe = rtw_set_ie23a(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, pframe = rtw_set_ie23a(pframe, WLAN_EID_VENDOR_SPECIFIC, wpsielen,
(unsigned char *)wpsie, &pattrib->pktlen); (unsigned char *)wpsie, &pattrib->pktlen);
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
...@@ -3897,8 +3897,8 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf, ...@@ -3897,8 +3897,8 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf,
pmlmepriv->wps_beacon_ie_len = wps_ielen; pmlmepriv->wps_beacon_ie_len = wps_ielen;
#ifdef CONFIG_8723AU_AP_MODE #ifdef CONFIG_8723AU_AP_MODE
update_beacon23a(padapter, _VENDOR_SPECIFIC_IE_, wps_oui, update_beacon23a(padapter, WLAN_EID_VENDOR_SPECIFIC,
true); wps_oui, true);
#endif #endif
} }
#ifdef CONFIG_8723AU_P2P #ifdef CONFIG_8723AU_P2P
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment