summaryrefslogtreecommitdiff
path: root/package/mac80211/files/lib/wifi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-27 16:00:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-27 16:00:02 +0000
commita580764a9f4715335e23cf7aea7b7716a7ad135c (patch)
treed5af18ea9bcc17e8bb7485f652ca202da7b8238c /package/mac80211/files/lib/wifi
parent50be0201f13e198250ae1eed9cf89fb138cf7028 (diff)
downloadmtk-20170518-a580764a9f4715335e23cf7aea7b7716a7ad135c.zip
mtk-20170518-a580764a9f4715335e23cf7aea7b7716a7ad135c.tar.gz
mtk-20170518-a580764a9f4715335e23cf7aea7b7716a7ad135c.tar.bz2
mac80211: fix order of iw parameters, fix broken antenna config call
SVN-Revision: 25152
Diffstat (limited to 'package/mac80211/files/lib/wifi')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 7e38cea..13d6584 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -256,7 +256,7 @@ enable_mac80211() {
fixed=1
}
- iw phy "$phy" set antenna "$txantenna $rxantenna"
+ iw phy "$phy" set antenna $txantenna $rxantenna
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"
@@ -425,9 +425,9 @@ enable_mac80211() {
iw dev "$ifname" ibss join "$ssid" $freq \
${fixed:+fixed-freq} $bssid \
- ${mcval:+mcast-rate $mcval} \
${bintval:+beacon-interval $bintval} \
${basicrates:+basic-rates $basicrates} \
+ ${mcval:+mcast-rate $mcval} \
${keyspec:+keys $keyspec}
;;
sta)