feat(lib): set the connection to the open router mechanism when pwd is set

This commit is contained in:
Zhang Jun Hao
2019-11-12 16:19:23 +08:00
committed by Dong Heng
parent b0f6b29b0a
commit 5c3f1e058d
5 changed files with 9 additions and 1 deletions

View File

@ -419,6 +419,13 @@ config ESP8266_WIFI_NVS_ENABLED
help help
Select this option to enable WiFi NVS flash Select this option to enable WiFi NVS flash
config ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET
bool "Connent open router when wifi password is set"
default y
help
When this option is enabled, ESP8266 will connect to open router even if wifi password is set, otherwise
ESP8266 will not connect to open router when wifi password is set.
config ESP8266_WIFI_DEBUG_LOG_ENABLE config ESP8266_WIFI_DEBUG_LOG_ENABLE
bool "Enable WiFi debug log" bool "Enable WiFi debug log"
default n default n

View File

@ -1,5 +1,5 @@
gwen: gwen:
core: 743c778 core: 158ee68
net80211: 72ecd98 net80211: 72ecd98
pp: 5b48c0d pp: 5b48c0d
wpa: 743c778 wpa: 743c778

Binary file not shown.

Binary file not shown.

View File

@ -20,6 +20,7 @@
#include "phy.h" #include "phy.h"
const size_t _g_esp_wifi_ppt_task_stk_size = CONFIG_WIFI_PPT_TASKSTACK_SIZE; const size_t _g_esp_wifi_ppt_task_stk_size = CONFIG_WIFI_PPT_TASKSTACK_SIZE;
const bool _g_esp_wifi_connect_open_router_when_pwd_is_set = CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET;
esp_err_t esp_wifi_init_internal(const wifi_init_config_t *config); esp_err_t esp_wifi_init_internal(const wifi_init_config_t *config);