/freebsd/contrib/wpa/src/wps/ |
H A D | wps.h | 962 int wps_validate_beacon(const struct wpabuf *wps_ie); 963 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, 965 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr); 966 int wps_validate_assoc_req(const struct wpabuf *wps_ie); 967 int wps_validate_assoc_resp(const struct wpabuf *wps_ie); 987 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument 991 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument 997 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument 1003 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument 1008 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) in wps_validate_assoc_resp() argument
|
H A 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 …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wps_supplicant.c | 1724 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local 1729 wps_ie = wpas_wps_get_wps_ie(bss); in wpas_wps_ssid_bss_match() 1731 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1736 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match() 1739 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1746 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1751 if (!wps_ie) { in wpas_wps_ssid_bss_match() 1763 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match() 1773 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() 1781 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match() [all …]
|
H A D | bss.c | 321 struct wpabuf *wps_ie; in wpa_bss_is_wps_candidate() local 324 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_bss_is_wps_candidate() 325 if (!wps_ie) in wpa_bss_is_wps_candidate() 328 if (wps_is_selected_pbc_registrar(wps_ie)) { in wpa_bss_is_wps_candidate() 330 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpa_bss_is_wps_candidate() 331 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 347 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate() 350 wpabuf_free(wps_ie); in wpa_bss_is_wps_candidate()
|
H A D | scan.c | 771 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local 772 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies() 777 if (wps_ie) { in wpa_supplicant_extra_ies() 778 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies() 779 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies() 780 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
|
H A D | sme.c | 754 struct wpabuf *wps_ie; in sme_send_authentication() local 755 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication() 756 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication() 758 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication() 759 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication() 763 wpabuf_free(wps_ie); in sme_send_authentication()
|
H A D | wpa_supplicant.c | 3533 struct wpabuf *wps_ie; in wpas_populate_assoc_ies() local 3534 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in wpas_populate_assoc_ies() 3535 if (wps_ie && wpabuf_len(wps_ie) <= max_wpa_ie_len) { in wpas_populate_assoc_ies() 3536 wpa_ie_len = wpabuf_len(wps_ie); in wpas_populate_assoc_ies() 3537 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); in wpas_populate_assoc_ies() 3540 wpabuf_free(wps_ie); in wpas_populate_assoc_ies() 5693 struct wpabuf *wps_ie; in wpa_supplicant_rx_eapol() local 5695 wps_ie = wpa_bss_get_vendor_ie_multi( in wpa_supplicant_rx_eapol() 5697 if (wps_ie && in wpa_supplicant_rx_eapol() 5698 !wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) in wpa_supplicant_rx_eapol() [all …]
|
H A D | p2p_supplicant.c | 428 struct wpabuf *wps_ie, *ies; in wpas_p2p_scan() local 457 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in wpas_p2p_scan() 460 if (wps_ie == NULL) in wpas_p2p_scan() 512 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in wpas_p2p_scan() 514 wpabuf_free(wps_ie); in wpas_p2p_scan() 517 wpabuf_put_buf(ies, wps_ie); in wpas_p2p_scan() 518 wpabuf_free(wps_ie); in wpas_p2p_scan() 5571 struct wpabuf *wps_ie, *ies; in wpas_p2p_join_scan_req() local 5592 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, in wpas_p2p_join_scan_req() 5595 if (wps_ie == NULL) { in wpas_p2p_join_scan_req() [all …]
|
H A D | ctrl_iface.c | 3054 struct wpabuf *wps_ie) in wpa_supplicant_wps_ie_txt_buf() argument 3059 if (wps_ie == NULL) in wpa_supplicant_wps_ie_txt_buf() 3061 if (wps_is_selected_pbc_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf() 3063 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0)) in wpa_supplicant_wps_ie_txt_buf() 3065 else if (wps_is_selected_pin_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf() 3073 wpabuf_free(wps_ie); in wpa_supplicant_wps_ie_txt_buf() 3084 struct wpabuf *wps_ie; in wpa_supplicant_wps_ie_txt() local 3085 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_supplicant_wps_ie_txt() 3086 return wpa_supplicant_wps_ie_txt_buf(wpa_s, pos, end, wps_ie); in wpa_supplicant_wps_ie_txt()
|
/freebsd/contrib/wpa/src/drivers/ |
H A 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()
|
H A D | driver_atheros.c | 1196 ie.wps_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta() 1215 if (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC && ie.wps_ie[1] > 0) { in atheros_new_sta() 1216 iebuf = ie.wps_ie; in atheros_new_sta() 1217 ielen = ie.wps_ie[1]; in atheros_new_sta()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wps_hostapd.c | 1639 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local 1657 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx() 1658 if (wps_ie == NULL) in hostapd_wps_probe_req_rx() 1660 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx() 1661 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx() 1665 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx() 1673 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx() 1681 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx() 1685 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
|
H A D | sta_info.h | 228 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member
|
H A D | ieee802_11.c | 4062 if (hapd->conf->wps_state && elems->wps_ie && ies && ies_len) { in __check_assoc_ies() 4066 wpabuf_free(sta->wps_ie); in __check_assoc_ies() 4067 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len, in __check_assoc_ies() 4069 if (sta->wps_ie && wps_is_20(sta->wps_ie)) { in __check_assoc_ies() 4075 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) { in __check_assoc_ies()
|
H A D | drv_callbacks.c | 308 if (elems.wps_ie) { in hostapd_notif_assoc() 309 ie = elems.wps_ie - 2; in hostapd_notif_assoc()
|
H A D | sta_info.c | 404 wpabuf_free(sta->wps_ie); in ap_free_sta()
|
H A D | beacon.c | 1425 if (hapd->p2p && hapd->p2p_group && elems.wps_ie) { in handle_probe_req()
|
H A D | ieee802_1x.c | 1063 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
|
/freebsd/contrib/wpa/src/common/ |
H A D | ieee802_11_common.h | 52 const u8 *wps_ie; member
|
H A D | ieee802_11_common.c | 85 elems->wps_ie = pos; in ieee802_11_parse_vendor_specific()
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 5665 struct wpabuf *wps_ie; in wpas_dbus_getter_bss_wps() local 5681 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); in wpas_dbus_getter_bss_wps() 5682 if (wps_ie) { in wpas_dbus_getter_bss_wps() 5684 if (wps_is_selected_pbc_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 5686 else if (wps_is_selected_pin_registrar(wps_ie)) in wpas_dbus_getter_bss_wps() 5689 wpabuf_free(wps_ie); in wpas_dbus_getter_bss_wps()
|