Skip to content

Commit 0164b34

Browse files
committed
modules: hostap: Support bgscan
wip Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 5194b02 commit 0164b34

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

modules/hostap/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_WNM
7878
CONFIG_WNM
7979
)
8080

81+
zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN
82+
CONFIG_BGSCAN
83+
)
84+
zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN_SIMPLE
85+
CONFIG_BGSCAN_SIMPLE
86+
)
87+
zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN_LEARN
88+
CONFIG_BGSCAN_LEARN
89+
)
90+
8191
zephyr_library_include_directories(
8292
${CMAKE_CURRENT_SOURCE_DIR}/src
8393
${HOSTAP_BASE}/
@@ -156,6 +166,16 @@ zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_WNM
156166
${WIFI_NM_WPA_SUPPLICANT_BASE}/wnm_sta.c
157167
)
158168

169+
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN
170+
${WIFI_NM_WPA_SUPPLICANT_BASE}/bgscan.c
171+
)
172+
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN_SIMPLE
173+
${WIFI_NM_WPA_SUPPLICANT_BASE}/bgscan_simple.c
174+
)
175+
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_BGSCAN_LEARN
176+
${WIFI_NM_WPA_SUPPLICANT_BASE}/bgscan_learn.c
177+
)
178+
159179
zephyr_library_sources_ifdef(CONFIG_WPA_CLI
160180
src/wpa_cli.c
161181
)

modules/hostap/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,27 @@ config WIFI_NM_WPA_SUPPLICANT_WNM
145145
bool "Wireless Network Management support"
146146
default y
147147

148+
config WIFI_NM_WPA_SUPPLICANT_BGSCAN
149+
bool "Background scanning (for roaming)"
150+
default y
151+
depends on WIFI_NM_WPA_SUPPLICANT_WNM
152+
153+
if WIFI_NM_WPA_SUPPLICANT_BGSCAN
154+
155+
choice WIFI_NM_WPA_SUPPLICANT_BGSCAN_TYPE
156+
prompt "Background scanning implementation"
157+
default WIFI_NM_WPA_SUPPLICANT_BGSCAN_SIMPLE
158+
159+
config WIFI_NM_WPA_SUPPLICANT_BGSCAN_SIMPLE
160+
bool "Simple"
161+
162+
config WIFI_NM_WPA_SUPPLICANT_BGSCAN_LEARN
163+
bool "Learning"
164+
165+
endchoice # WIFI_NM_WPA_SUPPLICANT_BGSCAN_TYPE
166+
167+
endif # WIFI_NM_WPA_SUPPLICANT_BGSCAN
168+
148169
config WIFI_NM_WPA_SUPPLICANT_RRM
149170
bool "Radio Resource Management support"
150171
default y

0 commit comments

Comments
 (0)