diff options
author | Sujith Manoharan <m.sujith@gmail.com> | 2017-01-11 07:39:22 +0530 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2017-01-11 04:01:07 +0100 |
commit | 593240075f8d3074164ffce99ab67a88277f9fb3 (patch) | |
tree | ff03aabcd112fb9be6bc8338bf32bdf715a77731 | |
parent | b95494baedbc46d088550e18370e3507af4f732e (diff) | |
download | mtk-20170518-593240075f8d3074164ffce99ab67a88277f9fb3.zip mtk-20170518-593240075f8d3074164ffce99ab67a88277f9fb3.tar.gz mtk-20170518-593240075f8d3074164ffce99ab67a88277f9fb3.tar.bz2 |
wpa_supplicant: Fix mesh encryption config
wpa_supplicant allows only SAE as the key management
type for mesh mode. The recent key_mgmt rework unconditionally
added WPA-PSK - this breaks interface bringup and wpa_s
throws this error message:
Line 10: key_mgmt for mesh network should be open or SAE
Line 10: failed to parse network block.
Failed to read or parse configuration '/var/run/wpa_supplicant-wlan0.conf
Fix this by making sure that only SAE is used for mesh.
Signed-off-by: Sujith Manoharan <m.sujith@gmail.com>
-rw-r--r-- | package/network/services/hostapd/files/netifd.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index a7a6a64..fb23e52 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -617,7 +617,10 @@ wpa_supplicant_add_network() { psk) local passphrase - hostapd_append_wpa_key_mgmt + if [ "$_w_mode" != "mesh" ]; then + hostapd_append_wpa_key_mgmt + fi + key_mgmt="$wpa_key_mgmt" if [ ${#key} -eq 64 ]; then |