Lines Matching defs:pin
642 const char *pin, char *buf, size_t buflen)
649 if (pin == NULL) {
652 pin = buf;
654 ret_len = os_snprintf(buf, buflen, "%s", pin);
656 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin,
667 wpa_printf(MSG_DEBUG, "WPS: AP PIN timed out");
679 wpa_printf(MSG_DEBUG, "WPS: Enabling AP PIN (timeout=%d)", timeout);
694 wpa_printf(MSG_DEBUG, "WPS: Disabling AP PIN");
705 unsigned int pin;
711 pin = wps_generate_pin();
712 os_snprintf(pin_txt, sizeof(pin_txt), "%u", pin);
733 int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
743 ret = os_snprintf(pin_txt, sizeof(pin_txt), "%s", pin);
765 * Registrar failed to prove its knowledge of the AP PIN. Disable AP
766 * PIN if this happens multiple times to slow down brute force attacks.
769 wpa_printf(MSG_DEBUG, "WPS: AP PIN authentication failure number %u",
774 wpa_printf(MSG_DEBUG, "WPS: Disable AP PIN");