drivers: wifi: nrf_wifi: operation mode from application request
Default the operation mode from the application requested Wi-Fi features, not the nRF70 part number. Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
parent
7dbd36a222
commit
90a2d0ec92
2 changed files with 13 additions and 4 deletions
|
@ -103,3 +103,7 @@ if (CONFIG_NRF_WIFI_PATCHES_BUILTIN)
|
|||
${gen_dir}/nrf70.bin.inc
|
||||
)
|
||||
endif()
|
||||
|
||||
if(CONFIG_WIFI_NRF7000 AND NOT CONFIG_WIFI_USAGE_MODE_SCAN_ONLY)
|
||||
message(WARNING "nRF7000 only supports WIFI_USAGE_MODE_SCAN_ONLY")
|
||||
endif()
|
||||
|
|
|
@ -38,14 +38,19 @@ config WIFI_NRF7000
|
|||
bool
|
||||
default y if DT_HAS_NORDIC_NRF7000_SPI_ENABLED || DT_HAS_NORDIC_NRF7000_QSPI_ENABLED
|
||||
|
||||
|
||||
choice WIFI_USAGE_MODE
|
||||
default WIFI_USAGE_MODE_SCAN_ONLY if WIFI_NRF7000
|
||||
endchoice
|
||||
|
||||
config NRF70_QSPI_LOW_POWER
|
||||
bool "low power mode in QSPI"
|
||||
default y if NRF_WIFI_LOW_POWER
|
||||
|
||||
choice NRF70_OPER_MODES
|
||||
bool "nRF70 operating modes"
|
||||
default NRF70_SYSTEM_MODE if !WIFI_NRF7000
|
||||
default NRF70_SCAN_ONLY if WIFI_NRF7000
|
||||
default NRF70_SYSTEM_MODE if !WIFI_USAGE_MODE_SCAN_ONLY
|
||||
default NRF70_SCAN_ONLY
|
||||
help
|
||||
Select the operating mode of the nRF70 driver
|
||||
|
||||
|
@ -90,7 +95,7 @@ config NET_L2_ETHERNET
|
|||
if NRF70_SYSTEM_MODE
|
||||
config NRF70_STA_MODE
|
||||
bool "nRF70 STA mode"
|
||||
default y
|
||||
default y if WIFI_USAGE_MODE_STA || WIFI_USAGE_MODE_STA_AP
|
||||
depends on WIFI_NRF7002 || WIFI_NRF7001
|
||||
select WIFI_NM_WPA_SUPPLICANT
|
||||
select NRF70_DATA_TX
|
||||
|
@ -101,7 +106,7 @@ config NRF70_AP_MODE
|
|||
depends on WIFI_NRF7002 || WIFI_NRF7001
|
||||
select NRF70_DATA_TX
|
||||
depends on WIFI_NM_WPA_SUPPLICANT_AP
|
||||
default y if WIFI_NM_WPA_SUPPLICANT_AP
|
||||
default y if WIFI_USAGE_MODE_AP || WIFI_USAGE_MODE_STA_AP
|
||||
|
||||
config NRF70_P2P_MODE
|
||||
bool "P2P support in driver"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue