]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix compiler warning with CONFIG_IEEE80211R no-CONFIG_FILS build
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 9 May 2017 20:29:55 +0000 (23:29 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 9 May 2017 20:36:36 +0000 (23:36 +0300)
Addition of remove_ies() handled the CONFIG_IEEE80211R dependency, but
missed the caller being within CONFIG_FILS as well.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/sme.c

index 08315a5cf4e59b7f5dae8a1e8a7182aa16e4786e..f1bd89ee5e144ec1f7fbe4e45d7cfdf4f3ed2298 100644 (file)
@@ -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,