/freebsd-11-stable/contrib/wpa/src/wps/ |
H A 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){ argument 973 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, argument 979 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, argument 985 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument 990 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument [all...] |
H A D | wps_validate.c | 1083 int wps_validate_beacon(const struct wpabuf *wps_ie) argument 1088 if (wps_ie == NULL) { 1092 if (wps_parse_msg(wps_ie, &attr) < 0) { 1121 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, argument 1127 if (wps_ie == NULL) { 1132 if (wps_parse_msg(wps_ie, &attr) < 0) { 1180 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr) argument 1185 if (wps_ie == NULL) { 1190 if (wps_parse_msg(wps_ie, &attr) < 0) { 1227 int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument 1256 wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | wps_supplicant.c | 1677 struct wpabuf *wps_ie; local 1682 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); 1684 if (!wps_ie) { 1689 if (!wps_is_selected_pbc_registrar(wps_ie)) { 1692 wpabuf_free(wps_ie); 1699 wpabuf_free(wps_ie); 1704 if (!wps_ie) { 1716 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { 1726 wpabuf_free(wps_ie); 1734 wpabuf_free(wps_ie); 1752 struct wpabuf *wps_ie = NULL; local 1809 struct wpabuf *wps_ie; local 1913 struct wpabuf *wps_ie; local [all...] |
H A D | bss.c | 318 struct wpabuf *wps_ie; local 321 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); 322 if (!wps_ie) 325 if (wps_is_selected_pbc_registrar(wps_ie)) { 327 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { 328 wpabuf_free(wps_ie); 344 wpabuf_free(wps_ie); 347 wpabuf_free(wps_ie);
|
H A D | sme.c | 413 struct wpabuf *wps_ie; local 414 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); 415 if (wps_ie && wpabuf_len(wps_ie) <= 417 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); 418 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), 422 wpabuf_free(wps_ie);
|
H A D | scan.c | 558 struct wpabuf *wps_ie; local 559 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : 564 if (wps_ie) { 565 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) 566 wpabuf_put_buf(extra_ie, wps_ie); 567 wpabuf_free(wps_ie);
|
H A D | wpa_supplicant.c | 2622 struct wpabuf *wps_ie; local 2623 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); 2624 if (wps_ie && wpabuf_len(wps_ie) <= max_wpa_ie_len) { 2625 wpa_ie_len = wpabuf_len(wps_ie); 2626 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); 2629 wpabuf_free(wps_ie); 4260 struct wpabuf *wps_ie; local 4262 wps_ie = wpa_bss_get_vendor_ie_multi( 4264 if (wps_ie [all...] |
H A D | p2p_supplicant.c | 357 struct wpabuf *wps_ie, *ies; local 386 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, 389 if (wps_ie == NULL) 433 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); 435 wpabuf_free(wps_ie); 438 wpabuf_put_buf(ies, wps_ie); 439 wpabuf_free(wps_ie); 5100 struct wpabuf *wps_ie, *ies; local 5121 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, 5124 if (wps_ie [all...] |
H A D | ctrl_iface.c | 2776 struct wpabuf *wps_ie) 2781 if (wps_ie == NULL) 2783 if (wps_is_selected_pbc_registrar(wps_ie)) 2785 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0)) 2787 else if (wps_is_selected_pin_registrar(wps_ie)) 2795 wpabuf_free(wps_ie); 2806 struct wpabuf *wps_ie; local 2807 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); 2808 return wpa_supplicant_wps_ie_txt_buf(wpa_s, pos, end, wps_ie); 2774 wpa_supplicant_wps_ie_txt_buf(struct wpa_supplicant *wpa_s, char *pos, char *end, struct wpabuf *wps_ie) argument
|
/freebsd-11-stable/contrib/wpa/src/drivers/ |
H A D | driver_hostap.c | 49 u8 *wps_ie; member in struct:hostap_driver_data 728 if (drv->wps_ie) { 730 drv->wps_ie, drv->wps_ie_len); 773 os_free(drv->wps_ie); 774 drv->wps_ie = NULL; 777 drv->wps_ie = os_memdup(wpabuf_head(proberesp), 779 if (drv->wps_ie == NULL) 1024 os_free(drv->wps_ie);
|
H A D | driver_atheros.c | 1202 ie.wps_ie, IEEE80211_MAX_OPT_IE); 1221 if (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC && ie.wps_ie[1] > 0) { 1222 iebuf = ie.wps_ie; 1223 ielen = ie.wps_ie[1];
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | wps_hostapd.c | 1453 struct wpabuf *wps_ie; local 1471 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); 1472 if (wps_ie == NULL) 1474 if (wps_validate_probe_req(wps_ie, addr) < 0) { 1475 wpabuf_free(wps_ie); 1479 if (wpabuf_len(wps_ie) > 0) { 1487 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, 1495 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); 1499 wpabuf_free(wps_ie);
|
H A D | sta_info.h | 190 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member in struct:sta_info
|
H A D | ieee802_11.c | 3028 if (hapd->conf->wps_state && elems.wps_ie) { 3032 wpabuf_free(sta->wps_ie); 3033 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len, 3035 if (sta->wps_ie && wps_is_20(sta->wps_ie)) { 3041 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) {
|
H A D | drv_callbacks.c | 140 if (elems.wps_ie) { 141 ie = elems.wps_ie - 2;
|
H A D | sta_info.c | 322 wpabuf_free(sta->wps_ie);
|
H A D | beacon.c | 812 if (hapd->p2p && hapd->p2p_group && elems.wps_ie) {
|
H A D | ieee802_1x.c | 986 sta->wps_ie, sta->p2p_ie, sta,
|
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | ieee802_11_common.h | 45 const u8 *wps_ie; member in struct:ieee802_11_elems
|
H A D | ieee802_11_common.c | 85 elems->wps_ie = pos;
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 4722 struct wpabuf *wps_ie; local 4738 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); 4739 if (wps_ie) { 4741 if (wps_is_selected_pbc_registrar(wps_ie)) 4743 else if (wps_is_selected_pin_registrar(wps_ie)) 4746 wpabuf_free(wps_ie);
|