mac80211: use iw instead of iwconfig to disable powersave
authorFelix Fietkau <nbd@openwrt.org>
Sun, 18 Dec 2011 22:18:46 +0000 (22:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 18 Dec 2011 22:18:46 +0000 (22:18 +0000)
SVN-Revision: 29565

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

index 738c2aa412453a43b8c84567bc93c0c6fd6c0400..7a4e29d0f7fa109da196523d4a30cea9028586bc 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"
-                               iwconfig "$ifname" power "$powersave"
+                               iw "$ifname" set power_save off
                        ;;
                esac