]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Fix build without CONFIG_AP=y
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 3 Sep 2013 08:25:29 +0000 (11:25 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 3 Sep 2013 08:25:29 +0000 (11:25 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/ctrl_iface.c

index be24356d713f9ffc0e1023ffdcf8783f9bae29dc..3ac4c8745d5692d5582f89489c2ec526e8147ee6 100644 (file)
@@ -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)