X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=package%2Fmac80211%2Ffiles%2Flib%2Fwifi%2Fmac80211.sh;h=00a81393d64c97ff35a254275f9a48f8ed916e7f;hb=b87aea7e75784c62f709efe669098bb0b6ae6ffe;hp=027749e57841896ff422ba49e5f970b5298c54fa;hpb=26b8a4b21ca223a20d024568611c02847feaaefc;p=openwrt-10.03%2F.git diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 027749e57..00a81393d 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -127,6 +127,9 @@ enable_mac80211() { local wdsflag [ "$wds" -gt 0 ] && wdsflag="wds on" 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" ;; esac