aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-28 18:29:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-28 18:29:22 +0000
commit942ee241a860439c4ab4538aa4e1452cfe30a5bb (patch)
tree1e4b90a22f79a38fb26d358c6ea1b59064b069e6 /package/mac80211/files
parent6eb0e3763151f2b026c474c95d36d1c8921f3cee (diff)
downloadmaster-187ad058-942ee241a860439c4ab4538aa4e1452cfe30a5bb.tar.gz
master-187ad058-942ee241a860439c4ab4538aa4e1452cfe30a5bb.tar.bz2
master-187ad058-942ee241a860439c4ab4538aa4e1452cfe30a5bb.zip
mac80211: add uci support for configuring antenna gain
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33587 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/files')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 6dfe2a2caf..1b0bea70ed 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -295,6 +295,7 @@ enable_mac80211() {
config_get distance "$device" distance
config_get txantenna "$device" txantenna all
config_get rxantenna "$device" rxantenna all
+ config_get antenna_gain "$device" antenna_gain 0
config_get frag "$device" frag
config_get rts "$device" rts
find_mac80211_phy "$device" || return 0
@@ -321,6 +322,7 @@ enable_mac80211() {
}
iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1
+ iw phy "$phy" set antenna_gain $antenna_gain
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"