From 83eb22f36367119a4dbe2a77543e416bd4a1c593 Mon Sep 17 00:00:00 2001 From: Cossid Date: Sat, 18 Nov 2023 18:17:18 -0600 Subject: [PATCH] Add wifi_mode back for regular STA mode. --- cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp b/cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp index 220ec8591..7549f5ac8 100644 --- a/cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp +++ b/cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp @@ -96,6 +96,7 @@ bool WiFiClass::reconnect(const uint8_t *bssid) { } else { LT_IM(WIFI, "Connecting to %s", STA_CFG.wifi_ssid); memset(STA_CFG.wifi_bssid, 0x00, 6); + STA_CFG.wifi_mode = BK_STATION; } LT_DM(WIFI, "Data = %p", DATA->configSta);