Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:wps

30 #include "wps/wps.h"
456 * Enable WPS by default for open and WPA/WPA2-Personal network, but
493 os_memcpy(bss->uuid, wpa_s->wps->uuid, WPS_UUID_LEN);
942 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]->wps)
945 reg = wpa_s->ap_iface->bss[0]->wps->registrar;
951 wpa_printf(MSG_DEBUG, "No WPS operation in progress at this "
957 * There are 2 cases to return wps cancel as success:
958 * 1. When wps cancel was initiated but no connection has been
960 * 2. Client is in the middle of exchanging WPS messages.
1002 wpa_printf(MSG_DEBUG, "WPS: AP PIN timed out");
1014 wpa_printf(MSG_DEBUG, "WPS: Enabling AP PIN (timeout=%d)", timeout);
1029 wpa_printf(MSG_DEBUG, "WPS: Disabling AP PIN");
1105 wpa_printf(MSG_DEBUG, "WPS: AP PIN authentication failure number %u",
1110 wpa_printf(MSG_DEBUG, "WPS: Disable AP PIN");
1375 struct wps_context *wps;
1380 wps = hapd->wps;
1388 dh5_free(wps->dh_ctx);
1389 wpabuf_free(wps->dh_pubkey);
1390 wpabuf_free(wps->dh_privkey);
1391 wps->dh_privkey = wpabuf_dup(
1393 wps->dh_pubkey = wpabuf_dup(
1395 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) {
1396 wps->dh_ctx = NULL;
1397 wpabuf_free(wps->dh_pubkey);
1398 wps->dh_pubkey = NULL;
1399 wpabuf_free(wps->dh_privkey);
1400 wps->dh_privkey = NULL;
1403 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey);
1404 if (wps->dh_ctx == NULL)
1407 return wps_registrar_add_nfc_pw_token(hapd->wps->registrar, pubkey_hash,