/external/wpa_supplicant_8/src/wps/ |
D | wps.h | 906 int wps_validate_beacon(const struct wpabuf *wps_ie); 907 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, 909 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr); 910 int wps_validate_assoc_req(const struct wpabuf *wps_ie); 911 int wps_validate_assoc_resp(const struct wpabuf *wps_ie); 931 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument 935 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument 941 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument 947 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument 952 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) in wps_validate_assoc_resp() argument
|
D | wps_validate.c | 1083 int wps_validate_beacon(const struct wpabuf *wps_ie) in wps_validate_beacon() argument 1088 if (wps_ie == NULL) { in wps_validate_beacon() 1092 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon() 1121 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, in wps_validate_beacon_probe_resp() argument 1127 if (wps_ie == NULL) { in wps_validate_beacon_probe_resp() 1132 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon_probe_resp() 1180 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr) in wps_validate_probe_req() argument 1185 if (wps_ie == NULL) { in wps_validate_probe_req() 1190 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_probe_req() 1227 int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wps_supplicant.c | 1649 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local 1654 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpas_wps_ssid_bss_match() 1656 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1661 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match() 1664 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1671 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1676 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1688 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match() 1698 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1706 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() [all …]
|
D | bss.c | 314 struct wpabuf *wps_ie; in wpa_bss_is_wps_candidate() local 317 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_bss_is_wps_candidate() 318 if (!wps_ie) in wpa_bss_is_wps_candidate() 321 if (wps_is_selected_pbc_registrar(wps_ie)) { in wpa_bss_is_wps_candidate() 323 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpa_bss_is_wps_candidate() 324 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 340 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 343 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate()
|
D | sme.c | 343 struct wpabuf *wps_ie; in sme_send_authentication() local 344 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication() 345 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication() 347 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication() 348 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication() 352 wpabuf_free(wps_ie); in sme_send_authentication()
|
D | scan.c | 506 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local 507 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies() 512 if (wps_ie) { in wpa_supplicant_extra_ies() 513 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies() 514 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies() 515 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
|
D | wpa_supplicant.c | 2326 struct wpabuf *wps_ie; in wpas_start_assoc_cb() local 2327 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in wpas_start_assoc_cb() 2328 if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) { in wpas_start_assoc_cb() 2329 wpa_ie_len = wpabuf_len(wps_ie); in wpas_start_assoc_cb() 2330 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); in wpas_start_assoc_cb() 2333 wpabuf_free(wps_ie); in wpas_start_assoc_cb() 3540 struct wpabuf *wps_ie; in wpa_supplicant_rx_eapol() local 3542 wps_ie = wpa_bss_get_vendor_ie_multi( in wpa_supplicant_rx_eapol() 3544 if (wps_ie && in wpa_supplicant_rx_eapol() 3545 !wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) in wpa_supplicant_rx_eapol() [all …]
|
D | p2p_supplicant.c | 357 struct wpabuf *wps_ie, *ies; in wpas_p2p_scan() local 386 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in wpas_p2p_scan() 389 if (wps_ie == NULL) in wpas_p2p_scan() 433 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in wpas_p2p_scan() 435 wpabuf_free(wps_ie); in wpas_p2p_scan() 438 wpabuf_put_buf(ies, wps_ie); in wpas_p2p_scan() 439 wpabuf_free(wps_ie); in wpas_p2p_scan() 4959 struct wpabuf *wps_ie, *ies; in wpas_p2p_join_scan_req() local 4980 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, in wpas_p2p_join_scan_req() 4983 if (wps_ie == NULL) { in wpas_p2p_join_scan_req() [all …]
|
D | ctrl_iface.c | 2610 struct wpabuf *wps_ie) in wpa_supplicant_wps_ie_txt_buf() argument 2615 if (wps_ie == NULL) in wpa_supplicant_wps_ie_txt_buf() 2617 if (wps_is_selected_pbc_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf() 2619 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0)) in wpa_supplicant_wps_ie_txt_buf() 2621 else if (wps_is_selected_pin_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf() 2629 wpabuf_free(wps_ie); in wpa_supplicant_wps_ie_txt_buf() 2640 struct wpabuf *wps_ie; in wpa_supplicant_wps_ie_txt() local 2641 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_supplicant_wps_ie_txt() 2642 return wpa_supplicant_wps_ie_txt_buf(wpa_s, pos, end, wps_ie); in wpa_supplicant_wps_ie_txt()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_hostap.c | 49 u8 *wps_ie; member 721 if (drv->wps_ie) { in hostapd_ioctl_set_generic_elem() 723 drv->wps_ie, drv->wps_ie_len); in hostapd_ioctl_set_generic_elem() 767 os_free(drv->wps_ie); in hostap_set_ap_wps_ie() 768 drv->wps_ie = NULL; in hostap_set_ap_wps_ie() 771 drv->wps_ie = os_malloc(wpabuf_len(proberesp)); in hostap_set_ap_wps_ie() 772 if (drv->wps_ie == NULL) in hostap_set_ap_wps_ie() 774 os_memcpy(drv->wps_ie, wpabuf_head(proberesp), in hostap_set_ap_wps_ie() 1019 os_free(drv->wps_ie); in hostap_driver_deinit()
|
D | driver_atheros.c | 1143 ie.wps_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta() 1162 if (ie.wps_ie && in atheros_new_sta() 1163 (ie.wps_ie[1] > 0 && (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC))) { in atheros_new_sta() 1164 iebuf = ie.wps_ie; in atheros_new_sta() 1165 ielen = ie.wps_ie[1]; in atheros_new_sta()
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_old_handlers.c | 416 const u8 *wpa_ie, *rsn_ie, *wps_ie; in wpas_dbus_bssid_properties() local 423 wps_ie = wpa_bss_get_vendor_ie(bss, WPS_IE_VENDOR_TYPE); in wpas_dbus_bssid_properties() 441 (wps_ie && in wpas_dbus_bssid_properties() 443 (const char *) wps_ie, in wpas_dbus_bssid_properties() 444 wps_ie[1] + 2)) || in wpas_dbus_bssid_properties()
|
D | dbus_new_handlers.c | 4120 struct wpabuf *wps_ie; in wpas_dbus_getter_bss_wps() local 4136 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); in wpas_dbus_getter_bss_wps() 4137 if (wps_ie) { in wpas_dbus_getter_bss_wps() 4139 if (wps_is_selected_pbc_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 4141 else if (wps_is_selected_pin_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 4144 wpabuf_free(wps_ie); in wpas_dbus_getter_bss_wps()
|
/external/wpa_supplicant_8/src/ap/ |
D | wps_hostapd.c | 1385 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local 1403 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx() 1404 if (wps_ie == NULL) in hostapd_wps_probe_req_rx() 1406 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx() 1407 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx() 1411 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx() 1419 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx() 1427 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx() 1431 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
|
D | sta_info.h | 182 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member
|
D | ieee802_11.c | 1986 if (hapd->conf->wps_state && elems.wps_ie) { in check_assoc_ies() 1990 wpabuf_free(sta->wps_ie); in check_assoc_ies() 1991 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len, in check_assoc_ies() 1993 if (sta->wps_ie && wps_is_20(sta->wps_ie)) { in check_assoc_ies() 1999 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) { in check_assoc_ies()
|
D | drv_callbacks.c | 74 if (elems.wps_ie) { in hostapd_notif_assoc() 75 ie = elems.wps_ie - 2; in hostapd_notif_assoc()
|
D | sta_info.c | 318 wpabuf_free(sta->wps_ie); in ap_free_sta()
|
D | beacon.c | 783 if (hapd->p2p && hapd->p2p_group && elems.wps_ie) { in handle_probe_req()
|
D | ieee802_1x.c | 863 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
|
/external/wpa_supplicant_8/src/common/ |
D | ieee802_11_common.h | 36 const u8 *wps_ie; member
|
D | ieee802_11_common.c | 84 elems->wps_ie = pos; in ieee802_11_parse_vendor_specific()
|