aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2016-05-12 22:26:59 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-13 15:31:01 (GMT)
commit3dd0e9e4e46cc72b4abe6dd106184c153ec77efb (patch)
treec882ff611216e8b3e5ba6b056c5dd2c07e5e60ec /wpa_supplicant
parentd58b60da87a741d35de74fa4eed34d7fc7085017 (diff)
downloadhostap-3dd0e9e4e46cc72b4abe6dd106184c153ec77efb.zip
hostap-3dd0e9e4e46cc72b4abe6dd106184c153ec77efb.tar.gz
hostap-3dd0e9e4e46cc72b4abe6dd106184c153ec77efb.tar.bz2
wpa_supplicant: Fix CONFIG_AP build without CTRL_IFACE
wpas_ap_pmksa_cache_list() and wpas_ap_pmksa_cache_flush() should be under the #ifdef since they're only called for the control iface and use functionality that otherwise isn't available. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 4f895f3..49fbc1b 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -1368,7 +1368,6 @@ int wpas_ap_stop_ap(struct wpa_supplicant *wpa_s)
hapd = wpa_s->ap_iface->bss[0];
return hostapd_ctrl_iface_stop_ap(hapd);
}
-#endif /* CONFIG_CTRL_IFACE */
int wpas_ap_pmksa_cache_list(struct wpa_supplicant *wpa_s, char *buf,
@@ -1421,6 +1420,7 @@ void wpas_ap_pmksa_cache_flush(struct wpa_supplicant *wpa_s)
if (wpa_s->ifmsh)
hostapd_ctrl_iface_pmksa_flush(wpa_s->ifmsh->bss[0]);
}
+#endif /* CONFIG_CTRL_IFACE */
#ifdef NEED_AP_MLME