mac80211: disable powersave on the sta by default (for performance reasons)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 11 Nov 2009 16:59:36 +0000 (16:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 11 Nov 2009 16:59:36 +0000 (16:59 +0000)
SVN-Revision: 18379

package/mac80211/files/lib/wifi/mac80211.sh

index 027749e57841896ff422ba49e5f970b5298c54fa..00a81393d64c97ff35a254275f9a48f8ed916e7f 100644 (file)
@@ -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