Home
last modified time | relevance | path

Searched refs:rsn_ie (Results 1 – 25 of 35) sorted by relevance

12

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ie.c110 static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len, in wpa_gen_wpa_ie_rsn() argument
128 hdr = (struct rsn_ie_hdr *) rsn_ie; in wpa_gen_wpa_ie_rsn()
222 hdr->len = (pos - rsn_ie) - 2; in wpa_gen_wpa_ie_rsn()
224 WPA_ASSERT((size_t) (pos - rsn_ie) <= rsn_ie_len); in wpa_gen_wpa_ie_rsn()
226 return pos - rsn_ie; in wpa_gen_wpa_ie_rsn()
390 ie->rsn_ie = pos; in wpa_supplicant_parse_ies()
393 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_parse_ies()
Dpeerkey.c199 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_supplicant_process_smk_m2()
215 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) { in wpa_supplicant_process_smk_m2()
243 os_memcpy(peerkey->rsnie_i, kde.rsn_ie, kde.rsn_ie_len); in wpa_supplicant_process_smk_m2()
475 if (kde->rsn_ie == NULL || kde->rsn_ie_len > PEERKEY_MAX_IE_LEN || in wpa_supplicant_process_smk_m5()
476 wpa_parse_wpa_ie_rsn(kde->rsn_ie, kde->rsn_ie_len, &ie) < 0) { in wpa_supplicant_process_smk_m5()
495 os_memcpy(peerkey->rsnie_p, kde->rsn_ie, kde->rsn_ie_len); in wpa_supplicant_process_smk_m5()
794 kde.pmkid == NULL || kde.rsn_ie == NULL) { in wpa_supplicant_process_stk_2_of_4()
806 os_memcmp(kde.rsn_ie, peerkey->rsnie_p, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_2_of_4()
812 kde.rsn_ie, kde.rsn_ie_len); in wpa_supplicant_process_stk_2_of_4()
851 os_memcmp(kde.rsn_ie, peerkey->rsnie_i, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_3_of_4()
[all …]
Dtdls.c1441 if (kde.rsn_ie) { in wpa_tdls_process_tpk_m1()
1451 kde.rsn_ie == NULL) { in wpa_tdls_process_tpk_m1()
1464 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) { in wpa_tdls_process_tpk_m1()
1576 os_memcpy(peer->rsnie_i, kde.rsn_ie, kde.rsn_ie_len); in wpa_tdls_process_tpk_m1()
1589 hdr = (struct rsn_ie_hdr *) kde.rsn_ie; in wpa_tdls_process_tpk_m1()
1783 kde.rsn_ie == NULL) { in wpa_tdls_process_tpk_m2()
1789 kde.rsn_ie, kde.rsn_ie_len); in wpa_tdls_process_tpk_m2()
1798 os_memcmp(peer->rsnie_i, kde.rsn_ie, peer->rsnie_i_len) != 0) { in wpa_tdls_process_tpk_m2()
1804 kde.rsn_ie, kde.rsn_ie_len); in wpa_tdls_process_tpk_m2()
1809 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) { in wpa_tdls_process_tpk_m2()
[all …]
Dwpa_ie.h17 const u8 *rsn_ie; member
Dwpa.c784 const u8 *rsn_ie, size_t rsn_ie_len) in wpa_report_ie_mismatch() argument
806 if (rsn_ie) { in wpa_report_ie_mismatch()
812 rsn_ie, rsn_ie_len); in wpa_report_ie_mismatch()
886 if (!ie->rsn_ie) in ft_validate_rsnie()
893 if (wpa_parse_wpa_ie_rsn(ie->rsn_ie, ie->rsn_ie_len, &rsn) < 0 || in ft_validate_rsnie()
969 if (ie->wpa_ie == NULL && ie->rsn_ie == NULL && in wpa_supplicant_validate_ie()
974 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
981 (ie->rsn_ie && sm->ap_rsn_ie && in wpa_supplicant_validate_ie()
984 ie->rsn_ie, ie->rsn_ie_len))) { in wpa_supplicant_validate_ie()
988 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/
Dwpa_ie.c254 static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len, in wpa_gen_wpa_ie_rsn() argument
272 hdr = (struct rsn_ie_hdr *) rsn_ie; in wpa_gen_wpa_ie_rsn()
364 hdr->len = (pos - rsn_ie) - 2; in wpa_gen_wpa_ie_rsn()
366 WPA_ASSERT((size_t) (pos - rsn_ie) <= rsn_ie_len); in wpa_gen_wpa_ie_rsn()
368 return pos - rsn_ie; in wpa_gen_wpa_ie_rsn()
514 ie->rsn_ie = pos; in wpa_supplicant_parse_ies()
Dpeerkey.c204 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_supplicant_process_smk_m2()
220 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) { in wpa_supplicant_process_smk_m2()
248 os_memcpy(peerkey->rsnie_i, kde.rsn_ie, kde.rsn_ie_len); in wpa_supplicant_process_smk_m2()
480 if (kde->rsn_ie == NULL || kde->rsn_ie_len > PEERKEY_MAX_IE_LEN || in wpa_supplicant_process_smk_m5()
481 wpa_parse_wpa_ie_rsn(kde->rsn_ie, kde->rsn_ie_len, &ie) < 0) { in wpa_supplicant_process_smk_m5()
500 os_memcpy(peerkey->rsnie_p, kde->rsn_ie, kde->rsn_ie_len); in wpa_supplicant_process_smk_m5()
797 kde.pmkid == NULL || kde.rsn_ie == NULL) { in wpa_supplicant_process_stk_2_of_4()
809 os_memcmp(kde.rsn_ie, peerkey->rsnie_p, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_2_of_4()
815 kde.rsn_ie, kde.rsn_ie_len); in wpa_supplicant_process_stk_2_of_4()
854 os_memcmp(kde.rsn_ie, peerkey->rsnie_i, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_3_of_4()
[all …]
Dwpa_ie.h21 const u8 *rsn_ie; member
Dwpa.c783 const u8 *rsn_ie, size_t rsn_ie_len) in wpa_report_ie_mismatch() argument
805 if (rsn_ie) { in wpa_report_ie_mismatch()
811 rsn_ie, rsn_ie_len); in wpa_report_ie_mismatch()
834 if (ie->wpa_ie == NULL && ie->rsn_ie == NULL && in wpa_supplicant_validate_ie()
839 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
846 (ie->rsn_ie && sm->ap_rsn_ie && in wpa_supplicant_validate_ie()
848 os_memcmp(ie->rsn_ie, sm->ap_rsn_ie, ie->rsn_ie_len) != 0))) { in wpa_supplicant_validate_ie()
852 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
857 ie->rsn_ie && sm->ap_rsn_ie == NULL && sm->rsn_enabled) { in wpa_supplicant_validate_ie()
863 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
/external/wpa_supplicant_8/src/ap/
Dpeerkey_auth.c95 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_smk_m1()
122 os_memcpy(buf, kde.rsn_ie, kde.rsn_ie_len); in wpa_smk_m1()
224 os_memcpy(buf, kde->rsn_ie, kde->rsn_ie_len); in wpa_send_smk_m5()
268 if (kde.rsn_ie == NULL || in wpa_smk_m3()
Dwpa_auth_ie.h15 const u8 *rsn_ie; member
Ddrv_callbacks.c63 } else if (elems.rsn_ie) { in hostapd_notif_assoc()
64 ie = elems.rsn_ie - 2; in hostapd_notif_assoc()
/external/wpa_supplicant_6/wpa_supplicant/src/common/
Dieee802_11_common.h42 u8 *rsn_ie; member
Dieee802_11_common.c210 elems->rsn_ie = pos; in ieee802_11_parse_elems()
Dwpa_common.c243 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len, in wpa_parse_wpa_ie_rsn() argument
277 hdr = (const struct rsn_ie_hdr *) rsn_ie; in wpa_parse_wpa_ie_rsn()
Dwpa_common.h332 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.h25 const u8 *rsn_ie; member
Dieee802_11_common.c220 elems->rsn_ie = pos; in ieee802_11_parse_elems()
Dwpa_common.h340 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
/external/wpa_supplicant_6/wpa_supplicant/
Devents.c285 const u8 *rsn_ie, *wpa_ie; in wpa_supplicant_ssid_bss_match() local
292 rsn_ie = wpa_scan_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_ssid_bss_match()
293 while ((ssid->proto & WPA_PROTO_RSN) && rsn_ie) { in wpa_supplicant_ssid_bss_match()
296 if (wpa_parse_wpa_ie(rsn_ie, 2 + rsn_ie[1], &ie)) { in wpa_supplicant_ssid_bss_match()
Dmlme.c71 u8 *rsn_ie; member
1258 os_free(bss->rsn_ie); in ieee80211_bss_free()
1474 if (elems.rsn_ie && in ieee80211_bss_info()
1475 (bss->rsn_ie == NULL || bss->rsn_ie_len != elems.rsn_ie_len || in ieee80211_bss_info()
1476 os_memcmp(bss->rsn_ie, elems.rsn_ie, elems.rsn_ie_len))) { in ieee80211_bss_info()
1477 os_free(bss->rsn_ie); in ieee80211_bss_info()
1478 bss->rsn_ie = os_malloc(elems.rsn_ie_len + 2); in ieee80211_bss_info()
1479 if (bss->rsn_ie) { in ieee80211_bss_info()
1480 os_memcpy(bss->rsn_ie, elems.rsn_ie - 2, in ieee80211_bss_info()
1485 } else if (!elems.rsn_ie && bss->rsn_ie) { in ieee80211_bss_info()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_ralink.c700 UCHAR rsn_ie[40]; in wpa_driver_ralink_event_wireless() member
725 os_memcpy(wpa_s->scan_results[0].rsn_ie, pApInfo->rsn_ie, pApInfo->rsn_ie_len); in wpa_driver_ralink_event_wireless()
1146 os_memcpy(results[ap_num].rsn_ie, pos, ielen); in wpa_driver_ralink_get_scan_results()
Ddriver.h70 u8 rsn_ie[SSID_MAX_WPA_IE_LEN]; member
/external/wpa_supplicant_8/src/drivers/
Ddriver_madwifi.c852 ie.rsn_ie, IEEE80211_MAX_OPT_IE); in madwifi_new_sta()
853 if (iebuf[1] == 0 && ie.rsn_ie[1] > 0) { in madwifi_new_sta()
856 iebuf = ie.rsn_ie; in madwifi_new_sta()
/external/wpa_supplicant_8/wpa_supplicant/
Devents.c329 const u8 *rsn_ie, *wpa_ie; in wpa_supplicant_ssid_bss_match() local
343 rsn_ie = wpa_scan_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_ssid_bss_match()
344 while ((ssid->proto & WPA_PROTO_RSN) && rsn_ie) { in wpa_supplicant_ssid_bss_match()
347 if (wpa_parse_wpa_ie(rsn_ie, 2 + rsn_ie[1], &ie)) { in wpa_supplicant_ssid_bss_match()

12