aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-02-15 15:09:24 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-15 15:09:24 (GMT)
commit87470ea298fe944c87f8d5f7286d40e5bf165bb2 (patch)
tree5cae7c375d206cfed29fc1fa45f6daa025bce658 /wpa_supplicant/ap.c
parent5ab9a6a53e8fcd667aa96dfe1022ae1ca6def892 (diff)
downloadhostap-87470ea298fe944c87f8d5f7286d40e5bf165bb2.zip
hostap-87470ea298fe944c87f8d5f7286d40e5bf165bb2.tar.gz
hostap-87470ea298fe944c87f8d5f7286d40e5bf165bb2.tar.bz2
WPS: Fix build without CONFIG_WPS_NFC
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>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 23c7025..82b7e19 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -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 */