diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-10 18:43:47 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-10 18:43:47 +0000 |
commit | 4dcba4234223d83e60640e62a0c959aea2eb657c (patch) | |
tree | 49cf30666a4355fea3a1c33ab3deb1244d142198 /package/mac80211/files/lib/wifi/mac80211.sh | |
parent | b680f088ba6f7e5982143db351d1f817bffbf86d (diff) | |
download | mtk-20170518-4dcba4234223d83e60640e62a0c959aea2eb657c.zip mtk-20170518-4dcba4234223d83e60640e62a0c959aea2eb657c.tar.gz mtk-20170518-4dcba4234223d83e60640e62a0c959aea2eb657c.tar.bz2 |
mac80211: use iw for txpower control (#8416)
SVN-Revision: 24441
Diffstat (limited to 'package/mac80211/files/lib/wifi/mac80211.sh')
-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 46c8c2a..9ebc0be 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= |