aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2018-04-20 07:41:03 +0200
committerDaniel Golle <daniel@makrotopia.org>2018-04-20 07:52:19 +0200
commit7f52919a2f2894125b4dca611eb2d30181af7e0b (patch)
treea3205d357f908cbe957965134aaaae646f6c208c /package/network/services/hostapd/files
parent465d4bc538c66dfe8b218868cbab1c19a893d3df (diff)
downloadupstream-7f52919a2f2894125b4dca611eb2d30181af7e0b.tar.gz
upstream-7f52919a2f2894125b4dca611eb2d30181af7e0b.tar.bz2
upstream-7f52919a2f2894125b4dca611eb2d30181af7e0b.zip
hostapd: fix encrypted mesh channel settings
Import two patches from Peter Oh to allow setting channel bandwidth in the way it already works for managed interfaces. This fixes mesh interfaces on 802.11ac devices always coming up in VHT80 mode. Add a patch to allow HT40 also on 2.4GHz if noscan option is set, which also skips secondary channel scan just like noscan works in AP mode. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/network/services/hostapd/files')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index c3640689da..d3633a2a55 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -647,6 +647,7 @@ wpa_supplicant_add_network() {
local ifname="$1"
local freq="$2"
local htmode="$3"
+ local noscan="$4"
_wpa_supplicant_common "$1"
wireless_vif_parse_encryption
@@ -682,6 +683,7 @@ wpa_supplicant_add_network() {
append network_data "mode=5" "$N$T"
[ -n "$mesh_fwding" ] && append network_data "mesh_fwding=${mesh_fwding}" "$N$T"
[ -n "$channel" ] && wpa_supplicant_set_fixed_freq "$freq" "$htmode"
+ [ "$noscan" = "1" ] && append network_data "noscan=1" "$N$T"
append wpa_key_mgmt "SAE"
scan_ssid=""
}