diff options
author | Daniel Golle <daniel@makrotopia.org> | 2018-04-20 07:41:03 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2018-04-20 16:00:01 +0200 |
commit | a4322eba2b129adde45e3f7ac6c3805889623dd5 (patch) | |
tree | cbd224bf3aab28bd419744fd2ba649a1376c0ca2 /package/network/services/hostapd/files | |
parent | 99d9c98748695093e9e0f62b45ebb12e624cd7c0 (diff) | |
download | upstream-a4322eba2b129adde45e3f7ac6c3805889623dd5.tar.gz upstream-a4322eba2b129adde45e3f7ac6c3805889623dd5.tar.bz2 upstream-a4322eba2b129adde45e3f7ac6c3805889623dd5.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.
This time also make sure to add all files to the patch before
committing it...
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.sh | 2 |
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="" } |