]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CONFIG_SAE build without CONFIG_SME
authorJouni Malinen <j@w1.fi>
Sat, 28 Jan 2017 09:58:26 +0000 (11:58 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Jan 2017 09:58:26 +0000 (11:58 +0200)
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>
wpa_supplicant/ctrl_iface.c

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