summaryrefslogtreecommitdiff
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-26 23:04:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-26 23:04:23 +0000
commit4aab5d7c49e7de258cc5c20d95dec0d0138cff2f (patch)
tree5d870cc07aab0fda1b380c1c531c08f330505037 /package/madwifi/files/lib
parent45fa082fadcc2291f3baad6063f7689001711d73 (diff)
downloadmtk-20170518-4aab5d7c49e7de258cc5c20d95dec0d0138cff2f.zip
mtk-20170518-4aab5d7c49e7de258cc5c20d95dec0d0138cff2f.tar.gz
mtk-20170518-4aab5d7c49e7de258cc5c20d95dec0d0138cff2f.tar.bz2
madwifi: add config option for adjusting the beacon power relative to the full tx power (needs testing, units/scale still unknown, defaults to max.)
SVN-Revision: 15054
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 52086f0..3c4112a 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -257,6 +257,9 @@ enable_atheros() {
config_get_bool turbo "$vif" turbo
[ -n "$turbo" ] && iwpriv "$ifname" turbo "$turbo"
+ config_get_bool beacon_power "$vif" beacon_power
+ [ -n "$beacon_power" ] && iwpriv "$ifname" beacon_pwr "$beacon_power"
+
config_get_bool doth "$vif" doth 0
[ -n "$doth" ] && iwpriv "$ifname" doth "$doth"