/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps.h | 944 int wps_validate_beacon(const struct wpabuf *wps_ie); 945 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, 947 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr); 948 int wps_validate_assoc_req(const struct wpabuf *wps_ie); 949 int wps_validate_assoc_resp(const struct wpabuf *wps_ie); 969 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument 973 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument 979 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument 985 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument 990 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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps.h | 957 int wps_validate_beacon(const struct wpabuf *wps_ie); 958 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, 960 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr); 961 int wps_validate_assoc_req(const struct wpabuf *wps_ie); 962 int wps_validate_assoc_resp(const struct wpabuf *wps_ie); 982 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument 986 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument 992 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument 998 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument 1003 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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | wps_supplicant.c | 1705 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local 1710 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpas_wps_ssid_bss_match() 1712 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1717 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match() 1720 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1727 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1732 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1744 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match() 1754 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1762 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() [all …]
|
D | bss.c | 309 struct wpabuf *wps_ie; in wpa_bss_is_wps_candidate() local 312 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_bss_is_wps_candidate() 313 if (!wps_ie) in wpa_bss_is_wps_candidate() 316 if (wps_is_selected_pbc_registrar(wps_ie)) { in wpa_bss_is_wps_candidate() 318 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpa_bss_is_wps_candidate() 319 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 335 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 338 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate()
|
D | sme.c | 500 struct wpabuf *wps_ie; in sme_send_authentication() local 501 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication() 502 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication() 504 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication() 505 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication() 509 wpabuf_free(wps_ie); in sme_send_authentication()
|
D | scan.c | 647 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local 648 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies() 653 if (wps_ie) { in wpa_supplicant_extra_ies() 654 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies() 655 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies() 656 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | wps_supplicant.c | 1677 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local 1682 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpas_wps_ssid_bss_match() 1684 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1689 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match() 1692 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1699 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1704 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1716 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match() 1726 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1734 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() [all …]
|
D | bss.c | 318 struct wpabuf *wps_ie; in wpa_bss_is_wps_candidate() local 321 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_bss_is_wps_candidate() 322 if (!wps_ie) in wpa_bss_is_wps_candidate() 325 if (wps_is_selected_pbc_registrar(wps_ie)) { in wpa_bss_is_wps_candidate() 327 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpa_bss_is_wps_candidate() 328 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 344 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 347 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate()
|
D | sme.c | 413 struct wpabuf *wps_ie; in sme_send_authentication() local 414 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication() 415 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication() 417 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication() 418 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication() 422 wpabuf_free(wps_ie); in sme_send_authentication()
|
D | scan.c | 569 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local 570 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies() 575 if (wps_ie) { in wpa_supplicant_extra_ies() 576 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies() 577 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies() 578 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
|
D | wpa_supplicant.c | 2649 struct wpabuf *wps_ie; in wpas_populate_assoc_ies() local 2650 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in wpas_populate_assoc_ies() 2651 if (wps_ie && wpabuf_len(wps_ie) <= max_wpa_ie_len) { in wpas_populate_assoc_ies() 2652 wpa_ie_len = wpabuf_len(wps_ie); in wpas_populate_assoc_ies() 2653 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); in wpas_populate_assoc_ies() 2656 wpabuf_free(wps_ie); in wpas_populate_assoc_ies() 4287 struct wpabuf *wps_ie; in wpa_supplicant_rx_eapol() local 4289 wps_ie = wpa_bss_get_vendor_ie_multi( in wpa_supplicant_rx_eapol() 4291 if (wps_ie && in wpa_supplicant_rx_eapol() 4292 !wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) in wpa_supplicant_rx_eapol() [all …]
|
D | p2p_supplicant.c | 360 struct wpabuf *wps_ie, *ies; in wpas_p2p_scan() local 389 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in wpas_p2p_scan() 392 if (wps_ie == NULL) in wpas_p2p_scan() 436 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in wpas_p2p_scan() 438 wpabuf_free(wps_ie); in wpas_p2p_scan() 441 wpabuf_put_buf(ies, wps_ie); in wpas_p2p_scan() 442 wpabuf_free(wps_ie); in wpas_p2p_scan() 5113 struct wpabuf *wps_ie, *ies; in wpas_p2p_join_scan_req() local 5134 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, in wpas_p2p_join_scan_req() 5137 if (wps_ie == NULL) { in wpas_p2p_join_scan_req() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_hostap.c | 49 u8 *wps_ie; member 728 if (drv->wps_ie) { in hostapd_ioctl_set_generic_elem() 730 drv->wps_ie, drv->wps_ie_len); in hostapd_ioctl_set_generic_elem() 773 os_free(drv->wps_ie); in hostap_set_ap_wps_ie() 774 drv->wps_ie = NULL; in hostap_set_ap_wps_ie() 777 drv->wps_ie = os_memdup(wpabuf_head(proberesp), in hostap_set_ap_wps_ie() 779 if (drv->wps_ie == NULL) in hostap_set_ap_wps_ie() 1024 os_free(drv->wps_ie); in hostap_driver_deinit()
|
D | driver_atheros.c | 1202 ie.wps_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta() 1221 if (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC && ie.wps_ie[1] > 0) { in atheros_new_sta() 1222 iebuf = ie.wps_ie; in atheros_new_sta() 1223 ielen = ie.wps_ie[1]; in atheros_new_sta()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | wps_hostapd.c | 1453 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local 1471 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx() 1472 if (wps_ie == NULL) in hostapd_wps_probe_req_rx() 1474 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx() 1475 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx() 1479 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx() 1487 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx() 1495 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx() 1499 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
|
D | sta_info.h | 190 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | wps_hostapd.c | 1638 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local 1656 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx() 1657 if (wps_ie == NULL) in hostapd_wps_probe_req_rx() 1659 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx() 1660 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx() 1664 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx() 1672 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx() 1680 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx() 1684 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
|
D | sta_info.h | 231 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | ieee802_11_common.h | 45 const u8 *wps_ie; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | ieee802_11_common.h | 71 const u8 *wps_ie; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/dbus/ |
D | dbus_new_handlers.c | 4722 struct wpabuf *wps_ie; in wpas_dbus_getter_bss_wps() local 4738 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); in wpas_dbus_getter_bss_wps() 4739 if (wps_ie) { in wpas_dbus_getter_bss_wps() 4741 if (wps_is_selected_pbc_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 4743 else if (wps_is_selected_pin_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 4746 wpabuf_free(wps_ie); in wpas_dbus_getter_bss_wps()
|