aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-09-03 08:27:24 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-03 08:27:24 (GMT)
commit61971697bb39d3429b9ff55f734d058189117536 (patch)
tree719864492ec418f4567623da60583451adebcd71 /wpa_supplicant/ap.h
parente1ae5d743fc884d2f5552274d816545c5d67ea2b (diff)
downloadhostap-61971697bb39d3429b9ff55f734d058189117536.zip
hostap-61971697bb39d3429b9ff55f734d058189117536.tar.gz
hostap-61971697bb39d3429b9ff55f734d058189117536.tar.bz2
WPS NFC: Fix build without CONFIG_AP=y
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.h')
-rw-r--r--wpa_supplicant/ap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.h b/wpa_supplicant/ap.h
index fd4c25a..74a0b18 100644
--- a/wpa_supplicant/ap.h
+++ b/wpa_supplicant/ap.h
@@ -54,7 +54,16 @@ void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
int offset);
struct wpabuf * wpas_ap_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
int ndef);
+#ifdef CONFIG_AP
struct wpabuf * wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
int ndef);
+#else /* CONFIG_AP */
+static inline struct wpabuf *
+wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
+ int ndef)
+{
+ return NULL;
+}
+#endif /* CONFIG_AP */
#endif /* AP_H */