mac80211: fix powersave setting
authorFelix Fietkau <nbd@openwrt.org>
Mon, 19 Dec 2011 10:27:28 +0000 (10:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 19 Dec 2011 10:27:28 +0000 (10:27 +0000)
SVN-Revision: 29569

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

index 11e0b044599c86c075d9dbe0cd0ad5be791913e1..974fe5f994b16317db3b4278d22f057bb4e1bbdd 100644 (file)
@@ -363,7 +363,7 @@ enable_mac80211() {
                                iw phy "$phy" interface add "$ifname" type managed $wdsflag
                                config_get_bool powersave "$vif" powersave 0
                                [ "$powersave" -gt 0 ] && powersave="on" || powersave="off"
-                               iw "$ifname" set power_save off
+                               iw "$ifname" set power_save "$powersave"
                        ;;
                esac