mac80211: fix powersave setting
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Dec 2011 10:27:28 +0000 (10:27 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Dec 2011 10:27:28 +0000 (10:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29569 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 11e0b04..974fe5f 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
 
This page took 0.023367 seconds and 4 git commands to generate.