From 64b0543efc0a7e47af3cc552cb0627d2f41ad750 Mon Sep 17 00:00:00 2001 From: "pablo.sun" Date: Mon, 26 Feb 2018 11:03:53 +0800 Subject: [PATCH] Fix #92 by using mixed authentication mode --- .../arduino/mt7697/libraries/LWiFi/src/utility/ard_mtk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/third_party/arduino/hardware/arduino/mt7697/libraries/LWiFi/src/utility/ard_mtk.c b/middleware/third_party/arduino/hardware/arduino/mt7697/libraries/LWiFi/src/utility/ard_mtk.c index 4129777..758215b 100644 --- a/middleware/third_party/arduino/hardware/arduino/mt7697/libraries/LWiFi/src/utility/ard_mtk.c +++ b/middleware/third_party/arduino/hardware/arduino/mt7697/libraries/LWiFi/src/utility/ard_mtk.c @@ -332,8 +332,8 @@ int8_t set_passphrase(const char* ssid, uint8_t ssid_len, const char *passphrase init_global_connsys(); uint8_t port = WIFI_PORT_STA; - wifi_auth_mode_t auth = WIFI_AUTH_MODE_WPA2_PSK; - wifi_encrypt_type_t encrypt = WIFI_ENCRYPT_TYPE_AES_ENABLED; + wifi_auth_mode_t auth = WIFI_AUTH_MODE_WPA_PSK_WPA2_PSK; + wifi_encrypt_type_t encrypt = WIFI_ENCRYPT_TYPE_TKIP_AES_MIX; if (wifi_config_set_ssid(port, (uint8_t*)ssid, ssid_len) < 0) { pr_debug("wifi_config_set_ssid failed\r\n");