summaryrefslogtreecommitdiff
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-02-02 14:25:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-02-02 14:25:09 +0000
commit6106bdd00217852ca65a0920125024189ad88cf3 (patch)
tree9adcb4a8054b4e6beadf597eb76ff017f464a9f0 /package/kernel
parent1d9a98689d61450e13be8f3b9edf8f347677e114 (diff)
downloadmtk-20170518-6106bdd00217852ca65a0920125024189ad88cf3.zip
mtk-20170518-6106bdd00217852ca65a0920125024189ad88cf3.tar.gz
mtk-20170518-6106bdd00217852ca65a0920125024189ad88cf3.tar.bz2
mac80211: fix basic rate list processing in ad-hoc mode
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39450
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 2f369d6..c98807f 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -241,7 +241,7 @@ mac80211_setup_supplicant() {
}
mac80211_setup_adhoc() {
- json_get_vars bssid ssid basic_rate key mcast_rate
+ json_get_vars bssid ssid key mcast_rate
keyspec=
[ "$auth_type" == "wep" ] && {
@@ -266,7 +266,7 @@ mac80211_setup_adhoc() {
}
brstr=
- for br in $basic_rate; do
+ for br in $basic_rate_list; do
hostapd_add_rate brstr "$br"
done
@@ -352,6 +352,7 @@ drv_mac80211_setup() {
txpower antenna_gain \
rxantenna txantenna \
frag rts beacon_int
+ json_get_values basic_rate_list basic_rate
json_select ..
find_phy || {