Fix CONFIG_SAE build without CONFIG_SME

The control interface code was using wpa_s->sme in an area that was not
within ifdef CONFIG_SME.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2017-01-28 11:58:26 +02:00
parent 34e8bfd7a9
commit afe731004b

View file

@ -1933,6 +1933,7 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
#endif /* CONFIG_AP */ #endif /* CONFIG_AP */
pos += wpa_sm_get_status(wpa_s->wpa, pos, end - pos, verbose); pos += wpa_sm_get_status(wpa_s->wpa, pos, end - pos, verbose);
} }
#ifdef CONFIG_SME
#ifdef CONFIG_SAE #ifdef CONFIG_SAE
if (wpa_s->wpa_state >= WPA_ASSOCIATED && if (wpa_s->wpa_state >= WPA_ASSOCIATED &&
#ifdef CONFIG_AP #ifdef CONFIG_AP
@ -1946,6 +1947,7 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
pos += ret; pos += ret;
} }
#endif /* CONFIG_SAE */ #endif /* CONFIG_SAE */
#endif /* CONFIG_SME */
ret = os_snprintf(pos, end - pos, "wpa_state=%s\n", ret = os_snprintf(pos, end - pos, "wpa_state=%s\n",
wpa_supplicant_state_txt(wpa_s->wpa_state)); wpa_supplicant_state_txt(wpa_s->wpa_state));
if (os_snprintf_error(end - pos, ret)) if (os_snprintf_error(end - pos, ret))