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 <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2023-10-09 13:23:42 +02:00
parent d58ade3a48
commit 129e023548
1 changed files with 3 additions and 0 deletions

View File

@ -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