mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-12 01:20:14 +02:00
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
This commit is contained in:
parent
b546af4c21
commit
2ec93f271b
@ -76,11 +76,13 @@ enable_mac80211() {
|
|||||||
config_get channel "$device" channel
|
config_get channel "$device" channel
|
||||||
config_get vifs "$device" vifs
|
config_get vifs "$device" vifs
|
||||||
config_get txpower "$device" txpower
|
config_get txpower "$device" txpower
|
||||||
|
config_get country "$device" country
|
||||||
find_mac80211_phy "$device" || return 0
|
find_mac80211_phy "$device" || return 0
|
||||||
config_get phy "$device" phy
|
config_get phy "$device" phy
|
||||||
local i=0
|
local i=0
|
||||||
fixed=""
|
fixed=""
|
||||||
|
|
||||||
|
[ -n "$country" ] && iw reg set "$country"
|
||||||
[ "$channel" = "auto" -o "$channel" = "0" ] || {
|
[ "$channel" = "auto" -o "$channel" = "0" ] || {
|
||||||
fixed=1
|
fixed=1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user