mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 06:45:31 +02:00
mac80211: implement the distance setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19142 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
128fd665e5
commit
461c02892a
@ -77,6 +77,7 @@ enable_mac80211() {
|
||||
config_get vifs "$device" vifs
|
||||
config_get txpower "$device" txpower
|
||||
config_get country "$device" country
|
||||
config_get distance "$device" distance
|
||||
find_mac80211_phy "$device" || return 0
|
||||
config_get phy "$device" phy
|
||||
local i=0
|
||||
@ -87,6 +88,8 @@ enable_mac80211() {
|
||||
fixed=1
|
||||
}
|
||||
|
||||
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
|
||||
|
||||
export channel fixed
|
||||
# convert channel to frequency
|
||||
local freq="$(get_freq "$phy" "${fixed:+$channel}")"
|
||||
|
Loading…
Reference in New Issue
Block a user