WPS NFC: Fix build without CONFIG_AP=y
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 3 Sep 2013 08:27:24 +0000 (11:27 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 3 Sep 2013 08:27:24 +0000 (11:27 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/ap.h

index fd4c25a..74a0b18 100644 (file)
@@ -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 */