]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/ap.c
WPS: Add support for config token generation with wpa_supplicant
[thirdparty/hostap.git] / wpa_supplicant / ap.c
index 85ee6cb2488cd82871a7cb51361dedcabd2ffc04..df0bba07b62a624dee6e4d533602b06b620c89c5 100644 (file)
@@ -848,6 +848,18 @@ void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s)
        hapd->conf->ap_pin = NULL;
 }
 
+
+struct wpabuf * wpas_ap_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
+                                            int ndef)
+{
+       struct hostapd_data *hapd;
+
+       if (wpa_s->ap_iface == NULL)
+               return NULL;
+       hapd = wpa_s->ap_iface->bss[0];
+       return hostapd_wps_nfc_config_token(hapd, ndef);
+}
+
 #endif /* CONFIG_WPS */