aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-09-03 08:25:29 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-03 08:25:29 (GMT)
commite1ae5d743fc884d2f5552274d816545c5d67ea2b (patch)
treeb3eb41200c6c8d18b545f88711ac70903e1f3223
parent813e7b364fc765e2a22ee2188c4363335079b53a (diff)
downloadhostap-e1ae5d743fc884d2f5552274d816545c5d67ea2b.zip
hostap-e1ae5d743fc884d2f5552274d816545c5d67ea2b.tar.gz
hostap-e1ae5d743fc884d2f5552274d816545c5d67ea2b.tar.bz2
SAE: Fix build without CONFIG_AP=y
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--wpa_supplicant/ctrl_iface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index be24356..3ac4c87 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -1503,7 +1503,10 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
}
#ifdef CONFIG_SAE
if (wpa_s->wpa_state >= WPA_ASSOCIATED &&
- wpa_s->sme.sae.state == SAE_ACCEPTED && !wpa_s->ap_iface) {
+#ifdef CONFIG_AP
+ !wpa_s->ap_iface &&
+#endif /* CONFIG_AP */
+ wpa_s->sme.sae.state == SAE_ACCEPTED) {
ret = os_snprintf(pos, end - pos, "sae_group=%d\n",
wpa_s->sme.sae.group);
if (ret < 0 || ret >= end - pos)