]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CONFIG_AP=y build without CONFIG_CTRL_IFACE
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 13 Oct 2009 08:15:39 +0000 (11:15 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 13 Oct 2009 08:15:39 +0000 (11:15 +0300)
wpa_supplicant/ap.c

index d94f099e0d1dbaf7e0fad9a017492108a0bd0a60..fc10f68b447637d3e2dc4069c7f634d9930764b6 100644 (file)
@@ -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 */