diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-11 16:59:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-11-11 16:59:36 +0000 |
commit | a195852e7f0b0808d3b8447fd07483009e7bbe3c (patch) | |
tree | 012ab4f2beaa222215d140268be150bbda3ad920 /package/mac80211 | |
parent | f61d14f781a534fc613ed4f922c61e042c413fb8 (diff) | |
download | master-31e0f0ae-a195852e7f0b0808d3b8447fd07483009e7bbe3c.tar.gz master-31e0f0ae-a195852e7f0b0808d3b8447fd07483009e7bbe3c.tar.bz2 master-31e0f0ae-a195852e7f0b0808d3b8447fd07483009e7bbe3c.zip |
mac80211: disable powersave on the sta by default (for performance reasons)
SVN-Revision: 18379
Diffstat (limited to 'package/mac80211')
-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 027749e578..00a81393d6 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -127,6 +127,9 @@ enable_mac80211() { local wdsflag [ "$wds" -gt 0 ] && wdsflag="wds on" iw phy "$phy" interface add "$ifname" type managed $wdsflag + config_get_bool powersave "$vif" powersave 0 + [ "$powersave" -gt 0 ] && powersave="on" || powersave="off" + iwconfig "$ifname" power "$powersave" ;; esac |