From: Felix Fietkau Date: Wed, 11 Nov 2009 16:59:36 +0000 (+0000) Subject: mac80211: disable powersave on the sta by default (for performance reasons) X-Git-Tag: backfire_10.03~1587 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a195852e7f0b0808d3b8447fd07483009e7bbe3c;p=openwrt%2Fsvn-archive%2Fopenwrt.git mac80211: disable powersave on the sta by default (for performance reasons) SVN-Revision: 18379 --- 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