projects
/
openwrt
/
staging
/
mkresin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b680f08
)
mac80211: use iw for txpower control (#8416)
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 10 Dec 2010 18:43:47 +0000
(18:43 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 10 Dec 2010 18:43:47 +0000
(18:43 +0000)
SVN-Revision: 24441
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 46c8c2af4cc33bc318ee1eca575d6d44b88ab3b5..9ebc0be0320f8fac3084d82312c6543e7a6cd333 100644
(file)
--- a/
package/mac80211/files/lib/wifi/mac80211.sh
+++ b/
package/mac80211/files/lib/wifi/mac80211.sh
@@
-317,12
+317,11
@@
enable_mac80211() {
[ -n "$fixed" -a -n "$channel" ] && iw dev "$ifname" set channel "$channel"
fi
- # txpower is not yet implemented in iw
config_get vif_txpower "$vif" txpower
# use vif_txpower (from wifi-iface) to override txpower (from
# wifi-device) if the latter doesn't exist
txpower="${txpower:-$vif_txpower}"
- [ -z "$txpower" ] || iw
config "$ifname" txpower "${txpower%%.*}
"
+ [ -z "$txpower" ] || iw
dev "$ifname" set txpower fixed "${txpower%%.*}00
"
done
local start_hostapd=