/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/ |
D | peerkey.c | 214 if (kde.rsn_ie_len > PEERKEY_MAX_IE_LEN) { 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() 249 peerkey->rsnie_i_len = 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() 501 peerkey->rsnie_p_len = kde->rsn_ie_len; in wpa_supplicant_process_smk_m5() 808 if (kde.rsn_ie_len != peerkey->rsnie_p_len || 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() [all …]
|
D | wpa_ie.c | 254 static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len, in wpa_gen_wpa_ie_rsn() argument 264 if (rsn_ie_len < sizeof(*hdr) + RSN_SELECTOR_LEN + in wpa_gen_wpa_ie_rsn() 268 (unsigned long) rsn_ie_len); in wpa_gen_wpa_ie_rsn() 366 WPA_ASSERT((size_t) (pos - rsn_ie) <= rsn_ie_len); in wpa_gen_wpa_ie_rsn() 515 ie->rsn_ie_len = pos[1] + 2; in wpa_supplicant_parse_ies()
|
D | wpa_ie.h | 22 size_t rsn_ie_len; member
|
D | wpa.c | 783 const u8 *rsn_ie, size_t rsn_ie_len) in wpa_report_ie_mismatch() argument 811 rsn_ie, rsn_ie_len); in wpa_report_ie_mismatch() 839 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie() 847 (ie->rsn_ie_len != sm->ap_rsn_ie_len || 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() 863 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
|
/external/wpa_supplicant_6/wpa_supplicant/src/common/ |
D | wpa_common.c | 243 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len, in wpa_parse_wpa_ie_rsn() argument 266 if (rsn_ie_len == 0) { in wpa_parse_wpa_ie_rsn() 271 if (rsn_ie_len < sizeof(struct rsn_ie_hdr)) { in wpa_parse_wpa_ie_rsn() 273 __func__, (unsigned long) rsn_ie_len); in wpa_parse_wpa_ie_rsn() 280 hdr->len != rsn_ie_len - 2 || in wpa_parse_wpa_ie_rsn() 288 left = rsn_ie_len - sizeof(*hdr); in wpa_parse_wpa_ie_rsn()
|
D | ieee802_11_common.h | 43 u8 rsn_ie_len; member
|
D | ieee802_11_common.c | 211 elems->rsn_ie_len = elen; in ieee802_11_parse_elems()
|
D | wpa_common.h | 332 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
|
/external/wpa_supplicant/ |
D | wpa.c | 472 static int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len, in wpa_parse_wpa_ie_rsn() argument 495 if (rsn_ie_len == 0) { in wpa_parse_wpa_ie_rsn() 500 if (rsn_ie_len < sizeof(struct rsn_ie_hdr)) { in wpa_parse_wpa_ie_rsn() 502 __func__, (unsigned long) rsn_ie_len); in wpa_parse_wpa_ie_rsn() 509 hdr->len != rsn_ie_len - 2 || in wpa_parse_wpa_ie_rsn() 517 left = rsn_ie_len - sizeof(*hdr); in wpa_parse_wpa_ie_rsn() 726 static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len, in wpa_gen_wpa_ie_rsn() argument 736 if (rsn_ie_len < sizeof(*hdr) + RSN_SELECTOR_LEN + in wpa_gen_wpa_ie_rsn() 826 WPA_ASSERT((size_t) (pos - rsn_ie) <= rsn_ie_len); in wpa_gen_wpa_ie_rsn() 1177 size_t rsn_ie_len; member [all …]
|
D | events.c | 267 while ((ssid->proto & WPA_PROTO_RSN) && bss->rsn_ie_len > 0) { in wpa_supplicant_ssid_bss_match() 270 if (wpa_parse_wpa_ie(bss->rsn_ie, bss->rsn_ie_len, &ie)) { in wpa_supplicant_ssid_bss_match() 377 (unsigned long) bss->rsn_ie_len, bss->caps); in wpa_supplicant_select_bss() 384 if (bss->wpa_ie_len == 0 && bss->rsn_ie_len == 0) { in wpa_supplicant_select_bss() 431 (unsigned long) bss->rsn_ie_len, bss->caps); in wpa_supplicant_select_bss() 469 (bss->wpa_ie_len != 0 || bss->rsn_ie_len != 0)) { in wpa_supplicant_select_bss()
|
D | driver_bsd.c | 559 if ((wb->wpa_ie_len || wb->rsn_ie_len) && in wpa_scan_result_compar() 560 !(wa->wpa_ie_len || wa->rsn_ie_len)) in wpa_scan_result_compar() 562 if (!(wb->wpa_ie_len || wb->rsn_ie_len) && in wpa_scan_result_compar() 563 (wa->wpa_ie_len || wa->rsn_ie_len)) in wpa_scan_result_compar() 657 wsr->rsn_ie_len = in wpa_driver_bsd_get_scan_results() 660 wsr->rsn_ie_len); in wpa_driver_bsd_get_scan_results()
|
D | preauth.c | 458 if (r->rsn_ie_len == 0 || in rsn_preauth_scan_results() 459 wpa_parse_wpa_ie(r->rsn_ie, r->rsn_ie_len, &ie)) in rsn_preauth_scan_results()
|
D | mlme.c | 288 size_t rsn_ie_len; member 1673 (bss->rsn_ie == NULL || bss->rsn_ie_len != elems.rsn_len || in ieee80211_bss_info() 1680 bss->rsn_ie_len = elems.rsn_len + 2; in ieee80211_bss_info() 1682 bss->rsn_ie_len = 0; in ieee80211_bss_info() 1686 bss->rsn_ie_len = 0; in ieee80211_bss_info() 2711 if (bss->rsn_ie && bss->rsn_ie_len < SSID_MAX_WPA_IE_LEN) { in ieee80211_sta_get_scan_results() 2712 os_memcpy(r->rsn_ie, bss->rsn_ie, bss->rsn_ie_len); in ieee80211_sta_get_scan_results() 2713 r->rsn_ie_len = bss->rsn_ie_len; in ieee80211_sta_get_scan_results()
|
D | driver.h | 61 size_t rsn_ie_len; member
|
D | ctrl_iface.c | 565 if (res->rsn_ie_len) { in wpa_supplicant_ctrl_iface_scan_results() 568 res->rsn_ie_len); in wpa_supplicant_ctrl_iface_scan_results() 570 if (!res->wpa_ie_len && !res->rsn_ie_len && in wpa_supplicant_ctrl_iface_scan_results() 583 if (!res->wpa_ie_len && !res->rsn_ie_len) { in wpa_supplicant_ctrl_iface_scan_results()
|
D | driver_wext.c | 1197 if ((wb->wpa_ie_len || wb->rsn_ie_len) && 1198 !(wa->wpa_ie_len || wa->rsn_ie_len)) 1200 if (!(wb->wpa_ie_len || wb->rsn_ie_len) && 1201 (wa->wpa_ie_len || wa->rsn_ie_len)) 1457 results[ap_num].rsn_ie_len = ielen; 1502 results[ap_num].rsn_ie_len = bytes;
|
D | wpa_supplicant.c | 1226 if (bss && bss->rsn_ie_len && (ssid->proto & WPA_PROTO_RSN) && in wpa_supplicant_set_suites() 1227 wpa_parse_wpa_ie(bss->rsn_ie, bss->rsn_ie_len, &ie) == 0 && in wpa_supplicant_set_suites() 1279 bss ? bss->rsn_ie_len : 0)) in wpa_supplicant_set_suites() 1434 if (bss && (bss->wpa_ie_len || bss->rsn_ie_len) && in wpa_supplicant_associate() 1750 curr->rsn_ie_len)) in wpa_get_beacon_ie()
|
D | ctrl_iface_dbus_handlers.c | 416 if (res->rsn_ie_len) { in wpas_dbus_bssid_properties() 419 res->rsn_ie_len)) { in wpas_dbus_bssid_properties()
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | events.c | 393 u8 wpa_ie_len, rsn_ie_len, ssid_len; in wpa_supplicant_select_bss_wpa() local 404 rsn_ie_len = ie ? ie[1] : 0; in wpa_supplicant_select_bss_wpa() 410 wpa_ie_len, rsn_ie_len, bss->caps); in wpa_supplicant_select_bss_wpa() 423 if (wpa_ie_len == 0 && rsn_ie_len == 0) { in wpa_supplicant_select_bss_wpa() 488 u8 wpa_ie_len, rsn_ie_len, ssid_len; in wpa_supplicant_select_bss_non_wpa() local 499 rsn_ie_len = ie ? ie[1] : 0; in wpa_supplicant_select_bss_non_wpa() 505 wpa_ie_len, rsn_ie_len, bss->caps); in wpa_supplicant_select_bss_non_wpa() 569 (wpa_ie_len != 0 || rsn_ie_len != 0)) { in wpa_supplicant_select_bss_non_wpa()
|
D | mlme.c | 72 size_t rsn_ie_len; member 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() 1478 bss->rsn_ie = os_malloc(elems.rsn_ie_len + 2); in ieee80211_bss_info() 1481 elems.rsn_ie_len + 2); in ieee80211_bss_info() 1482 bss->rsn_ie_len = elems.rsn_ie_len + 2; in ieee80211_bss_info() 1484 bss->rsn_ie_len = 0; in ieee80211_bss_info() 1488 bss->rsn_ie_len = 0; in ieee80211_bss_info()
|
D | wpa_priv.c | 216 ie_len = 2 + r->ssid_len + r->rsn_ie_len + r->wpa_ie_len; in wpa_priv_send_old_scan_results() 253 if (r->rsn_ie_len) { in wpa_priv_send_old_scan_results() 254 os_memcpy(pos, r->rsn_ie, r->rsn_ie_len); in wpa_priv_send_old_scan_results() 255 pos += r->rsn_ie_len; in wpa_priv_send_old_scan_results()
|
D | wpa_supplicant.c | 1327 ie_len = 2 + bss->ssid_len + bss->rsn_ie_len + bss->wpa_ie_len; in wpa_supplicant_get_scan_results_old() 1361 if (bss->rsn_ie_len) { in wpa_supplicant_get_scan_results_old() 1362 os_memcpy(pos, bss->rsn_ie, bss->rsn_ie_len); in wpa_supplicant_get_scan_results_old() 1363 pos += bss->rsn_ie_len; in wpa_supplicant_get_scan_results_old()
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
D | driver_bsd.c | 562 if ((wb->wpa_ie_len || wb->rsn_ie_len) && in wpa_scan_result_compar() 563 !(wa->wpa_ie_len || wa->rsn_ie_len)) in wpa_scan_result_compar() 565 if (!(wb->wpa_ie_len || wb->rsn_ie_len) && in wpa_scan_result_compar() 566 (wa->wpa_ie_len || wa->rsn_ie_len)) in wpa_scan_result_compar() 660 wsr->rsn_ie_len = in wpa_driver_bsd_get_scan_results() 663 wsr->rsn_ie_len); in wpa_driver_bsd_get_scan_results()
|
D | driver_ralink.c | 701 INT rsn_ie_len; in wpa_driver_ralink_event_wireless() member 724 } else if (pApInfo->rsn_ie_len > 0) { in wpa_driver_ralink_event_wireless() 725 os_memcpy(wpa_s->scan_results[0].rsn_ie, pApInfo->rsn_ie, pApInfo->rsn_ie_len); in wpa_driver_ralink_event_wireless() 726 wpa_s->scan_results[0].rsn_ie_len = pApInfo->rsn_ie_len; in wpa_driver_ralink_event_wireless() 1147 results[ap_num].rsn_ie_len = ielen; in wpa_driver_ralink_get_scan_results()
|
D | driver.h | 71 size_t rsn_ie_len; member
|