aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 19:27:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 19:27:22 +0000
commit768d09be8781228d3553142c0f1e1231c6aacc7c (patch)
treee3127d0d1db50f59bf8b113d44279add1728c2ad /package/network
parentc180e8df1e0c556d9bdd5f5f492736849925c0df (diff)
downloadupstream-768d09be8781228d3553142c0f1e1231c6aacc7c.tar.gz
upstream-768d09be8781228d3553142c0f1e1231c6aacc7c.tar.bz2
upstream-768d09be8781228d3553142c0f1e1231c6aacc7c.zip
mac80211/hostapd: fix HT mode setup for RSN ad-hoc networks
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44100
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/files/netifd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index d6257090ac..83fb129fe1 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -596,7 +596,8 @@ wpa_supplicant_add_network() {
}
local ht_str
- [ -n "$ht" ] && append network_data "htmode=$ht" "$N$T"
+ [[ "$_w_mode" = adhoc ]] || ibss_htmode=
+ [ -n "$ibss_htmode" ] && append network_data "htmode=$ibss_htmode" "$N$T"
cat >> "$_config" <<EOF
network={