diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-12-05 17:12:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-12-05 17:12:51 +0000 |
commit | 2b3a751a63ffd69e9cb8958fac301970551066e3 (patch) | |
tree | be5ab5ee0e28200c59024db1bf1a6f954afc429b /package/mac80211 | |
parent | 92c4f4c6fb5ec3f1e511975c83081ede02695275 (diff) | |
download | upstream-2b3a751a63ffd69e9cb8958fac301970551066e3.tar.gz upstream-2b3a751a63ffd69e9cb8958fac301970551066e3.tar.bz2 upstream-2b3a751a63ffd69e9cb8958fac301970551066e3.zip |
mac80211: set the country code through iw reg, setting it only through hostapd apparently does not work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18665 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index f5c94a9eac..efceebbe4c 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -76,11 +76,13 @@ enable_mac80211() { config_get channel "$device" channel config_get vifs "$device" vifs config_get txpower "$device" txpower + config_get country "$device" country find_mac80211_phy "$device" || return 0 config_get phy "$device" phy local i=0 fixed="" + [ -n "$country" ] && iw reg set "$country" [ "$channel" = "auto" -o "$channel" = "0" ] || { fixed=1 } |