]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Fix build error in AP code without CONFIG_IEEE80211W=y
authorChaitanya T K <Chaitanya.Mgit@gmail.com>
Tue, 28 Aug 2018 20:44:33 +0000 (02:14 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 2 Sep 2018 09:38:16 +0000 (12:38 +0300)
When CONFIG_OWE is enabled but none of 11R/11W/FILS are enabled hostapd
(and wpa_supplicant with AP mode support) build failed. Fix this by
adding OWE to the list of conditions for including the local variables.

Signed-off-by: Chaitanya T K <chaitanya.mgit@gmail.com>
src/ap/drv_callbacks.c

index 6ec82e525fc101fc20739ca57967caba0c313756..98a2eecc7714ee5a89e78d44be8d7a4c2608e613 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) || defined(CONFIG_FILS)
+#if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_IEEE80211W) || defined(CONFIG_FILS) || defined(CONFIG_OWE)
        u8 buf[sizeof(struct ieee80211_mgmt) + 1024];
        u8 *p = buf;
-#endif /* CONFIG_IEEE80211R_AP || CONFIG_IEEE80211W || CONFIG_FILS */
+#endif /* CONFIG_IEEE80211R_AP || CONFIG_IEEE80211W || CONFIG_FILS || CONFIG_OWE */
        u16 reason = WLAN_REASON_UNSPECIFIED;
        u16 status = WLAN_STATUS_SUCCESS;
        const u8 *p2p_dev_addr = NULL;