Skip to content

Commit 1c47551

Browse files
committed
drivers: wifi: nxp: auto NXP_WIFI_SOFTAP_SUPPORT
Only enable `NXP_WIFI_SOFTAP_SUPPORT` by default if the application requests AP support (it does by default). Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent d2bc9e5 commit 1c47551

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/wifi/nxp/Kconfig.nxp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,18 @@ config NXP_WIFI_MAX_PRIO
535535
help
536536
This option sets Wi-Fi max priority in the Wi-Fi driver.
537537

538+
# Preserve the legacy default enabled features
539+
choice WIFI_USAGE_MODE
540+
default WIFI_USAGE_MODE_STA_AP
541+
endchoice
542+
538543
config NXP_WIFI_SOFTAP_SUPPORT
539544
bool "Wi-Fi SoftAP Support"
540545
select NET_DHCPV4_SERVER
541546
select WIFI_NM_HOSTAPD_AP if WIFI_NM_WPA_SUPPLICANT
542547
imply WIFI_NM_HOSTAPD_WPS if WIFI_NM_HOSTAPD_AP && WIFI_NM_WPA_SUPPLICANT_WPS
543548
imply WIFI_NM_HOSTAPD_CRYPTO_ENTERPRISE if WIFI_NM_HOSTAPD_AP && WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
544-
default y
549+
default y if WIFI_USAGE_MODE_AP || WIFI_USAGE_MODE_STA_AP
545550
help
546551
Option to enable Wi-Fi SoftAP functions in the Wi-Fi driver.
547552

0 commit comments

Comments
 (0)