Lines Matching refs:pin
727 const char *pin, char *buf, size_t buflen,
735 if (pin == NULL) {
738 pin = buf;
740 ret_len = os_snprintf(buf, buflen, "%s", pin);
742 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin,
753 wpa_printf(MSG_DEBUG, "WPS: AP PIN timed out");
765 wpa_printf(MSG_DEBUG, "WPS: Enabling AP PIN (timeout=%d)", timeout);
780 wpa_printf(MSG_DEBUG, "WPS: Disabling AP PIN");
791 unsigned int pin;
797 pin = wps_generate_pin();
798 os_snprintf(pin_txt, sizeof(pin_txt), "%08u", pin);
819 int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
829 ret = os_snprintf(pin_txt, sizeof(pin_txt), "%s", pin);
851 * Registrar failed to prove its knowledge of the AP PIN. Disable AP
852 * PIN if this happens multiple times to slow down brute force attacks.
855 wpa_printf(MSG_DEBUG, "WPS: AP PIN authentication failure number %u",
860 wpa_printf(MSG_DEBUG, "WPS: Disable AP PIN");