]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: use country_code for iw reg set in setup_phy
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 12:53:29 +0000 (14:53 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:22 +0000 (11:50 +0200)
commit56d466a75d112f481eecaccc3632b33f1b7b48dc
treeae6ccf70237a1aa159a7612dd605805b391dffc0
parentf3cbf551430316efcf0daad3a1786eed4ce1da3b
wifi-scripts: use country_code for iw reg set in setup_phy

validate() converts the country alias to country_code and deletes country
before setup_phy() runs, so the iw reg set branch tested a null
config.country and never ran, leaving wdev-only radios (adhoc/mesh/monitor)
on the world regdomain. Use config.country_code.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh