Skip to content

Commit 51176c7

Browse files
committed
feature: wifi: Allow to set regulation setting (country-code)
We was missing the firmware required for this, and for this to work cfg80211 needs to be as module since the rootfs is not loaded when it is loaded if compiled in kernel. And add iw since it very useful for debugging.
1 parent 88958a0 commit 51176c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package/feature-wifi/Config.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ config BR2_PACKAGE_FEATURE_WIFI
55
select BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG
66
select BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN
77
select BR2_PACKAGE_WPA_SUPPLICANT_CLI
8+
select BR2_PACKAGE_WIRELESS_REGDB
9+
select BR2_PACKAGE_IW
810
help
911
Enables WiFi in Infix. Enables all requried applications.
1012

package/feature-wifi/feature-wifi.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ FEATURE_WIFI_PACKAGE_LICENSE = MIT
1010
define FEATURE_WIFI_LINUX_CONFIG_FIXUPS
1111
$(call KCONFIG_ENABLE_OPT,CONFIG_WLAN)
1212
$(call KCONFIG_ENABLE_OPT,CONFIG_RFKILL)
13-
$(call KCONFIG_ENABLE_OPT,CONFIG_MAC80211)
14-
$(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
13+
$(call KCONFIG_SET_OPT,CONFIG_MAC80211,m)
14+
$(call KCONFIG_SET_OPT,CONFIG_CFG80211,m)
15+
1516
$(if $(filter y,$(BR2_PACKAGE_FEATURE_WIFI_DONGLE_REALTEK)),
1617
$(call KCONFIG_ENABLE_OPT,CONFIG_WLAN_VENDOR_REALTEK)
1718
$(call KCONFIG_ENABLE_OPT,CONFIG_RTW88)

0 commit comments

Comments
 (0)