projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df88d1
)
mac80211: disable powersave on the sta by default (for performance reasons)
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 11 Nov 2009 16:59:36 +0000
(16:59 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 11 Nov 2009 16:59:36 +0000
(16:59 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18379
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index
027749e
..
00a8139
100644
(file)
--- 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