projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c66d3e
)
mac80211: implement the distance setting
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 15 Jan 2010 01:16:52 +0000
(
01:16
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 15 Jan 2010 01:16:52 +0000
(
01:16
+0000)
SVN-Revision: 19142
package/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index 06f4b84dad651a4ee2f9b847f4ec2db962160567..942a635f78d5904b9f6d9819dcea9f307f7544b4 100644
(file)
--- 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}")"