From: Felix Fietkau Date: Mon, 19 Dec 2011 10:27:28 +0000 (+0000) Subject: mac80211: fix powersave setting X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b62f4e0aa2a95c0982ba4b7372b98998234611c9;p=librecmc%2Flibrecmc.git mac80211: fix powersave setting SVN-Revision: 29569 --- diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 11e0b04459..974fe5f994 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" - iw "$ifname" set power_save off + iw "$ifname" set power_save "$powersave" ;; esac