summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-02-02 14:25:09 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-02-02 14:25:09 +0000
commitf8e102ef2719929103e4a2910353b337e4cf1621 (patch)
tree84a998d6cf8867b0dd30701ac8e4b16e8c8c6483
parent6d07b8a8a76ee2cea6465c3774479d6f0fe52162 (diff)
mac80211: fix basic rate list processing in ad-hoc mode
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39450 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 2f369d65de..c98807f3cf 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 || {