aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-11 16:59:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-11 16:59:36 +0000
commit87daff29bad9c3c9b97e7f556e6f78ebb197f501 (patch)
treec54fec01bfbcf3fe7fe9e611b5d9e230a686d923 /package/mac80211/files
parent7df88d1517e82a8640e83f41a8758dd3dad46ea5 (diff)
downloadmaster-187ad058-87daff29bad9c3c9b97e7f556e6f78ebb197f501.tar.gz
master-187ad058-87daff29bad9c3c9b97e7f556e6f78ebb197f501.tar.bz2
master-187ad058-87daff29bad9c3c9b97e7f556e6f78ebb197f501.zip
mac80211: disable powersave on the sta by default (for performance reasons)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18379 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/files')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh3
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