/linux-6.1.9/drivers/staging/rtl8712/ |
D | ieee80211.h | 82 } wpa_ie; member 153 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, 158 u8 *wpa_ie, u16 *wpa_len);
|
D | ieee80211.c | 277 int r8712_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, in r8712_parse_wpa_ie() argument 288 if ((*wpa_ie != _WPA_IE_ID_) || in r8712_parse_wpa_ie() 289 (*(wpa_ie + 1) != (u8)(wpa_ie_len - 2)) || in r8712_parse_wpa_ie() 290 (memcmp(wpa_ie + 2, (void *)WPA_OUI_TYPE, WPA_SELECTOR_LEN))) in r8712_parse_wpa_ie() 292 pos = wpa_ie; in r8712_parse_wpa_ie() 365 u8 *wpa_ie, u16 *wpa_len) in r8712_get_sec_ie() argument 377 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in r8712_get_sec_ie()
|
D | rtl871x_ioctl_linux.c | 132 u8 wpa_ie[255], rsn_ie[255]; in translate_scan_wpa() local 138 wpa_ie, &wpa_len); in translate_scan_wpa() 144 "%02x", wpa_ie[i]); in translate_scan_wpa() 157 iwe, wpa_ie); in translate_scan_wpa() 2157 ret = r871x_set_wpa_ie(padapter, (char *)param->u.wpa_ie.data, in wpa_supplicant_ioctl() 2158 (u16)param->u.wpa_ie.len); in wpa_supplicant_ioctl()
|
/linux-6.1.9/drivers/staging/r8188eu/core/ |
D | rtw_ieee80211.c | 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 360 if ((*wpa_ie != _WPA_IE_ID_) || (*(wpa_ie + 1) != (u8)(wpa_ie_len - 2)) || in rtw_parse_wpa_ie() 361 (memcmp(wpa_ie + 2, RTW_WPA_OUI_TYPE, WPA_SELECTOR_LEN))) in rtw_parse_wpa_ie() 364 pos = wpa_ie; in rtw_parse_wpa_ie() 468 int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len) in rtw_get_sec_ie() argument 482 if (wpa_ie) in rtw_get_sec_ie() 483 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in rtw_get_sec_ie() 663 elems->wpa_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
|
/linux-6.1.9/drivers/staging/rtl8723bs/core/ |
D | rtw_ieee80211.c | 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 451 if ((*wpa_ie != WLAN_EID_VENDOR_SPECIFIC) || (*(wpa_ie+1) != (u8)(wpa_ie_len - 2)) || in rtw_parse_wpa_ie() 452 (memcmp(wpa_ie+2, RTW_WPA_OUI_TYPE, WPA_SELECTOR_LEN))) { in rtw_parse_wpa_ie() 456 pos = wpa_ie; in rtw_parse_wpa_ie() 604 void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len) in rtw_get_sec_ie() argument 618 if (wpa_ie) in rtw_get_sec_ie() 619 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt+1]+2); in rtw_get_sec_ie() 786 elems->wpa_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
|
D | rtw_mlme_ext.c | 943 unsigned char *p, *pos, *wpa_ie; in OnAssocReq() local 1068 memset(pstat->wpa_ie, 0, sizeof(pstat->wpa_ie)); in OnAssocReq() 1073 wpa_ie = elems.rsn_ie; in OnAssocReq() 1076 …if (rtw_parse_wpa2_ie(wpa_ie-2, wpa_ie_len+2, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in OnAssocReq() 1092 } else if ((psecuritypriv->wpa_psk & BIT(0)) && elems.wpa_ie) { in OnAssocReq() 1096 wpa_ie = elems.wpa_ie; in OnAssocReq() 1099 if (rtw_parse_wpa_ie(wpa_ie-2, wpa_ie_len+2, &group_cipher, &pairwise_cipher, NULL) == _SUCCESS) { in OnAssocReq() 1117 wpa_ie = NULL; in OnAssocReq() 1125 if (!wpa_ie) { in OnAssocReq() 1167 copy_len = ((wpa_ie_len+2) > sizeof(pstat->wpa_ie)) ? (sizeof(pstat->wpa_ie)):(wpa_ie_len+2); in OnAssocReq() [all …]
|
/linux-6.1.9/drivers/staging/r8188eu/include/ |
D | ieee80211.h | 138 } wpa_ie; member 714 u8 *wpa_ie; member 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, 770 u8 *wpa_ie, u16 *wpa_len);
|
D | sta_info.h | 145 u8 wpa_ie[32]; member
|
/linux-6.1.9/drivers/staging/rtl8723bs/include/ |
D | ieee80211.h | 176 } wpa_ie; member 690 u8 *wpa_ie; member 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_… 747 void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len);
|
D | sta_info.h | 160 u8 wpa_ie[32]; member
|
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/ |
D | main.c | 74 memcpy(sta->wpa_ie, wpaie, ielen); in ath6kl_add_new_sta() 109 memset(sta->wpa_ie, 0, ATH6KL_MAX_IE); in ath6kl_sta_cleanup() 427 u8 *ies = NULL, *wpa_ie = NULL, *pos; in ath6kl_connect_ap_mode_sta() local 457 wpa_ie = pos; /* RSN IE */ in ath6kl_connect_ap_mode_sta() 462 wpa_ie = pos; /* WPA IE */ in ath6kl_connect_ap_mode_sta() 464 wpa_ie = pos; /* WPS IE */ in ath6kl_connect_ap_mode_sta() 467 } else if (pos[0] == 0x44 && wpa_ie == NULL) { in ath6kl_connect_ap_mode_sta() 477 wpa_ie = pos; /* WAPI IE */ in ath6kl_connect_ap_mode_sta() 483 ath6kl_add_new_sta(vif, mac_addr, aid, wpa_ie, in ath6kl_connect_ap_mode_sta() 484 wpa_ie ? 2 + wpa_ie[1] : 0, in ath6kl_connect_ap_mode_sta()
|
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/ |
D | sta_ioctl.c | 779 if (ie_len > sizeof(priv->wpa_ie)) { in mwifiex_set_wpa_ie() 784 memcpy(priv->wpa_ie, ie_data_ptr, ie_len); in mwifiex_set_wpa_ie() 788 priv->wpa_ie_len, priv->wpa_ie[0]); in mwifiex_set_wpa_ie() 790 if (priv->wpa_ie[0] == WLAN_EID_VENDOR_SPECIFIC) { in mwifiex_set_wpa_ie() 792 } else if (priv->wpa_ie[0] == WLAN_EID_RSN) { in mwifiex_set_wpa_ie() 799 memset(priv->wpa_ie, 0, sizeof(priv->wpa_ie)); in mwifiex_set_wpa_ie() 803 priv->wpa_ie_len, priv->wpa_ie[0]); in mwifiex_set_wpa_ie() 1423 memcpy(gen_ie->ie_data, priv->wpa_ie, gen_ie->len); in mwifiex_misc_ioctl_gen_ie()
|
D | join.c | 328 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); in mwifiex_append_rsn_ie_wpa_wpa2() 331 rsn_ie_tlv->header.len = cpu_to_le16((u16) priv->wpa_ie[1]); in mwifiex_append_rsn_ie_wpa_wpa2() 334 if (le16_to_cpu(rsn_ie_tlv->header.len) <= (sizeof(priv->wpa_ie) - 2)) in mwifiex_append_rsn_ie_wpa_wpa2() 335 memcpy(rsn_ie_tlv->rsn_ie, &priv->wpa_ie[2], in mwifiex_append_rsn_ie_wpa_wpa2()
|
D | init.c | 123 memset(&priv->wpa_ie, 0, sizeof(priv->wpa_ie)); in mwifiex_init_priv()
|
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 497 …ret = rtw_set_wpa_ie(rtw_netdev_priv(dev), (char *)param->u.wpa_ie.data, (u16)param->u.wpa_ie.len… in wpa_supplicant_ioctl() 993 if ((psta->wpa_ie[0] == WLAN_EID_RSN) || (psta->wpa_ie[0] == WLAN_EID_VENDOR_SPECIFIC)) { in rtw_get_sta_wpaie() 997 wpa_ie_len = psta->wpa_ie[1]; in rtw_get_sta_wpaie() 999 copy_len = ((wpa_ie_len+2) > sizeof(psta->wpa_ie)) ? (sizeof(psta->wpa_ie)):(wpa_ie_len+2); in rtw_get_sta_wpaie() 1001 param->u.wpa_ie.len = copy_len; in rtw_get_sta_wpaie() 1003 memcpy(param->u.wpa_ie.reserved, psta->wpa_ie, copy_len); in rtw_get_sta_wpaie()
|
/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac.c | 792 memcpy(&ieee->wpa_ie[14], &ieee->wpa_ie[8], 4); in ieee80211_probe_resp() 794 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); in ieee80211_probe_resp() 1124 skb_put_data(skb, ieee->wpa_ie, wpa_ie_len); in ieee80211_association_req() 2640 char *wpa_ie, int wpa_ie_len) in ieee80211_wpa_assoc_frame() argument 2674 if (param->u.wpa_ie.len > MAX_WPA_IE_LEN) in ieee80211_wpa_set_wpa_ie() 2677 if (param->u.wpa_ie.len) { in ieee80211_wpa_set_wpa_ie() 2678 buf = kmemdup(param->u.wpa_ie.data, param->u.wpa_ie.len, in ieee80211_wpa_set_wpa_ie() 2683 kfree(ieee->wpa_ie); in ieee80211_wpa_set_wpa_ie() 2684 ieee->wpa_ie = buf; in ieee80211_wpa_set_wpa_ie() 2685 ieee->wpa_ie_len = param->u.wpa_ie.len; in ieee80211_wpa_set_wpa_ie() [all …]
|
D | ieee80211_wx.c | 188 p += sprintf(p, "%02x", network->wpa_ie[i]); in rtl819x_translate_scan() 800 kfree(ieee->wpa_ie); in ieee80211_wx_set_gen_ie() 801 ieee->wpa_ie = buf; in ieee80211_wx_set_gen_ie() 804 kfree(ieee->wpa_ie); in ieee80211_wx_set_gen_ie() 805 ieee->wpa_ie = NULL; in ieee80211_wx_set_gen_ie()
|
/linux-6.1.9/drivers/staging/rtl8192e/ |
D | rtllib_wx.c | 187 memcpy(buf, network->wpa_ie, network->wpa_ie_len); in rtl819x_translate_scan() 777 kfree(ieee->wpa_ie); in rtllib_wx_set_gen_ie() 778 ieee->wpa_ie = buf; in rtllib_wx_set_gen_ie() 781 kfree(ieee->wpa_ie); in rtllib_wx_set_gen_ie() 782 ieee->wpa_ie = NULL; in rtllib_wx_set_gen_ie()
|
D | rtllib_softmac.c | 953 memcpy(&ieee->wpa_ie[14], &ieee->wpa_ie[8], 4); in rtllib_probe_resp() 954 memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len); in rtllib_probe_resp() 1339 skb_put_data(skb, ieee->wpa_ie, ieee->wpa_ie_len); in rtllib_association_req() 3140 if (((ieee->wpa_ie[0] == 0xdd) && in rtllib_ap_sec_type() 3141 (!memcmp(&(ieee->wpa_ie[14]), ccmp_ie, 4))) || in rtllib_ap_sec_type() 3142 ((ieee->wpa_ie[0] == 0x30) && in rtllib_ap_sec_type() 3143 (!memcmp(&ieee->wpa_ie[10], ccmp_rsn_ie, 4)))) in rtllib_ap_sec_type()
|
/linux-6.1.9/drivers/net/wireless/intersil/orinoco/ |
D | wext.c | 1022 kfree(priv->wpa_ie); in orinoco_ioctl_set_genie() 1023 priv->wpa_ie = buf; in orinoco_ioctl_set_genie() 1026 if (priv->wpa_ie) { in orinoco_ioctl_set_genie() 1049 if ((priv->wpa_ie_len == 0) || (priv->wpa_ie == NULL)) { in orinoco_ioctl_get_genie() 1060 memcpy(extra, priv->wpa_ie, priv->wpa_ie_len); in orinoco_ioctl_get_genie()
|
D | orinoco.h | 151 u8 *wpa_ie; member
|
/linux-6.1.9/drivers/staging/ks7010/ |
D | ks_hostif.c | 139 ap->wpa_ie.id = WPA_INFO_ELEM_ID; in get_current_ap() 140 ap->wpa_ie.size = size; in get_current_ap() 141 memcpy(ap->wpa_ie.body, ap_info->rsn.body, size); in get_current_ap() 145 ap->wpa_ie.id = 0; in get_current_ap() 146 ap->wpa_ie.size = 0; in get_current_ap() 302 ap->wpa_ie.id = *bp; in get_ap_information() 303 ap->wpa_ie.size = read_ie(bp, RSN_IE_BODY_MAX, in get_ap_information() 304 ap->wpa_ie.body); in get_ap_information()
|
D | ks_wlan.h | 219 struct rsn_ie wpa_ie; member
|
/linux-6.1.9/drivers/net/wireless/intel/ipw2x00/ |
D | libipw.h | 637 u8 wpa_ie[MAX_WPA_IE_LEN]; member 762 u8 *wpa_ie; member
|
/linux-6.1.9/drivers/staging/r8188eu/os_dep/ |
D | ioctl_linux.c | 239 u8 *wpa_ie, *rsn_ie; in translate_scan() local 246 wpa_ie = kzalloc(255, GFP_ATOMIC); in translate_scan() 247 if (!wpa_ie) { in translate_scan() 254 kfree(wpa_ie); in translate_scan() 257 …rtw_get_sec_ie(pnetwork->network.IEs, pnetwork->network.IELength, rsn_ie, &rsn_len, wpa_ie, &wpa_l… in translate_scan() 264 p += sprintf(p, "%02x", wpa_ie[i]); in translate_scan() 274 start = iwe_stream_add_point(info, start, stop, &iwe, wpa_ie); in translate_scan() 293 kfree(wpa_ie); in translate_scan()
|