From ba345625dee72a14e18bcc62f00ddd425a43ea3a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 12 Feb 2020 16:55:39 +0100 Subject: [PATCH] Fix wifi connection issues Fix wifi connection issues since 7602 (#7621) --- tasmota/support_wifi.ino | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tasmota/support_wifi.ino b/tasmota/support_wifi.ino index d53b14f71..f261738b6 100644 --- a/tasmota/support_wifi.ino +++ b/tasmota/support_wifi.ino @@ -187,15 +187,11 @@ void WifiBegin(uint8_t flag, uint8_t channel) // if (WiFi.getPhyMode() != WIFI_PHY_MODE_11N) { WiFi.setPhyMode(WIFI_PHY_MODE_11N); } // B/G/N // if (WiFi.getPhyMode() != WIFI_PHY_MODE_11G) { WiFi.setPhyMode(WIFI_PHY_MODE_11G); } // B/G if (!WiFi.getAutoConnect()) { WiFi.setAutoConnect(true); } + // Handle the reconnection in WifiCheckIp() since the autoreconnect keeps sending deauthentication messages which causes the AP to block traffic as it looks like an DoS attack // This needs to be explicitly called as "false" otherwise the default is enabled -#ifdef USE_DEEPSLEEP - if (!(DeepSleepEnabled())) { // #7621 -#endif - WiFi.setAutoReconnect(false); -#ifdef USE_DEEPSLEEP - } -#endif +// WiFi.setAutoReconnect(false); // See #7621 + switch (flag) { case 0: // AP1 case 1: // AP2