mirror of https://github.com/hak5/openwrt.git
mac80211: set the country code through iw reg, setting it only through hostapd apparently does not work
SVN-Revision: 18665lede-17.01
parent
af947d5c89
commit
fee32f227e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue