From 129e023548f7a056816aba3d35d60039eee5c4c6 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Mon, 9 Oct 2023 13:23:42 +0200 Subject: [PATCH] ccimx93: iw612: force the Regulatory Domain to US The iw612 driver, by default, follows the beacon from the AP. In order to work on a fixed country, is required to manually force it, and indicate the driver not to follow the AP. https://onedigi.atlassian.net/browse/DEL-8327 https://onedigi.atlassian.net/browse/DEL-8458 Signed-off-by: Isaac Hermida --- .../kernel-modules/kernel-module-nxp-wlan/load_iw612.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-arm/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/load_iw612.sh b/meta-digi-arm/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/load_iw612.sh index 769b989ad..4aeb58f26 100644 --- a/meta-digi-arm/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/load_iw612.sh +++ b/meta-digi-arm/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/load_iw612.sh @@ -20,6 +20,7 @@ host_mlme=1 \ drv_mode=${DRIVER_MODE} \ drvdbg=${DRIVER_DEBUG} \ sta_name=wlan \ +country_ie_ignore=1 \ txpwrlimit_cfg=nxp/txpower_US.bin \ init_hostcmd_cfg=nxp/rutxpower_US.bin \ fw_name=nxp/sd_w61x_v1.bin.se\ @@ -35,6 +36,8 @@ if ! [ -e "/proc/device-tree/wireless/mac-address" ]; then fi WLANADDR=$(hexdump -ve '1/1 "%02X" ":"' /proc/device-tree/wireless/mac-address 2>/dev/null | sed 's/:$//g') + +iw reg set US && \ modprobe mlan && \ modprobe moal ${MOAL_PARAMS} mac_addr=${WLANADDR} && \ [ -d "/sys/class/net/wlan0" ] && log "Wi-Fi activated" && exit 0