From: Jouni Malinen Date: Tue, 13 Oct 2009 08:15:39 +0000 (+0300) Subject: Fix CONFIG_AP=y build without CONFIG_CTRL_IFACE X-Git-Tag: hostap_0_7_0~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35deb646ccabab91fa99ac9c3ae7d73b870d5d44;p=thirdparty%2Fhostap.git Fix CONFIG_AP=y build without CONFIG_CTRL_IFACE --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index d94f099e0..fc10f68b4 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -556,6 +556,8 @@ int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, #endif /* CONFIG_WPS */ +#ifdef CONFIG_CTRL_IFACE + int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) { @@ -584,3 +586,5 @@ int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr, return hostapd_ctrl_iface_sta_next(wpa_s->ap_iface->bss[0], txtaddr, buf, buflen); } + +#endif /* CONFIG_CTRL_IFACE */