Home
last modified time | relevance | path

Searched refs:wps_ie (Results 1 – 20 of 20) sorted by relevance

/external/wpa_supplicant_8/src/wps/
Dwps.h894 int wps_validate_beacon(const struct wpabuf *wps_ie);
895 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe,
897 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr);
898 int wps_validate_assoc_req(const struct wpabuf *wps_ie);
899 int wps_validate_assoc_resp(const struct wpabuf *wps_ie);
919 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument
923 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument
929 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument
935 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument
940 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) in wps_validate_assoc_resp() argument
Dwps_validate.c1081 int wps_validate_beacon(const struct wpabuf *wps_ie) in wps_validate_beacon() argument
1086 if (wps_ie == NULL) { in wps_validate_beacon()
1090 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon()
1119 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, in wps_validate_beacon_probe_resp() argument
1125 if (wps_ie == NULL) { in wps_validate_beacon_probe_resp()
1130 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_beacon_probe_resp()
1178 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr) in wps_validate_probe_req() argument
1183 if (wps_ie == NULL) { in wps_validate_probe_req()
1188 if (wps_parse_msg(wps_ie, &attr) < 0) { in wps_validate_probe_req()
1225 int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c1488 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local
1493 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpas_wps_ssid_bss_match()
1495 if (!wps_ie) { in wpas_wps_ssid_bss_match()
1500 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match()
1503 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
1510 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
1515 if (!wps_ie) { in wpas_wps_ssid_bss_match()
1527 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match()
1531 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
1539 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
[all …]
Dsme.c273 struct wpabuf *wps_ie; in sme_send_authentication() local
274 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication()
275 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication()
277 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication()
278 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication()
282 wpabuf_free(wps_ie); in sme_send_authentication()
Dscan.c435 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local
436 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies()
441 if (wps_ie) { in wpa_supplicant_extra_ies()
442 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies()
443 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies()
444 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
Dp2p_supplicant.c288 struct wpabuf *wps_ie, *ies; in wpas_p2p_scan() local
314 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in wpas_p2p_scan()
317 if (wps_ie == NULL) in wpas_p2p_scan()
321 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in wpas_p2p_scan()
323 wpabuf_free(wps_ie); in wpas_p2p_scan()
326 wpabuf_put_buf(ies, wps_ie); in wpas_p2p_scan()
327 wpabuf_free(wps_ie); in wpas_p2p_scan()
4471 struct wpabuf *wps_ie, *ies; in wpas_p2p_join_scan_req() local
4491 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, in wpas_p2p_join_scan_req()
4494 if (wps_ie == NULL) { in wpas_p2p_join_scan_req()
[all …]
Dwpa_supplicant.c1611 struct wpabuf *wps_ie; in wpas_start_assoc_cb() local
1612 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in wpas_start_assoc_cb()
1613 if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) { in wpas_start_assoc_cb()
1614 wpa_ie_len = wpabuf_len(wps_ie); in wpas_start_assoc_cb()
1615 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); in wpas_start_assoc_cb()
1618 wpabuf_free(wps_ie); in wpas_start_assoc_cb()
Dctrl_iface.c2144 struct wpabuf *wps_ie) in wpa_supplicant_wps_ie_txt_buf() argument
2149 if (wps_ie == NULL) in wpa_supplicant_wps_ie_txt_buf()
2151 if (wps_is_selected_pbc_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf()
2153 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0)) in wpa_supplicant_wps_ie_txt_buf()
2155 else if (wps_is_selected_pin_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf()
2163 wpabuf_free(wps_ie); in wpa_supplicant_wps_ie_txt_buf()
2174 struct wpabuf *wps_ie; in wpa_supplicant_wps_ie_txt() local
2175 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_supplicant_wps_ie_txt()
2176 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/
Ddriver_hostap.c49 u8 *wps_ie; member
723 if (drv->wps_ie) { in hostapd_ioctl_set_generic_elem()
725 drv->wps_ie, drv->wps_ie_len); in hostapd_ioctl_set_generic_elem()
769 os_free(drv->wps_ie); in hostap_set_ap_wps_ie()
770 drv->wps_ie = NULL; in hostap_set_ap_wps_ie()
773 drv->wps_ie = os_malloc(wpabuf_len(proberesp)); in hostap_set_ap_wps_ie()
774 if (drv->wps_ie == NULL) in hostap_set_ap_wps_ie()
776 os_memcpy(drv->wps_ie, wpabuf_head(proberesp), in hostap_set_ap_wps_ie()
1018 os_free(drv->wps_ie); in hostap_driver_deinit()
Ddriver_atheros.c1241 ie.wps_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta()
1260 if (ie.wps_ie && in atheros_new_sta()
1261 (ie.wps_ie[1] > 0 && (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC))) { in atheros_new_sta()
1262 iebuf = ie.wps_ie; in atheros_new_sta()
1263 ielen = ie.wps_ie[1]; in atheros_new_sta()
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.h24 const u8 *wps_ie; member
Dieee802_11_common.c82 elems->wps_ie = pos; in ieee802_11_parse_vendor_specific()
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c1330 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local
1348 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx()
1349 if (wps_ie == NULL) in hostapd_wps_probe_req_rx()
1351 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx()
1352 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
1356 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx()
1364 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx()
1372 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx()
1376 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
Dsta_info.h124 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member
Dieee802_11.c964 if (hapd->conf->wps_state && elems.wps_ie) { in check_assoc_ies()
968 wpabuf_free(sta->wps_ie); in check_assoc_ies()
969 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len, in check_assoc_ies()
971 if (sta->wps_ie && wps_is_20(sta->wps_ie)) { in check_assoc_ies()
977 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) { in check_assoc_ies()
Ddrv_callbacks.c71 if (elems.wps_ie) { in hostapd_notif_assoc()
72 ie = elems.wps_ie - 2; in hostapd_notif_assoc()
Dsta_info.c266 wpabuf_free(sta->wps_ie); in ap_free_sta()
Dbeacon.c540 if (hapd->p2p && elems.wps_ie) { in handle_probe_req()
Dieee802_1x.c762 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_handlers.c3890 struct wpabuf *wps_ie; in wpas_dbus_getter_bss_wps() local
3907 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); in wpas_dbus_getter_bss_wps()
3908 if (wps_ie) { in wpas_dbus_getter_bss_wps()
3909 if (wps_is_selected_pbc_registrar(wps_ie)) in wpas_dbus_getter_bss_wps()
3911 else if (wps_is_selected_pin_registrar(wps_ie)) in wpas_dbus_getter_bss_wps()