diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-15 01:16:52 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-01-15 01:16:52 +0000 |
commit | b35e22bd24bdb67547db37daefebba6921e420ad (patch) | |
tree | 28c17b02160126c78c69e3a8a49a41eb86d7b4c3 /package/mac80211/files | |
parent | 0c66d3eef2355c44e7f7e0f2a8dfa2b2b83776c8 (diff) | |
download | upstream-b35e22bd24bdb67547db37daefebba6921e420ad.tar.gz upstream-b35e22bd24bdb67547db37daefebba6921e420ad.tar.bz2 upstream-b35e22bd24bdb67547db37daefebba6921e420ad.zip |
mac80211: implement the distance setting
SVN-Revision: 19142
Diffstat (limited to 'package/mac80211/files')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 06f4b84dad..942a635f78 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -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}")" |