/external/wpa_supplicant_8/src/wps/ |
D | wps.h | 953 int wps_validate_beacon(const struct wpabuf *wps_ie); 954 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, 956 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr); 957 int wps_validate_assoc_req(const struct wpabuf *wps_ie); 958 int wps_validate_assoc_resp(const struct wpabuf *wps_ie); 978 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument 982 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument 988 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument 994 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument 999 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 | 1700 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local 1705 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpas_wps_ssid_bss_match() 1707 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1712 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match() 1715 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1722 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1727 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1739 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match() 1749 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1757 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() [all …]
|
D | bss.c | 306 struct wpabuf *wps_ie; in wpa_bss_is_wps_candidate() local 309 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_bss_is_wps_candidate() 310 if (!wps_ie) in wpa_bss_is_wps_candidate() 313 if (wps_is_selected_pbc_registrar(wps_ie)) { in wpa_bss_is_wps_candidate() 315 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpa_bss_is_wps_candidate() 316 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 332 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 335 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate()
|
D | sme.c | 493 struct wpabuf *wps_ie; in sme_send_authentication() local 494 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication() 495 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication() 497 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication() 498 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication() 502 wpabuf_free(wps_ie); in sme_send_authentication()
|
D | scan.c | 607 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local 608 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies() 613 if (wps_ie) { in wpa_supplicant_extra_ies() 614 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies() 615 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies() 616 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
|
D | wpa_supplicant.c | 2899 struct wpabuf *wps_ie; in wpas_populate_assoc_ies() local 2900 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in wpas_populate_assoc_ies() 2901 if (wps_ie && wpabuf_len(wps_ie) <= max_wpa_ie_len) { in wpas_populate_assoc_ies() 2902 wpa_ie_len = wpabuf_len(wps_ie); in wpas_populate_assoc_ies() 2903 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); in wpas_populate_assoc_ies() 2906 wpabuf_free(wps_ie); in wpas_populate_assoc_ies() 4872 struct wpabuf *wps_ie; in wpa_supplicant_rx_eapol() local 4874 wps_ie = wpa_bss_get_vendor_ie_multi( in wpa_supplicant_rx_eapol() 4876 if (wps_ie && in wpa_supplicant_rx_eapol() 4877 !wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) in wpa_supplicant_rx_eapol() [all …]
|
D | p2p_supplicant.c | 401 struct wpabuf *wps_ie, *ies; in wpas_p2p_scan() local 430 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in wpas_p2p_scan() 433 if (wps_ie == NULL) in wpas_p2p_scan() 477 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in wpas_p2p_scan() 479 wpabuf_free(wps_ie); in wpas_p2p_scan() 482 wpabuf_put_buf(ies, wps_ie); in wpas_p2p_scan() 483 wpabuf_free(wps_ie); in wpas_p2p_scan() 5339 struct wpabuf *wps_ie, *ies; in wpas_p2p_join_scan_req() local 5360 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, in wpas_p2p_join_scan_req() 5363 if (wps_ie == NULL) { in wpas_p2p_join_scan_req() [all …]
|
D | ctrl_iface.c | 2930 struct wpabuf *wps_ie) in wpa_supplicant_wps_ie_txt_buf() argument 2935 if (wps_ie == NULL) in wpa_supplicant_wps_ie_txt_buf() 2937 if (wps_is_selected_pbc_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf() 2939 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0)) in wpa_supplicant_wps_ie_txt_buf() 2941 else if (wps_is_selected_pin_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf() 2949 wpabuf_free(wps_ie); in wpa_supplicant_wps_ie_txt_buf() 2960 struct wpabuf *wps_ie; in wpa_supplicant_wps_ie_txt() local 2961 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_supplicant_wps_ie_txt() 2962 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 732 if (drv->wps_ie) { in hostapd_ioctl_set_generic_elem() 734 drv->wps_ie, drv->wps_ie_len); in hostapd_ioctl_set_generic_elem() 777 os_free(drv->wps_ie); in hostap_set_ap_wps_ie() 778 drv->wps_ie = NULL; in hostap_set_ap_wps_ie() 781 drv->wps_ie = os_memdup(wpabuf_head(proberesp), in hostap_set_ap_wps_ie() 783 if (drv->wps_ie == NULL) in hostap_set_ap_wps_ie() 1028 os_free(drv->wps_ie); in hostap_driver_deinit()
|
D | driver_atheros.c | 1195 ie.wps_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta() 1214 if (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC && ie.wps_ie[1] > 0) { in atheros_new_sta() 1215 iebuf = ie.wps_ie; in atheros_new_sta() 1216 ielen = ie.wps_ie[1]; in atheros_new_sta()
|
/external/wpa_supplicant_8/src/ap/ |
D | wps_hostapd.c | 1631 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local 1649 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx() 1650 if (wps_ie == NULL) in hostapd_wps_probe_req_rx() 1652 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx() 1653 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx() 1657 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx() 1665 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx() 1673 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx() 1677 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
|
D | sta_info.h | 230 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member
|
D | ieee802_11.c | 4450 if (hapd->conf->wps_state && elems.wps_ie) { in check_assoc_ies() 4456 wpabuf_free(sta->wps_ie); in check_assoc_ies() 4457 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len, in check_assoc_ies() 4459 if (sta->wps_ie && wps_is_20(sta->wps_ie)) { in check_assoc_ies() 4465 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) { in check_assoc_ies()
|
D | drv_callbacks.c | 180 if (elems.wps_ie) { in hostapd_notif_assoc() 181 ie = elems.wps_ie - 2; in hostapd_notif_assoc()
|
D | sta_info.c | 348 wpabuf_free(sta->wps_ie); in ap_free_sta()
|
D | beacon.c | 891 if (hapd->p2p && hapd->p2p_group && elems.wps_ie) { in handle_probe_req()
|
D | ieee802_1x.c | 995 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
|
/external/wpa_supplicant_8/src/common/ |
D | ieee802_11_common.h | 62 const u8 *wps_ie; member
|
D | ieee802_11_common.c | 85 elems->wps_ie = pos; in ieee802_11_parse_vendor_specific()
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new_handlers.c | 5026 struct wpabuf *wps_ie; in wpas_dbus_getter_bss_wps() local 5042 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); in wpas_dbus_getter_bss_wps() 5043 if (wps_ie) { in wpas_dbus_getter_bss_wps() 5045 if (wps_is_selected_pbc_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 5047 else if (wps_is_selected_pin_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 5050 wpabuf_free(wps_ie); in wpas_dbus_getter_bss_wps()
|