Searched refs:wps_ie (Results 1 - 18 of 18) sorted by relevance

/freebsd-10-stable/contrib/wpa/src/wps/
H A Dwps.h823 int wps_validate_beacon(const struct wpabuf *wps_ie);
824 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe,
826 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr);
827 int wps_validate_assoc_req(const struct wpabuf *wps_ie);
828 int wps_validate_assoc_resp(const struct wpabuf *wps_ie);
848 static inline int wps_validate_beacon(const struct wpabuf *wps_ie){ argument
852 static inline int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, argument
858 static inline int wps_validate_probe_req(const struct wpabuf *wps_ie, argument
864 static inline int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument
869 static inline int wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument
[all...]
H A Dwps_validate.c1081 int wps_validate_beacon(const struct wpabuf *wps_ie) argument
1086 if (wps_ie == NULL) {
1090 if (wps_parse_msg(wps_ie, &attr) < 0) {
1119 int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe, argument
1125 if (wps_ie == NULL) {
1130 if (wps_parse_msg(wps_ie, &attr) < 0) {
1178 int wps_validate_probe_req(const struct wpabuf *wps_ie, const u8 *addr) argument
1183 if (wps_ie == NULL) {
1188 if (wps_parse_msg(wps_ie, &attr) < 0) {
1225 int wps_validate_assoc_req(const struct wpabuf *wps_ie) argument
1254 wps_validate_assoc_resp(const struct wpabuf *wps_ie) argument
[all...]
/freebsd-10-stable/contrib/wpa/wpa_supplicant/
H A Dwps_supplicant.c1298 struct wpabuf *wps_ie; local
1303 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE);
1305 if (!wps_ie) {
1310 if (!wps_is_selected_pbc_registrar(wps_ie)) {
1313 wpabuf_free(wps_ie);
1320 wpabuf_free(wps_ie);
1325 if (!wps_ie) {
1337 if (!wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) {
1341 wpabuf_free(wps_ie);
1349 wpabuf_free(wps_ie);
1367 struct wpabuf *wps_ie = NULL; local
1424 struct wpabuf *wps_ie; local
1536 struct wpabuf *wps_ie; local
[all...]
H A Dsme.c213 struct wpabuf *wps_ie; local
214 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid));
215 if (wps_ie && wpabuf_len(wps_ie) <=
217 wpa_s->sme.assoc_req_ie_len = wpabuf_len(wps_ie);
218 os_memcpy(wpa_s->sme.assoc_req_ie, wpabuf_head(wps_ie),
222 wpabuf_free(wps_ie);
H A Dscan.c426 struct wpabuf *wps_ie; local
427 wps_ie = wps_build_probe_req_ie(wps == 2 ? DEV_PW_PUSHBUTTON :
432 if (wps_ie) {
433 if (wpabuf_resize(&extra_ie, wpabuf_len(wps_ie)) == 0)
434 wpabuf_put_buf(extra_ie, wps_ie);
435 wpabuf_free(wps_ie);
H A Dp2p_supplicant.c126 struct wpabuf *wps_ie, *ies; local
153 wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev,
156 if (wps_ie == NULL)
160 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen);
162 wpabuf_free(wps_ie);
165 wpabuf_put_buf(ies, wps_ie);
166 wpabuf_free(wps_ie);
3391 struct wpabuf *wps_ie, *ies; local
3403 wps_ie = wps_build_probe_req_ie(DEV_PW_DEFAULT, &wpa_s->wps->dev,
3406 if (wps_ie
[all...]
H A Dwpa_supplicant.c1427 struct wpabuf *wps_ie; local
1428 wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid));
1429 if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) {
1430 wpa_ie_len = wpabuf_len(wps_ie);
1431 os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len);
1434 wpabuf_free(wps_ie);
H A Dctrl_iface.c1861 struct wpabuf *wps_ie)
1866 if (wps_ie == NULL)
1868 if (wps_is_selected_pbc_registrar(wps_ie))
1871 else if (wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 0))
1874 else if (wps_is_selected_pin_registrar(wps_ie))
1882 wpabuf_free(wps_ie);
1893 struct wpabuf *wps_ie; local
1894 wps_ie = wpa_bss_get_vendor_ie_multi(bss, WPS_IE_VENDOR_TYPE);
1895 return wpa_supplicant_wps_ie_txt_buf(wpa_s, pos, end, wps_ie);
1859 wpa_supplicant_wps_ie_txt_buf(struct wpa_supplicant *wpa_s, char *pos, char *end, struct wpabuf *wps_ie) argument
/freebsd-10-stable/contrib/wpa/src/common/
H A Dieee802_11_common.h28 const u8 *wps_ie; member in struct:ieee802_11_elems
H A Dieee802_11_common.c81 elems->wps_ie = pos;
/freebsd-10-stable/contrib/wpa/src/ap/
H A Dsta_info.h123 struct wpabuf *wps_ie; /* WPS IE from (Re)Association Request */ member in struct:sta_info
H A Dwps_hostapd.c1163 struct wpabuf *wps_ie; local
1181 wps_ie = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA);
1182 if (wps_ie == NULL)
1184 if (wps_validate_probe_req(wps_ie, addr) < 0) {
1185 wpabuf_free(wps_ie);
1189 if (wpabuf_len(wps_ie) > 0) {
1197 wps_registrar_probe_req_rx(hapd->wps->registrar, addr, wps_ie,
1205 UPNP_WPS_WLANEVENT_TYPE_PROBE, wps_ie);
1209 wpabuf_free(wps_ie);
H A Dieee802_11.c836 if (hapd->conf->wps_state && elems.wps_ie) {
840 wpabuf_free(sta->wps_ie);
841 sta->wps_ie = ieee802_11_vendor_ie_concat(ies, ies_len,
843 if (sta->wps_ie && wps_is_20(sta->wps_ie)) {
849 if (sta->wps_ie && wps_validate_assoc_req(sta->wps_ie) < 0) {
H A Ddrv_callbacks.c66 if (elems.wps_ie) {
67 ie = elems.wps_ie - 2;
H A Dbeacon.c394 if (hapd->p2p && elems.wps_ie) {
H A Dsta_info.c234 wpabuf_free(sta->wps_ie);
H A Dieee802_1x.c740 sta->wps_ie, sta->p2p_ie, sta,
/freebsd-10-stable/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_handlers.c3422 struct wpabuf *wps_ie; local
3439 wps_ie = wpa_bss_get_vendor_ie_multi(res, WPS_IE_VENDOR_TYPE);
3440 if (wps_ie) {
3441 if (wps_is_selected_pbc_registrar(wps_ie))
3443 else if (wps_is_selected_pin_registrar(wps_ie))

Completed in 235 milliseconds