forked from espressif/esp-idf
Bugfix of no disconnect event report if no correct status code report
Problem Description The reporduce steps are as follows: 1.This issue can be reproduced with 4 ESP32 devices, 2 for stations (STA1, STA2) and 2 for soft-AP (AP1, AP2) 2.Configure AP1/AP2 to the same SSID (ssid_xxx) 3.The max allowed WiFi connections of AP1 is configured to 1 and STA1 connects to AP1 4.The AP1 is close to STA2 while AP2 is far away from STA2 (but the STA2 can find the AP2 via scan) 5.STA2 connects ssid_xxx with all scan method 6.The problem will happen on STA2 because it fails to connec AP1 and never connects AP2 Phenmenon STA fail to connect after send auth or assoc with a wrong status code, but no disconnect event report and can not connect the next one in the envrionment Root Cause Because there are some same ssid APs in the evnrionment, when do all channel scan, it will collect all the matched AP in rc list, because rc list is not empty, so it would send disconnect event, however, we didn't do other step such as connect to other one VNC MR 575 closes https://github.com/espressif/esp-idf/issues/2323
This commit is contained in: