[PATCH] build: bgscan_simple depends on WNM

Chien Wong m at xv97.com
Fri Jan 5 01:50:58 PST 2024


 From b3fb0044324ff24f1901610810a7e724cb7a7d16 Mon Sep 17 00:00:00 2001
From: Chien Wong <m at 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 at 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





More information about the Hostap mailing list