Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/wps/
Dwps.h864 int wps_validate_beacon(const struct wpabuf *wps_ie);
865 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe,
867 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr);
868 int wps_validate_assoc_req(const struct wpabuf *wps_ie);
869 int wps_validate_assoc_resp(const struct wpabuf *wps_ie);
889 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ in wps_validate_beacon() argument
893 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, in wps_validate_beacon_probe_resp() argument
899 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, in wps_validate_probe_req() argument
905 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) in wps_validate_assoc_req() argument
910 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.c1449 struct wpabuf *wps_ie; in wpas_wps_ssid_bss_match() local
1454 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpas_wps_ssid_bss_match()
1456 if (!wps_ie) { in wpas_wps_ssid_bss_match()
1461 if (!wps_is_selected_pbc_registrar(wps_ie)) { in wpas_wps_ssid_bss_match()
1464 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
1471 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
1476 if (!wps_ie) { in wpas_wps_ssid_bss_match()
1488 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) { in wpas_wps_ssid_bss_match()
1492 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
1500 wpabuf_free(wps_ie); in wpas_wps_ssid_bss_match()
[all …]
Dsme.c270 struct wpabuf *wps_ie; in sme_send_authentication() local
271 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in sme_send_authentication()
272 if (wps_ie && wpabuf_len(wps_ie) <= in sme_send_authentication()
274 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie); in sme_send_authentication()
275 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie), in sme_send_authentication()
279 wpabuf_free(wps_ie); in sme_send_authentication()
Dscan.c429 struct wpabuf *wps_ie; in wpa_supplicant_extra_ies() local
430 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON : in wpa_supplicant_extra_ies()
435 if (wps_ie) { in wpa_supplicant_extra_ies()
436 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0) in wpa_supplicant_extra_ies()
437 wpabuf_put_buf(extra_ie, wps_ie); in wpa_supplicant_extra_ies()
438 wpabuf_free(wps_ie); in wpa_supplicant_extra_ies()
Dp2p_supplicant.c221 struct wpabuf *wps_ie, *ies; in wpas_p2p_scan() local
249 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in wpas_p2p_scan()
252 if (wps_ie == NULL) in wpas_p2p_scan()
256 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in wpas_p2p_scan()
258 wpabuf_free(wps_ie); in wpas_p2p_scan()
261 wpabuf_put_buf(ies, wps_ie); in wpas_p2p_scan()
262 wpabuf_free(wps_ie); in wpas_p2p_scan()
3812 struct wpabuf *wps_ie, *ies; in wpas_p2p_join_scan_req() local
3834 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev, in wpas_p2p_join_scan_req()
3837 if (wps_ie == NULL) { in wpas_p2p_join_scan_req()
[all …]
Dwpa_supplicant.c1434 struct wpabuf *wps_ie; in wpa_supplicant_associate() local
1435 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid)); in wpa_supplicant_associate()
1436 if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) { in wpa_supplicant_associate()
1437 wpa_ie_len = wpabuf_len(wps_ie); in wpa_supplicant_associate()
1438 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len); in wpa_supplicant_associate()
1441 wpabuf_free(wps_ie); in wpa_supplicant_associate()
Dctrl_iface.c1998 struct wpabuf *wps_ie) in wpa_supplicant_wps_ie_txt_buf() argument
2003 if (wps_ie == NULL) in wpa_supplicant_wps_ie_txt_buf()
2005 if (wps_is_selected_pbc_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf()
2008 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0)) in wpa_supplicant_wps_ie_txt_buf()
2011 else if (wps_is_selected_pin_registrar(wps_ie)) in wpa_supplicant_wps_ie_txt_buf()
2019 wpabuf_free(wps_ie); in wpa_supplicant_wps_ie_txt_buf()
2030 struct wpabuf *wps_ie; in wpa_supplicant_wps_ie_txt() local
2031 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE); in wpa_supplicant_wps_ie_txt()
2032 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.c1164 ie.wps_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta()
1183 if (ie.wps_ie && in atheros_new_sta()
1184 (ie.wps_ie[1] > 0 && (ie.wps_ie[0] == WLAN_EID_VENDOR_SPECIFIC))) { in atheros_new_sta()
1185 iebuf = ie.wps_ie; in atheros_new_sta()
1186 ielen = ie.wps_ie[1]; in atheros_new_sta()
Ddriver_test.c2914 struct wpabuf *wps_ie, *ies; in test_p2p_scan() local
2930 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev, in test_p2p_scan()
2933 wps_ie = wpabuf_alloc(1); in test_p2p_scan()
2935 if (wps_ie == NULL) in test_p2p_scan()
2939 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); in test_p2p_scan()
2941 wpabuf_free(wps_ie); in test_p2p_scan()
2944 wpabuf_put_buf(ies, wps_ie); in test_p2p_scan()
2945 wpabuf_free(wps_ie); in test_p2p_scan()
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.h28 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.c1362 struct wpabuf *wps_ie; in hostapd_wps_probe_req_rx() local
1380 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in hostapd_wps_probe_req_rx()
1381 if (wps_ie == NULL) in hostapd_wps_probe_req_rx()
1383 if (wps_validate_probe_req(wps_ie, addr) < 0) { in hostapd_wps_probe_req_rx()
1384 wpabuf_free(wps_ie); in hostapd_wps_probe_req_rx()
1388 if (wpabuf_len(wps_ie) > 0) { in hostapd_wps_probe_req_rx()
1396 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie, in hostapd_wps_probe_req_rx()
1404 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie); in hostapd_wps_probe_req_rx()
1408 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.c942 if (hapd->conf->wps_state && elems.wps_ie) { in check_assoc_ies()
946 wpabuf_free(sta->wps_ie); in check_assoc_ies()
947 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len, in check_assoc_ies()
949 if (sta->wps_ie && wps_is_20(sta->wps_ie)) { in check_assoc_ies()
955 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) { in check_assoc_ies()
Ddrv_callbacks.c68 if (elems.wps_ie) { in hostapd_notif_assoc()
69 ie = elems.wps_ie - 2; in hostapd_notif_assoc()
Dbeacon.c394 if (hapd->p2p && elems.wps_ie) { in handle_probe_req()
Dsta_info.c259 wpabuf_free(sta->wps_ie); in ap_free_sta()
Dieee802_1x.c628 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_handlers.c3472 struct wpabuf *wps_ie; in wpas_dbus_getter_bss_wps() local
3489 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE); in wpas_dbus_getter_bss_wps()
3490 if (wps_ie) { in wpas_dbus_getter_bss_wps()
3491 if (wps_is_selected_pbc_registrar(wps_ie)) in wpas_dbus_getter_bss_wps()
3493 else if (wps_is_selected_pin_registrar(wps_ie)) in wpas_dbus_getter_bss_wps()