]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Fix build without CONFIG_WPS_NFC
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 15 Feb 2013 15:09:24 +0000 (17:09 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 15 Feb 2013 15:09:24 +0000 (17:09 +0200)
Commit bbf41865c90c2e16510712fa32290729c194422d added calls to functions
that are only defined if CONFIG_WPS_NFC=y. Protect those calls properly
to avoid build issues.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/ap.c

index 23c7025e327a3f74ac6483903d18876054b0ae3f..82b7e193cb261cd7c69e3346512ef0c357a343ef 100644 (file)
@@ -849,6 +849,8 @@ void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s)
 }
 
 
+#ifdef CONFIG_WPS_NFC
+
 struct wpabuf * wpas_ap_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
                                             int ndef)
 {
@@ -872,6 +874,8 @@ struct wpabuf * wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
        return hostapd_wps_nfc_hs_cr(hapd, ndef);
 }
 
+#endif /* CONFIG_WPS_NFC */
+
 #endif /* CONFIG_WPS */