From 61971697bb39d3429b9ff55f734d058189117536 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 3 Sep 2013 11:27:24 +0300 Subject: [PATCH] WPS NFC: Fix build without CONFIG_AP=y Signed-hostap: Jouni Malinen --- wpa_supplicant/ap.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wpa_supplicant/ap.h b/wpa_supplicant/ap.h index fd4c25abb..74a0b180b 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 */