Searched defs:wps_ie (Results 1 - 25 of 27) sorted by relevance

12

/external/wpa_supplicant_8/wpa_supplicant/
H A Dbss.c314 struct wpabuf *wps_ie; local
317 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE);
318 if (!wps_ie)
321 if (wps_is_selected_pbc_registrar(wps_ie)) {
323 } else if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) {
324 wpabuf_free(wps_ie);
340 wpabuf_free(wps_ie);
343 wpabuf_free(wps_ie);
H A Dscan.c506 struct wpabuf *wps_ie; local
507 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON :
512 if (wps_ie) {
513 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0)
514 wpabuf_put_buf(extra_ie, wps_ie);
515 wpabuf_free(wps_ie);
H A Dsme.c343 struct wpabuf *wps_ie; local
344 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid));
345 if (wps_ie && wpabuf_len(wps_ie) <=
347 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie);
348 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie),
352 wpabuf_free(wps_ie);
H A Dwps_supplicant.c1649 struct wpabuf *wps_ie; local
1654 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE);
1656 if (!wps_ie) {
1661 if (!wps_is_selected_pbc_registrar(wps_ie)) {
1664 wpabuf_free(wps_ie);
1671 wpabuf_free(wps_ie);
1676 if (!wps_ie) {
1688 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) {
1698 wpabuf_free(wps_ie);
1706 wpabuf_free(wps_ie);
1724 struct wpabuf *wps_ie = NULL; local
1781 struct wpabuf *wps_ie; local
1885 struct wpabuf *wps_ie; local
[all...]
H A Dwpa_supplicant.c2326 struct wpabuf *wps_ie; local
2327 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid));
2328 if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) {
2329 wpa_ie_len = wpabuf_len(wps_ie);
2330 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len);
2333 wpabuf_free(wps_ie);
3540 struct wpabuf *wps_ie; local
3542 wps_ie = wpa_bss_get_vendor_ie_multi(
3544 if (wps_ie
[all...]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
H A Ddbus_old_handlers.c416 const u8 *wpa_ie, *rsn_ie, *wps_ie; local
423 wps_ie = wpa_bss_get_vendor_ie(bss, WPS_IE_VENDOR_TYPE);
441 (wps_ie &&
443 (const char *) wps_ie,
444 wps_ie[1] + 2)) ||
H A Ddbus_new_handlers.c4120 struct wpabuf *wps_ie; local
4136 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE);
4137 if (wps_ie) {
4139 if (wps_is_selected_pbc_registrar(wps_ie))
4141 else if (wps_is_selected_pin_registrar(wps_ie))
4144 wpabuf_free(wps_ie);
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dsta_info.h182 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member in struct:sta_info
H A Dwps_hostapd.c1385 struct wpabuf *wps_ie; local
1403 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA);
1404 if (wps_ie == NULL)
1406 if (wps_validate_probe_req(wps_ie, addr) < 0) {
1407 wpabuf_free(wps_ie);
1411 if (wpabuf_len(wps_ie) > 0) {
1419 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie,
1427 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie);
1431 wpabuf_free(wps_ie);
/external/wpa_supplicant_8/hostapd/src/common/
H A Dieee802_11_common.h36 const u8 *wps_ie; member in struct:ieee802_11_elems
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Ddriver_hostap.c49 u8 *wps_ie; member in struct:hostap_driver_data
721 if (drv->wps_ie) {
723 drv->wps_ie, drv->wps_ie_len);
767 os_free(drv->wps_ie);
768 drv->wps_ie = NULL;
771 drv->wps_ie = os_malloc(wpabuf_len(proberesp));
772 if (drv->wps_ie == NULL)
774 os_memcpy(drv->wps_ie, wpabuf_head(proberesp),
1019 os_free(drv->wps_ie);
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dwps_validate.c1083 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...]
H A Dwps.h906 int wps_validate_beacon(const struct wpabuf *wps_ie);
907 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe,
909 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr);
910 int wps_validate_assoc_req(const struct wpabuf *wps_ie);
911 int wps_validate_assoc_resp(const struct wpabuf *wps_ie);
931 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ argument
935 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, argument
941 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, argument
947 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument
952 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dsta_info.h182 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member in struct:sta_info
H A Dwps_hostapd.c1385 struct wpabuf *wps_ie; local
1403 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA);
1404 if (wps_ie == NULL)
1406 if (wps_validate_probe_req(wps_ie, addr) < 0) {
1407 wpabuf_free(wps_ie);
1411 if (wpabuf_len(wps_ie) > 0) {
1419 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie,
1427 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie);
1431 wpabuf_free(wps_ie);
/external/wpa_supplicant_8/src/common/
H A Dieee802_11_common.h36 const u8 *wps_ie; member in struct:ieee802_11_elems
/external/wpa_supplicant_8/src/drivers/
H A Ddriver_hostap.c49 u8 *wps_ie; member in struct:hostap_driver_data
721 if (drv->wps_ie) {
723 drv->wps_ie, drv->wps_ie_len);
767 os_free(drv->wps_ie);
768 drv->wps_ie = NULL;
771 drv->wps_ie = os_malloc(wpabuf_len(proberesp));
772 if (drv->wps_ie == NULL)
774 os_memcpy(drv->wps_ie, wpabuf_head(proberesp),
1019 os_free(drv->wps_ie);
/external/wpa_supplicant_8/src/wps/
H A Dwps_validate.c1083 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...]
H A Dwps.h906 int wps_validate_beacon(const struct wpabuf *wps_ie);
907 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe,
909 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr);
910 int wps_validate_assoc_req(const struct wpabuf *wps_ie);
911 int wps_validate_assoc_resp(const struct wpabuf *wps_ie);
931 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ argument
935 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, argument
941 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, argument
947 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument
952 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dsta_info.h182 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member in struct:sta_info
H A Dwps_hostapd.c1385 struct wpabuf *wps_ie; local
1403 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA);
1404 if (wps_ie == NULL)
1406 if (wps_validate_probe_req(wps_ie, addr) < 0) {
1407 wpabuf_free(wps_ie);
1411 if (wpabuf_len(wps_ie) > 0) {
1419 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie,
1427 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie);
1431 wpabuf_free(wps_ie);
/external/wpa_supplicant_8/wpa_supplicant/src/common/
H A Dieee802_11_common.h36 const u8 *wps_ie; member in struct:ieee802_11_elems
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Ddriver_hostap.c49 u8 *wps_ie; member in struct:hostap_driver_data
721 if (drv->wps_ie) {
723 drv->wps_ie, drv->wps_ie_len);
767 os_free(drv->wps_ie);
768 drv->wps_ie = NULL;
771 drv->wps_ie = os_malloc(wpabuf_len(proberesp));
772 if (drv->wps_ie == NULL)
774 os_memcpy(drv->wps_ie, wpabuf_head(proberesp),
1019 os_free(drv->wps_ie);
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dwps_validate.c1083 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...]
H A Dwps.h906 int wps_validate_beacon(const struct wpabuf *wps_ie);
907 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe,
909 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr);
910 int wps_validate_assoc_req(const struct wpabuf *wps_ie);
911 int wps_validate_assoc_resp(const struct wpabuf *wps_ie);
931 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ argument
935 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, argument
941 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, argument
947 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument
952 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument
[all...]

Completed in 470 milliseconds

12