From: Felix Fietkau Date: Sun, 18 Dec 2011 22:18:46 +0000 (+0000) Subject: mac80211: use iw instead of iwconfig to disable powersave X-Git-Tag: reboot~15291 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=25540787ad1d33e044c4dd3ad67c2c64c6434a9c;p=oweals%2Fopenwrt.git mac80211: use iw instead of iwconfig to disable powersave SVN-Revision: 29565 --- diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 738c2aa412..7a4e29d0f7 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -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