Lines Matching refs:pin
700 const char *pin, char *buf, size_t buflen)
707 if (pin == NULL) {
710 pin = buf;
712 ret_len = os_snprintf(buf, buflen, "%s", pin);
714 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin,
725 wpa_printf(MSG_DEBUG, "WPS: AP PIN timed out");
737 wpa_printf(MSG_DEBUG, "WPS: Enabling AP PIN (timeout=%d)", timeout);
752 wpa_printf(MSG_DEBUG, "WPS: Disabling AP PIN");
763 unsigned int pin;
769 pin = wps_generate_pin();
770 os_snprintf(pin_txt, sizeof(pin_txt), "%08u", pin);
791 int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
801 ret = os_snprintf(pin_txt, sizeof(pin_txt), "%s", pin);
823 * Registrar failed to prove its knowledge of the AP PIN. Disable AP
824 * PIN if this happens multiple times to slow down brute force attacks.
827 wpa_printf(MSG_DEBUG, "WPS: AP PIN authentication failure number %u",
832 wpa_printf(MSG_DEBUG, "WPS: Disable AP PIN");