Home
last modified time | relevance | path

Searched refs:wpa_ie_len (Results 1 – 25 of 38) sorted by relevance

12

/drivers/staging/rtl8712/
Dieee80211.c207 unsigned char *r8712_get_wpa_ie(unsigned char *ie, uint *wpa_ie_len, int limit) in r8712_get_wpa_ie() argument
226 *wpa_ie_len = *(buf + 1); in r8712_get_wpa_ie()
229 *wpa_ie_len = 0; in r8712_get_wpa_ie()
237 *wpa_ie_len = 0; in r8712_get_wpa_ie()
277 int r8712_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, in r8712_parse_wpa_ie() argument
284 if (wpa_ie_len <= 0) { in r8712_parse_wpa_ie()
289 (*(wpa_ie + 1) != (u8)(wpa_ie_len - 2)) || in r8712_parse_wpa_ie()
294 left = wpa_ie_len - 8; in r8712_parse_wpa_ie()
Dieee80211.h153 int r8712_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
155 int r8712_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
/drivers/staging/r8188eu/core/
Drtw_ieee80211.c271 unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit) in rtw_get_wpa_ie() argument
294 *wpa_ie_len = *(pbuf + 1); in rtw_get_wpa_ie()
297 *wpa_ie_len = 0; in rtw_get_wpa_ie()
306 *wpa_ie_len = 0; in rtw_get_wpa_ie()
348 int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8… in rtw_parse_wpa_ie() argument
355 if (wpa_ie_len <= 0) { in rtw_parse_wpa_ie()
360 if ((*wpa_ie != _WPA_IE_ID_) || (*(wpa_ie + 1) != (u8)(wpa_ie_len - 2)) || in rtw_parse_wpa_ie()
367 left = wpa_ie_len - 8; in rtw_parse_wpa_ie()
664 elems->wpa_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c354 unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit) in rtw_get_wpa_ie() argument
378 *wpa_ie_len = *(pbuf + 1); in rtw_get_wpa_ie()
383 *wpa_ie_len = 0; in rtw_get_wpa_ie()
397 *wpa_ie_len = 0; in rtw_get_wpa_ie()
439 int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8… in rtw_parse_wpa_ie() argument
446 if (wpa_ie_len <= 0) { in rtw_parse_wpa_ie()
451 if ((*wpa_ie != WLAN_EID_VENDOR_SPECIFIC) || (*(wpa_ie+1) != (u8)(wpa_ie_len - 2)) || in rtw_parse_wpa_ie()
459 left = wpa_ie_len - 8; in rtw_parse_wpa_ie()
787 elems->wpa_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
Drtw_mlme_ext.c945 int i, ie_len, wpa_ie_len, left; in OnAssocReq() local
1074 wpa_ie_len = elems.rsn_ie_len; in OnAssocReq()
1076 …if (rtw_parse_wpa2_ie(wpa_ie-2, wpa_ie_len+2, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in OnAssocReq()
1097 wpa_ie_len = elems.wpa_ie_len; in OnAssocReq()
1099 if (rtw_parse_wpa_ie(wpa_ie-2, wpa_ie_len+2, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in OnAssocReq()
1118 wpa_ie_len = 0; in OnAssocReq()
1167 copy_len = ((wpa_ie_len+2) > sizeof(pstat->wpa_ie)) ? (sizeof(pstat->wpa_ie)):(wpa_ie_len+2); in OnAssocReq()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c671 int wpa_ie_len = ieee->wpa_ie_len; in ieee80211_probe_resp() local
698 ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); in ieee80211_probe_resp()
720 + wpa_ie_len in ieee80211_probe_resp()
789 if (wpa_ie_len) { in ieee80211_probe_resp()
794 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); in ieee80211_probe_resp()
795 tag += wpa_ie_len; in ieee80211_probe_resp()
953 int wpa_ie_len = ieee->wpa_ie_len; in ieee80211_association_req() local
969 …eee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); in ieee80211_association_req()
998 + wpa_ie_len in ieee80211_association_req()
1011 + wpa_ie_len in ieee80211_association_req()
[all …]
Dieee80211_wx.c182 if (ieee->wpa_enabled && network->wpa_ie_len) { in rtl819x_translate_scan()
187 for (i = 0; i < network->wpa_ie_len; i++) in rtl819x_translate_scan()
802 ieee->wpa_ie_len = len; in ieee80211_wx_set_gen_ie()
806 ieee->wpa_ie_len = 0; in ieee80211_wx_set_gen_ie()
Dieee80211_rx.c1692 network->wpa_ie_len = min(info_element->len + 2, in ieee80211_parse_info_param()
1695 network->wpa_ie_len); in ieee80211_parse_info_param()
2062 network->wpa_ie_len = 0; in ieee80211_network_init()
2172 memcpy(dst->wpa_ie, src->wpa_ie, src->wpa_ie_len); in update_network()
2173 dst->wpa_ie_len = src->wpa_ie_len; in update_network()
/drivers/staging/rtl8192e/
Drtllib_softmac.c826 int wpa_ie_len = ieee->wpa_ie_len; in rtllib_probe_resp() local
857 ((strcmp(crypt->ops->name, "R-WEP") == 0 || wpa_ie_len)); in rtllib_probe_resp()
879 + wpa_ie_len + ieee->tx_headroom; in rtllib_probe_resp()
951 if (wpa_ie_len) { in rtllib_probe_resp()
954 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); in rtllib_probe_resp()
955 tag += ieee->wpa_ie_len; in rtllib_probe_resp()
1153 int wpa_ie_len = ieee->wpa_ie_len; in rtllib_association_req() local
1176 wpa_ie_len)); in rtllib_association_req()
1210 wpa_ie_len += 18; in rtllib_association_req()
1212 wpa_ie_len); in rtllib_association_req()
[all …]
Drtllib_wx.c184 if (network->wpa_ie_len) { in rtl819x_translate_scan()
187 memcpy(buf, network->wpa_ie, network->wpa_ie_len); in rtl819x_translate_scan()
189 iwe.u.data.length = network->wpa_ie_len; in rtl819x_translate_scan()
779 ieee->wpa_ie_len = len; in rtllib_wx_set_gen_ie()
783 ieee->wpa_ie_len = 0; in rtllib_wx_set_gen_ie()
Drtllib_rx.c1808 network->wpa_ie_len = min(info_element->len + 2, in rtllib_parse_mife_generic()
1810 memcpy(network->wpa_ie, info_element, network->wpa_ie_len); in rtllib_parse_mife_generic()
2333 network->wpa_ie_len = 0; in rtllib_network_init()
2455 memcpy(dst->wpa_ie, src->wpa_ie, src->wpa_ie_len); in update_network()
2456 dst->wpa_ie_len = src->wpa_ie_len; in update_network()
/drivers/staging/r8188eu/include/
Dieee80211.h715 u8 wpa_ie_len; member
759 unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit);
764 int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
766 int rtw_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher,
/drivers/staging/rtl8723bs/include/
Dieee80211.h691 u8 wpa_ie_len; member
739 unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit);
744 int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8…
745 int rtw_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_…
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_rx.c1231 network->wpa_ie_len = min(info_element->len + 2, in libipw_parse_info_param()
1234 network->wpa_ie_len); in libipw_parse_info_param()
1329 network->wpa_ie_len = 0; in libipw_handle_assoc_resp()
1389 network->wpa_ie_len = 0; in libipw_network_init()
1466 memcpy(dst->wpa_ie, src->wpa_ie, src->wpa_ie_len); in update_network()
1467 dst->wpa_ie_len = src->wpa_ie_len; in update_network()
Dlibipw_wx.c195 if (network->wpa_ie_len) { in libipw_translate_scan()
197 memcpy(buf, network->wpa_ie, network->wpa_ie_len); in libipw_translate_scan()
199 iwe.u.data.length = network->wpa_ie_len; in libipw_translate_scan()
Dlibipw.h638 size_t wpa_ie_len; member
761 size_t wpa_ie_len; member
Dipw2100.c5888 char *wpa_ie, int wpa_ie_len) in ipw2100_wpa_assoc_frame() argument
5896 memcpy(frame.var_ie, wpa_ie, wpa_ie_len); in ipw2100_wpa_assoc_frame()
5897 frame.var_ie_len = wpa_ie_len; in ipw2100_wpa_assoc_frame()
7548 ieee->wpa_ie_len = wrqu->data.length; in ipw2100_wx_set_genie()
7552 ieee->wpa_ie_len = 0; in ipw2100_wx_set_genie()
7555 ipw2100_wpa_assoc_frame(priv, ieee->wpa_ie, ieee->wpa_ie_len); in ipw2100_wx_set_genie()
7568 if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) { in ipw2100_wx_get_genie()
7573 if (wrqu->data.length < ieee->wpa_ie_len) in ipw2100_wx_get_genie()
7576 wrqu->data.length = ieee->wpa_ie_len; in ipw2100_wx_get_genie()
7577 memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len); in ipw2100_wx_get_genie()
/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c785 priv->wpa_ie_len = ie_len; in mwifiex_set_wpa_ie()
788 priv->wpa_ie_len, priv->wpa_ie[0]); in mwifiex_set_wpa_ie()
800 priv->wpa_ie_len = 0; in mwifiex_set_wpa_ie()
803 priv->wpa_ie_len, priv->wpa_ie[0]); in mwifiex_set_wpa_ie()
1422 gen_ie->len = priv->wpa_ie_len; in mwifiex_misc_ioctl_gen_ie()
/drivers/net/wireless/intersil/orinoco/
Dwext.c1024 priv->wpa_ie_len = wrqu->data.length; in orinoco_ioctl_set_genie()
1049 if ((priv->wpa_ie_len == 0) || (priv->wpa_ie == NULL)) { in orinoco_ioctl_get_genie()
1054 if (wrqu->data.length < priv->wpa_ie_len) { in orinoco_ioctl_get_genie()
1059 wrqu->data.length = priv->wpa_ie_len; in orinoco_ioctl_get_genie()
1060 memcpy(extra, priv->wpa_ie, priv->wpa_ie_len); in orinoco_ioctl_get_genie()
Dorinoco.h152 int wpa_ie_len; member
/drivers/staging/rtl8192u/
Dr8192U_debugfs.c21 if (target->wpa_ie_len > 0 || target->rsn_ie_len > 0) in rtl8192_usb_stats_ap_show()
/drivers/staging/rtl8192e/rtl8192e/
Drtl_wx.c996 if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) { in _rtl92e_wx_get_gen_ie()
1001 if (data->data.length < ieee->wpa_ie_len) in _rtl92e_wx_get_gen_ie()
1004 data->data.length = ieee->wpa_ie_len; in _rtl92e_wx_get_gen_ie()
1005 memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len); in _rtl92e_wx_get_gen_ie()
/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c995 int wpa_ie_len; in rtw_get_sta_wpaie() local
998 wpa_ie_len = psta->wpa_ie[1]; in rtw_get_sta_wpaie()
1000 copy_len = ((wpa_ie_len+2) > sizeof(psta->wpa_ie)) ? (sizeof(psta->wpa_ie)):(wpa_ie_len+2); in rtw_get_sta_wpaie()
/drivers/net/wireless/intersil/hostap/
Dhostap_proc.c146 seq_printf(m, "%*phN", (int)bss->wpa_ie_len, bss->wpa_ie); in prism2_bss_list_proc_show()
Dhostap_80211_rx.c455 bss->wpa_ie_len = wpa_len; in hostap_rx_sta_beacon()
457 bss->wpa_ie_len = 0; in hostap_rx_sta_beacon()

12