You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wifi_sta_list_t struct has been extended recently and just to be sure no member is left in an undefined state, we should zero the entire struct before use.
The array of wifi_sta_info_t objects internally is filled via some get function from IDF, but I can't see if all are always filled.
wifi_sta_list_t is being used multiple times in AP.cpp, for example here:
this is not necessary here, because we are giving the struct to IDF to fill and not read from it. Zeroing is necessary only when data will be read in IDF. Like configs and such
Board
Any
Device Description
Hardware Configuration
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Windows 11
Flash frequency
Any
PSRAM enabled
yes
Upload speed
115200
Description
As a follow-up of #10281 and as discussed with @me-no-dev
The
wifi_sta_list_t
struct has been extended recently and just to be sure no member is left in an undefined state, we should zero the entire struct before use.The array of
wifi_sta_info_t
objects internally is filled via some get function from IDF, but I can't see if all are always filled.wifi_sta_list_t
is being used multiple times inAP.cpp
, for example here:arduino-esp32/libraries/WiFi/src/AP.cpp
Line 136 in e70f4d3
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: