mirror of https://github.com/hak5/openwrt-owl.git
parent
0c66d3eef2
commit
b35e22bd24
|
@ -77,6 +77,7 @@ enable_mac80211() {
|
||||||
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
|
config_get country "$device" country
|
||||||
|
config_get distance "$device" distance
|
||||||
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
|
||||||
|
@ -87,6 +88,8 @@ enable_mac80211() {
|
||||||
fixed=1
|
fixed=1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
|
||||||
|
|
||||||
export channel fixed
|
export channel fixed
|
||||||
# convert channel to frequency
|
# convert channel to frequency
|
||||||
local freq="$(get_freq "$phy" "${fixed:+$channel}")"
|
local freq="$(get_freq "$phy" "${fixed:+$channel}")"
|
||||||
|
|
Loading…
Reference in New Issue