aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-01-27 09:13:51 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-01-27 09:13:51 +0000
commit0d0e90ea5a821ba0b033d6273d3b6356c7b65102 (patch)
treebb1d8ba3e0af183a891fa66c41dde1487e4b77dc /package/mac80211
parent9261d17ae5557a2f0fbe2ac7ee8fc9559b5ab8d8 (diff)
downloadupstream-0d0e90ea5a821ba0b033d6273d3b6356c7b65102.tar.gz
upstream-0d0e90ea5a821ba0b033d6273d3b6356c7b65102.tar.bz2
upstream-0d0e90ea5a821ba0b033d6273d3b6356c7b65102.zip
[package] mac80211: Fix antenna setting when only one of {rx,tx}antenna options is specified
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25136 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 3a8b116d19..7e38cea557 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -239,8 +239,8 @@ enable_mac80211() {
config_get txpower "$device" txpower
config_get country "$device" country
config_get distance "$device" distance
- config_get txantenna "$device" txantenna
- config_get rxantenna "$device" rxantenna
+ config_get txantenna "$device" txantenna all
+ config_get rxantenna "$device" rxantenna all
config_get frag "$device" frag
config_get rts "$device" rts
find_mac80211_phy "$device" || return 0
@@ -256,8 +256,7 @@ enable_mac80211() {
fixed=1
}
- local antspec="${txantenna:+$txantenna }$rxantenna"
- iw phy "$phy" set antenna ${antspec:-all}
+ iw phy "$phy" set antenna "$txantenna $rxantenna"
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"