projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af947d5
)
mac80211: set the country code through iw reg, setting it only through hostapd appare...
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 5 Dec 2009 17:12:51 +0000
(17:12 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 5 Dec 2009 17:12:51 +0000
(17:12 +0000)
SVN-Revision: 18665
package/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index f5c94a9eace298ed7e88e17e91ac29a36f5ebe03..efceebbe4c1a0d90f6190e66fd748fa47fd2f0a6 100644
(file)
--- 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
}