diff mbox series

build: bgscan_simple depends on WNM

Message ID cdc777c9-0c98-47ce-b6c0-1bb4a8e5baf7@xv97.com
State Accepted
Headers show
Series build: bgscan_simple depends on WNM | expand

Commit Message

Chien Wong Jan. 5, 2024, 9:50 a.m. UTC
From b3fb0044324ff24f1901610810a7e724cb7a7d16 Mon Sep 17 00:00:00 2001
From: Chien Wong <m@xv97.com>
Date: Fri, 5 Jan 2024 17:43:43 +0800
Subject: [PATCH] build: bgscan_simple depends on WNM

Fix build of wpa_supplicant if bgscan_simple is enabled while
WNM is not, as in the defconfig.

Fixes: ceb7f65dcc94 ("bgscan: Allow simple bgscan to do BTM queries")
Signed-off-by: Chien Wong <m@xv97.com>
---
  wpa_supplicant/Makefile | 4 ++++
  1 file changed, 4 insertions(+)

Comments

Koen Vandeputte Jan. 10, 2024, 3:57 p.m. UTC | #1
On Fri, Jan 5, 2024 at 10:54 AM Chien Wong <m@xv97.com> wrote:
>
>  From b3fb0044324ff24f1901610810a7e724cb7a7d16 Mon Sep 17 00:00:00 2001
> From: Chien Wong <m@xv97.com>
> Date: Fri, 5 Jan 2024 17:43:43 +0800
> Subject: [PATCH] build: bgscan_simple depends on WNM
>
> Fix build of wpa_supplicant if bgscan_simple is enabled while
> WNM is not, as in the defconfig.
>
> Fixes: ceb7f65dcc94 ("bgscan: Allow simple bgscan to do BTM queries")
> Signed-off-by: Chien Wong <m@xv97.com>
> ---
>   wpa_supplicant/Makefile | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
> index 46e20f44a..45d08d7dc 100644
> --- a/wpa_supplicant/Makefile
> +++ b/wpa_supplicant/Makefile
> @@ -338,6 +338,10 @@ ifdef CONFIG_MBO
>   CONFIG_WNM=y
>   endif
>
> +ifdef CONFIG_BGSCAN_SIMPLE
> +CONFIG_WNM=y
> +endif
> +
>   ifdef CONFIG_WNM
>   CFLAGS += -DCONFIG_WNM
>   OBJS += wnm_sta.o
> --
> 2.43.0
>
Fixes my build issue within OpenWRT after updating hostapd over there.
Thanks!

Tested-by: Koen Vandeputte <koen.vandeputte@citymesh.com>


>
>
> _______________________________________________
> Hostap mailing list
> Hostap@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/hostap
Jouni Malinen Jan. 13, 2024, 10:27 p.m. UTC | #2
On Fri, Jan 05, 2024 at 05:50:58PM +0800, Chien Wong wrote:
> Fix build of wpa_supplicant if bgscan_simple is enabled while
> WNM is not, as in the defconfig.

Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 46e20f44a..45d08d7dc 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -338,6 +338,10 @@  ifdef CONFIG_MBO
  CONFIG_WNM=y
  endif

+ifdef CONFIG_BGSCAN_SIMPLE
+CONFIG_WNM=y
+endif
+
  ifdef CONFIG_WNM
  CFLAGS += -DCONFIG_WNM
  OBJS += wnm_sta.o