]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix wpa_supplicant AP build without CONFIG_IEEE80211W
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 24 Aug 2017 14:31:56 +0000 (17:31 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 24 Aug 2017 14:33:03 +0000 (17:33 +0300)
CONFIG_FILS was missed as one of items requiring the p pointer in
hostapd_notif_assoc().

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/drv_callbacks.c

index ffa8bf1d156b5c9a13c516d808bf658db04e5ae5..cce625bf0dfd3762f2c5cccc8911367aeaf6cba0 100644 (file)
@@ -109,10 +109,10 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
        struct ieee802_11_elems elems;
        const u8 *ie;
        size_t ielen;
-#if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_IEEE80211W)
+#if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_IEEE80211W) || defined(CONFIG_FILS)
        u8 buf[sizeof(struct ieee80211_mgmt) + 1024];
        u8 *p = buf;
-#endif /* CONFIG_IEEE80211R_AP || CONFIG_IEEE80211W */
+#endif /* CONFIG_IEEE80211R_AP || CONFIG_IEEE80211W || CONFIG_FILS */
        u16 reason = WLAN_REASON_UNSPECIFIED;
        u16 status = WLAN_STATUS_SUCCESS;
        const u8 *p2p_dev_addr = NULL;