Lines Matching refs:pin
790 const char *pin, char *buf, size_t buflen,
798 if (pin == NULL) {
801 pin = buf;
803 ret_len = os_snprintf(buf, buflen, "%s", pin);
805 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin,
816 wpa_printf(MSG_DEBUG, "WPS: AP PIN timed out");
828 wpa_printf(MSG_DEBUG, "WPS: Enabling AP PIN (timeout=%d)", timeout);
843 wpa_printf(MSG_DEBUG, "WPS: Disabling AP PIN");
854 unsigned int pin;
860 pin = wps_generate_pin();
861 os_snprintf(pin_txt, sizeof(pin_txt), "%08u", pin);
882 int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
892 ret = os_snprintf(pin_txt, sizeof(pin_txt), "%s", pin);
914 * Registrar failed to prove its knowledge of the AP PIN. Disable AP
915 * PIN if this happens multiple times to slow down brute force attacks.
918 wpa_printf(MSG_DEBUG, "WPS: AP PIN authentication failure number %u",
923 wpa_printf(MSG_DEBUG, "WPS: Disable AP PIN");