diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-10 18:43:47 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-10 18:43:47 +0000 |
commit | 0df11abb3be058344349dbabad2f4fe0736ef154 (patch) | |
tree | 475d4a5f858f70f5a991cebe34f2847aaa655530 | |
parent | 9bdc5b83af7884b197848834833f8751baaed7f9 (diff) |
[package] mac80211: use iw for txpower control (#8416)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24441 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 46c8c2af4..9ebc0be03 100644 --- 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" ] || iwconfig "$ifname" txpower "${txpower%%.*}" + [ -z "$txpower" ] || iw dev "$ifname" set txpower fixed "${txpower%%.*}00" done local start_hostapd= |