summaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/files/netifd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/hostapd/files/netifd.sh')
-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={