Skip to content

Conversation

vlastahajek
Copy link
Contributor

Description of Change

If WiFi has been started via Arduino API, but the WiFi scan is started via IDF API, WiFiScanClass::_scanDone is still called from
the event callback and reads out the scan result.

Test Scenarios

Arduino-esp32 core v 3.2.1, ESP32-C3

Copy link
Contributor

github-actions bot commented Sep 15, 2025

Messages
📖 🎉 Good Job! All checks are passing!

👋 Hello vlastahajek, we appreciate your contribution to this project!


📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project.

Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 8f44cec

@vlastahajek vlastahajek changed the title Fix (WiFi): do not steal scan results Fix (WiFi): Do not steal scan results Sep 15, 2025
Copy link
Contributor

github-actions bot commented Sep 15, 2025

Test Results

 76 files   76 suites   13m 16s ⏱️
 38 tests  38 ✅ 0 💤 0 ❌
241 runs  241 ✅ 0 💤 0 ❌

Results for commit 8f44cec.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 15, 2025

Memory usage test (comparing PR against master branch)

The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.

MemoryFLASH [bytes]FLASH [%]RAM [bytes]RAM [%]
TargetDECINCDECINCDECINCDECINC
ESP32C50⚠️ +1060.00⚠️ +0.01000.000.00
ESP32P40⚠️ +1040.00⚠️ +0.01000.000.00
ESP32S30⚠️ +640.00⚠️ +0.01000.000.00
ESP32S2💚 -24⚠️ +600.00⚠️ +0.01000.000.00
ESP32C30⚠️ +1040.00⚠️ +0.01000.000.00
ESP32C60⚠️ +1040.00⚠️ +0.01000.000.00
ESP32H2000.000.00000.000.00
ESP320⚠️ +640.00⚠️ +0.01000.000.00
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32C5ESP32P4ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
libraries/ArduinoOTA/examples/BasicOTA⚠️ +1020⚠️ +1020⚠️ +480⚠️ +440⚠️ +1020⚠️ +1020--⚠️ +560
libraries/AsyncUDP/examples/AsyncUDPClient⚠️ +980⚠️ +980⚠️ +480⚠️ +560⚠️ +980⚠️ +1000--⚠️ +480
libraries/AsyncUDP/examples/AsyncUDPMulticastServer⚠️ +980⚠️ +980⚠️ +360⚠️ +440⚠️ +980⚠️ +980--⚠️ +360
libraries/AsyncUDP/examples/AsyncUDPServer⚠️ +980⚠️ +980⚠️ +480⚠️ +280⚠️ +980⚠️ +980--⚠️ +480
libraries/DNSServer/examples/CaptivePortal⚠️ +1000⚠️ +1000⚠️ +480⚠️ +520⚠️ +1020⚠️ +1000--⚠️ +560
libraries/ESP32/examples/Time/SimpleTime⚠️ +980⚠️ +1000⚠️ +360⚠️ +520⚠️ +1000⚠️ +980--⚠️ +520
libraries/ESP_NOW/examples/ESP_NOW_Broadcast_Master⚠️ +1000--⚠️ +480⚠️ +440⚠️ +1020⚠️ +1000--⚠️ +480
libraries/ESP_NOW/examples/ESP_NOW_Broadcast_Slave⚠️ +980--⚠️ +480⚠️ +520⚠️ +980⚠️ +980--⚠️ +320
libraries/ESP_NOW/examples/ESP_NOW_Network⚠️ +980--⚠️ +520⚠️ +480⚠️ +980⚠️ +980--⚠️ +480
libraries/ESP_NOW/examples/ESP_NOW_Serial⚠️ +980--⚠️ +480⚠️ +440⚠️ +980⚠️ +980--⚠️ +560
libraries/ESPmDNS/examples/mDNS-SD_Extended⚠️ +980⚠️ +1000⚠️ +520⚠️ +360⚠️ +980⚠️ +980--⚠️ +480
libraries/ESPmDNS/examples/mDNS_Web_Server⚠️ +1000⚠️ +1000⚠️ +520⚠️ +520⚠️ +1000⚠️ +1000--⚠️ +520
libraries/Ethernet/examples/ETH_WIFI_BRIDGE⚠️ +980⚠️ +1040⚠️ +480⚠️ +440⚠️ +980⚠️ +1000--⚠️ +440
libraries/FFat/examples/FFat_time⚠️ +1000⚠️ +980⚠️ +480⚠️ +480⚠️ +980⚠️ +1000--⚠️ +480
libraries/HTTPClient/examples/Authorization⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +280⚠️ +260--00
libraries/HTTPClient/examples/BasicHttpClient⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +280⚠️ +260--00
libraries/HTTPClient/examples/BasicHttpsClient⚠️ +260⚠️ +280⚠️ +40⚠️ +40⚠️ +280⚠️ +260--00
libraries/HTTPClient/examples/CustomHeaders⚠️ +1000⚠️ +1000⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +480
libraries/HTTPClient/examples/HTTPClientEnterprise⚠️ +1020--⚠️ +480⚠️ +440⚠️ +1020⚠️ +1020--⚠️ +400
libraries/HTTPClient/examples/ReuseConnection⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +260⚠️ +260--00
libraries/HTTPClient/examples/StreamHttpClient⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +280⚠️ +260--00
libraries/HTTPUpdate/examples/httpUpdate⚠️ +280⚠️ +280⚠️ +40⚠️ +40⚠️ +260⚠️ +260--00
libraries/HTTPUpdate/examples/httpUpdateSPIFFS⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +260⚠️ +260--00
libraries/HTTPUpdate/examples/httpUpdateSecure⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +260⚠️ +260--00
libraries/HTTPUpdateServer/examples/WebUpdater⚠️ +1000⚠️ +1020⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +520
libraries/Insights/examples/DiagnosticsSmokeTest⚠️ +980--⚠️ +480⚠️ +520⚠️ +980⚠️ +1000--⚠️ +440
libraries/Insights/examples/MinimalDiagnostics⚠️ +1000--⚠️ +480⚠️ +480⚠️ +1020⚠️ +1000--⚠️ +520
libraries/LittleFS/examples/LITTLEFS_time⚠️ +1000⚠️ +1000⚠️ +520⚠️ +480⚠️ +1000⚠️ +1000--⚠️ +480
libraries/Matter/examples/MatterColorLight00--00⚠️ +440000000⚠️ +520
libraries/Matter/examples/MatterCommissionTest00--00⚠️ +520000000⚠️ +360
libraries/Matter/examples/MatterComposedLights00--00⚠️ +440000000⚠️ +480
libraries/Matter/examples/MatterContactSensor00--00⚠️ +440000000⚠️ +480
libraries/Matter/examples/MatterDimmableLight00--00⚠️ +440000000⚠️ +520
libraries/Matter/examples/MatterEnhancedColorLight00--00⚠️ +480000000⚠️ +520
libraries/Matter/examples/MatterEvents00--00⚠️ +480000000⚠️ +560
libraries/Matter/examples/MatterFan00--00⚠️ +480000000⚠️ +480
libraries/Matter/examples/MatterHumiditySensor00--00⚠️ +480000000⚠️ +480
libraries/Matter/examples/MatterLambdaSingleCallbackManyEPs00--00⚠️ +480000000⚠️ +480
libraries/Matter/examples/MatterMinimum00--00⚠️ +440000000⚠️ +480
libraries/Matter/examples/MatterOccupancySensor00--00⚠️ +440000000⚠️ +480
libraries/Matter/examples/MatterOnIdentify00--00⚠️ +440000000⚠️ +440
libraries/Matter/examples/MatterOnOffLight00--00⚠️ +440000000⚠️ +360
libraries/Matter/examples/MatterOnOffPlugin00--00⚠️ +440000000⚠️ +480
libraries/Matter/examples/MatterPressureSensor00--00⚠️ +440000000⚠️ +480
libraries/Matter/examples/MatterSmartButon00--00⚠️ +360000000⚠️ +480
libraries/Matter/examples/MatterTemperatureLight00--00💚 -240000000⚠️ +520
libraries/Matter/examples/MatterTemperatureSensor00--00⚠️ +440000000⚠️ +520
libraries/Matter/examples/MatterThermostat00--00⚠️ +480000000⚠️ +480
libraries/NetBIOS/examples/ESP_NBNST⚠️ +980⚠️ +980⚠️ +360⚠️ +440⚠️ +980⚠️ +1000--⚠️ +320
libraries/NetworkClientSecure/examples/WiFiClientInsecure⚠️ +1020⚠️ +1020⚠️ +440⚠️ +440⚠️ +1020⚠️ +1020--⚠️ +480
libraries/NetworkClientSecure/examples/WiFiClientPSK⚠️ +1020⚠️ +1020⚠️ +480⚠️ +440⚠️ +1020⚠️ +1020--⚠️ +480
libraries/NetworkClientSecure/examples/WiFiClientSecure⚠️ +1020⚠️ +1020⚠️ +480⚠️ +440⚠️ +1020⚠️ +1020--⚠️ +560
libraries/NetworkClientSecure/examples/WiFiClientSecureEnterprise⚠️ +1040--⚠️ +480⚠️ +440⚠️ +1000⚠️ +1020--⚠️ +480
libraries/NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade⚠️ +1020⚠️ +1020⚠️ +480⚠️ +360⚠️ +1000⚠️ +1020--⚠️ +480
libraries/NetworkClientSecure/examples/WiFiClientShowPeerCredentials⚠️ +1000⚠️ +1000⚠️ +480⚠️ +440⚠️ +1000⚠️ +1020--⚠️ +480
libraries/NetworkClientSecure/examples/WiFiClientTrustOnFirstUse⚠️ +1020⚠️ +1000⚠️ +520⚠️ +360⚠️ +1000⚠️ +1020--⚠️ +520
libraries/PPP/examples/PPP_WIFI_BRIDGE⚠️ +1020⚠️ +1020⚠️ +480⚠️ +440⚠️ +1020⚠️ +1020--⚠️ +480
libraries/RainMaker/examples/RMakerCustom⚠️ +980--⚠️ +480⚠️ +440⚠️ +980⚠️ +980----
libraries/RainMaker/examples/RMakerCustomAirCooler⚠️ +980--⚠️ +520⚠️ +480⚠️ +980⚠️ +980----
libraries/RainMaker/examples/RMakerSonoffDualR3⚠️ +1000--⚠️ +480⚠️ +440⚠️ +980⚠️ +1000----
libraries/RainMaker/examples/RMakerSwitch⚠️ +1020--⚠️ +480⚠️ +360⚠️ +1020⚠️ +1020----
libraries/SD/examples/SD_time⚠️ +1000⚠️ +1000⚠️ +520⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +480
libraries/SPIFFS/examples/SPIFFS_time⚠️ +980⚠️ +1000⚠️ +640⚠️ +440⚠️ +980⚠️ +980--⚠️ +520
libraries/Update/examples/AWS_S3_OTA_Update⚠️ +1000⚠️ +1020⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +520
libraries/Update/examples/HTTPS_OTA_Update⚠️ +980⚠️ +980⚠️ +480⚠️ +480⚠️ +980⚠️ +980--⚠️ +480
libraries/Update/examples/HTTP_Client_AES_OTA_Update⚠️ +1020⚠️ +1020⚠️ +480⚠️ +520⚠️ +1020⚠️ +1000--⚠️ +440
libraries/Update/examples/HTTP_Server_AES_OTA_Update⚠️ +1000⚠️ +1000⚠️ +480⚠️ +480⚠️ +1000⚠️ +1000--⚠️ +440
libraries/Update/examples/OTAWebUpdater⚠️ +1000⚠️ +1000⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WebServer/examples/AdvancedWebServer⚠️ +1000⚠️ +1040⚠️ +480⚠️ +440⚠️ +1000⚠️ +1020--⚠️ +480
libraries/WebServer/examples/FSBrowser⚠️ +1020⚠️ +1020⚠️ +480⚠️ +480⚠️ +1020⚠️ +1020--⚠️ +480
libraries/WebServer/examples/Filters⚠️ +1000⚠️ +1020⚠️ +480⚠️ +480⚠️ +1000⚠️ +1000--⚠️ +560
libraries/WebServer/examples/HelloServer⚠️ +1000⚠️ +1000⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +560
libraries/WebServer/examples/HttpAdvancedAuth⚠️ +1020⚠️ +1020⚠️ +480⚠️ +480⚠️ +1020⚠️ +1000--⚠️ +480
libraries/WebServer/examples/HttpAuthCallback⚠️ +1020⚠️ +1020⚠️ +480⚠️ +440⚠️ +1040⚠️ +1020--⚠️ +480
libraries/WebServer/examples/HttpAuthCallbackInline⚠️ +1000⚠️ +1020⚠️ +520⚠️ +360⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WebServer/examples/HttpBasicAuth⚠️ +1020⚠️ +1000⚠️ +480⚠️ +440⚠️ +1000⚠️ +1020--⚠️ +480
libraries/WebServer/examples/HttpBasicAuthSHA1⚠️ +1000⚠️ +1000⚠️ +560⚠️ +480⚠️ +1000⚠️ +1000--⚠️ +400
libraries/WebServer/examples/HttpBasicAuthSHA1orBearerToken⚠️ +1000⚠️ +1000⚠️ +480⚠️ +520⚠️ +1020⚠️ +1000--⚠️ +480
libraries/WebServer/examples/Middleware⚠️ +1020--⚠️ +480⚠️ +480⚠️ +1000⚠️ +1020--⚠️ +480
libraries/WebServer/examples/MultiHomedServers⚠️ +1000⚠️ +1020⚠️ +440⚠️ +600⚠️ +1000⚠️ +1000--⚠️ +560
libraries/WebServer/examples/PathArgServer⚠️ +1020⚠️ +1020⚠️ +480⚠️ +520⚠️ +1020⚠️ +1020--⚠️ +480
libraries/WebServer/examples/SDWebServer⚠️ +1020⚠️ +1020⚠️ +480⚠️ +480⚠️ +1020⚠️ +1020--⚠️ +480
libraries/WebServer/examples/SimpleAuthentification⚠️ +1020⚠️ +1000⚠️ +520⚠️ +600⚠️ +1020⚠️ +1000--⚠️ +480
libraries/WebServer/examples/UploadHugeFile⚠️ +1020⚠️ +1020⚠️ +480⚠️ +480⚠️ +1020⚠️ +1020--⚠️ +480
libraries/WebServer/examples/WebServer⚠️ +1020⚠️ +1020⚠️ +480⚠️ +480⚠️ +1020⚠️ +1020--⚠️ +480
libraries/WebServer/examples/WebUpdate⚠️ +1000⚠️ +1020⚠️ +480⚠️ +480⚠️ +1020⚠️ +1000--⚠️ +480
libraries/WiFi/examples/FTM/FTM_Initiator⚠️ +1000⚠️ +980⚠️ +480⚠️ +560⚠️ +1000⚠️ +1000--⚠️ +520
libraries/WiFi/examples/FTM/FTM_Responder⚠️ +980⚠️ +1000⚠️ +480⚠️ +480⚠️ +1000⚠️ +980--⚠️ +520
libraries/WiFi/examples/SimpleWiFiServer⚠️ +1000⚠️ +1020⚠️ +520⚠️ +480⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WiFi/examples/WPS⚠️ +980--⚠️ +480⚠️ +440⚠️ +980⚠️ +1000--⚠️ +440
libraries/WiFi/examples/WiFiAccessPoint⚠️ +1000⚠️ +1000⚠️ +480⚠️ +400⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WiFi/examples/WiFiBlueToothSwitch⚠️ +980--⚠️ +520--⚠️ +980⚠️ +1000--⚠️ +400
libraries/WiFi/examples/WiFiClient⚠️ +1060⚠️ +1000⚠️ +520⚠️ +440⚠️ +1020⚠️ +1040--⚠️ +480
libraries/WiFi/examples/WiFiClientBasic⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +260⚠️ +280--00
libraries/WiFi/examples/WiFiClientConnect⚠️ +1000⚠️ +980⚠️ +520⚠️ +480⚠️ +1000⚠️ +980--⚠️ +520
libraries/WiFi/examples/WiFiClientEnterprise⚠️ +1000--⚠️ +400⚠️ +200⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WiFi/examples/WiFiClientEvents⚠️ +980⚠️ +1000⚠️ +400⚠️ +400⚠️ +980⚠️ +1000--⚠️ +520
libraries/WiFi/examples/WiFiClientStaticIP⚠️ +1040⚠️ +1000⚠️ +480⚠️ +480⚠️ +1020⚠️ +1040--⚠️ +480
libraries/WiFi/examples/WiFiExtender⚠️ +1020⚠️ +980⚠️ +520⚠️ +520⚠️ +1020⚠️ +1020--⚠️ +640
libraries/WiFi/examples/WiFiIPv6⚠️ +980⚠️ +980⚠️ +520⚠️ +440⚠️ +980⚠️ +980--⚠️ +480
libraries/WiFi/examples/WiFiMulti⚠️ +260⚠️ +260⚠️ +4000⚠️ +260⚠️ +260--00
libraries/WiFi/examples/WiFiMultiAdvanced⚠️ +260⚠️ +260⚠️ +40⚠️ +40⚠️ +260⚠️ +260--00
libraries/WiFi/examples/WiFiScan⚠️ +240⚠️ +240⚠️ +40⚠️ +40⚠️ +240⚠️ +240--00
libraries/WiFi/examples/WiFiScanAsync⚠️ +260⚠️ +240⚠️ +40⚠️ +40⚠️ +260⚠️ +240--00
libraries/WiFi/examples/WiFiScanDualAntenna⚠️ +240⚠️ +240⚠️ +40⚠️ +40⚠️ +240⚠️ +240--00
libraries/WiFi/examples/WiFiScanTime⚠️ +240⚠️ +260⚠️ +40⚠️ +40⚠️ +240⚠️ +240--00
libraries/WiFi/examples/WiFiSmartConfig⚠️ +980--⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WiFi/examples/WiFiTelnetToSerial⚠️ +260⚠️ +280⚠️ +40⚠️ +40⚠️ +260⚠️ +260--00
libraries/WiFi/examples/WiFiUDPClient⚠️ +1000⚠️ +980⚠️ +480⚠️ +440⚠️ +1000⚠️ +1000--⚠️ +480
libraries/WiFiProv/examples/WiFiProv⚠️ +1000--⚠️ +480⚠️ +440⚠️ +1000⚠️ +1020--⚠️ +400
libraries/Zigbee/examples/Zigbee_Gateway⚠️ +980--⚠️ +480⚠️ +440⚠️ +980----⚠️ +520
libraries/SD_MMC/examples/SDMMC_time--⚠️ +1000⚠️ +440--------⚠️ +480
libraries/ESP32/examples/Camera/CameraWebServer----⚠️ +480⚠️ +440------⚠️ +480
ESP32/examples/Camera/CameraWebServer (2)----⚠️ +560⚠️ +440------⚠️ +480
ESP32/examples/Camera/CameraWebServer (3)----⚠️ +480----------

@vlastahajek vlastahajek force-pushed the fix/wifi-scan-stealing branch from f3d3184 to 28233aa Compare September 15, 2025 18:13
@me-no-dev me-no-dev added the Status: Pending Merge Pull Request is ready to be merged label Sep 16, 2025
@me-no-dev me-no-dev merged commit 9ab0473 into espressif:master Sep 16, 2025
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Merge Pull Request is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants