Skip to content

Commit cef6aba

Browse files
committed
RESET for each connect operation
1 parent fc8ae6f commit cef6aba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/netsocket/emac-drivers/TARGET_RDA_EMAC/RdaWiFiInterface.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ nsapi_error_t RDAWiFiInterface::connect(const char *ssid, const char *pass,
146146

147147
init();
148148

149+
//reset all scan result to avoid any previous stored SSID/PW/CHANNEL
150+
rda5981_del_scan_all_result();
151+
rda5981_scan(NULL,0,0);
149152
if(rda5981_check_scan_result_name(ssid) != 0) {
150153
for (i = 0; i< 5; i++) {
151154
rda5981_scan(NULL, 0, 0);

0 commit comments

Comments
 (0)