From: Jouni Malinen Date: Tue, 3 Sep 2013 08:25:29 +0000 (+0300) Subject: SAE: Fix build without CONFIG_AP=y X-Git-Tag: aosp-kk-from-upstream~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1ae5d7;p=thirdparty%2Fhostap.git SAE: Fix build without CONFIG_AP=y Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index be24356d7..3ac4c8745 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)