mac80211: use iw instead of iwconfig to disable powersave
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29565 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
112924dd64
commit
e807bd0870
|
@ -363,7 +363,7 @@ enable_mac80211() {
|
||||||
iw phy "$phy" interface add "$ifname" type managed $wdsflag
|
iw phy "$phy" interface add "$ifname" type managed $wdsflag
|
||||||
config_get_bool powersave "$vif" powersave 0
|
config_get_bool powersave "$vif" powersave 0
|
||||||
[ "$powersave" -gt 0 ] && powersave="on" || powersave="off"
|
[ "$powersave" -gt 0 ] && powersave="on" || powersave="off"
|
||||||
iwconfig "$ifname" power "$powersave"
|
iw "$ifname" set power_save off
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue