From 95818ec174017ab772f2bf1ad4c25bc679ebd0cf Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 9 May 2017 23:29:55 +0300 Subject: [PATCH] Fix compiler warning with CONFIG_IEEE80211R no-CONFIG_FILS build Addition of remove_ies() handled the CONFIG_IEEE80211R dependency, but missed the caller being within CONFIG_FILS as well. Signed-off-by: Jouni Malinen --- wpa_supplicant/sme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 08315a5cf..f1bd89ee5 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -1058,6 +1058,7 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data) } +#ifdef CONFIG_FILS #ifdef CONFIG_IEEE80211R static void remove_ie(u8 *buf, size_t *len, u8 eid) { @@ -1072,6 +1073,7 @@ static void remove_ie(u8 *buf, size_t *len, u8 eid) } } #endif /* CONFIG_IEEE80211R */ +#endif /* CONFIG_FILS */ void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,