040-OWE-Fix-build-error-in-AP-code-without-CONFIG_IEEE80.patch 1.3 KB

1234567891011121314151617181920212223242526272829
  1. From 410e2dd1d6b645bf5ed3ed55a9a415acbd993532 Mon Sep 17 00:00:00 2001
  2. From: Chaitanya T K <[email protected]>
  3. Date: Wed, 29 Aug 2018 02:14:33 +0530
  4. Subject: [PATCH] OWE: Fix build error in AP code without CONFIG_IEEE80211W=y
  5. When CONFIG_OWE is enabled but none of 11R/11W/FILS are enabled hostapd
  6. (and wpa_supplicant with AP mode support) build failed. Fix this by
  7. adding OWE to the list of conditions for including the local variables.
  8. Signed-off-by: Chaitanya T K <[email protected]>
  9. ---
  10. src/ap/drv_callbacks.c | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. --- a/src/ap/drv_callbacks.c
  13. +++ b/src/ap/drv_callbacks.c
  14. @@ -109,10 +109,10 @@ int hostapd_notif_assoc(struct hostapd_d
  15. struct ieee802_11_elems elems;
  16. const u8 *ie;
  17. size_t ielen;
  18. -#if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_IEEE80211W) || defined(CONFIG_FILS)
  19. +#if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_IEEE80211W) || defined(CONFIG_FILS) || defined(CONFIG_OWE)
  20. u8 buf[sizeof(struct ieee80211_mgmt) + 1024];
  21. u8 *p = buf;
  22. -#endif /* CONFIG_IEEE80211R_AP || CONFIG_IEEE80211W || CONFIG_FILS */
  23. +#endif /* CONFIG_IEEE80211R_AP || CONFIG_IEEE80211W || CONFIG_FILS || CONFIG_OWE */
  24. u16 reason = WLAN_REASON_UNSPECIFIED;
  25. u16 status = WLAN_STATUS_SUCCESS;
  26. const u8 *p2p_dev_addr = NULL;