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
ESP32 Wifi driver call NULL callback after done scanning on STA interface and Enable CONFIG_ESP32_WIFI_AP_STA_MODE.
The issue happened in function: scan_done_handler(void) in esp_wifi_drv.c
This functions used the callback stored in its private data instead of the correct callback passed from struct device from upper layer.
out:
/* report end of scan event */
esp32_data.scan_cb(esp32_wifi_iface, 0, NULL);
esp32_data.scan_cb = NULL;
To Reproduce
This is my example code, if changing to interface from net_if_get_wifi_sap(), this issue won't happen
Describe the bug
ESP32 Wifi driver call NULL callback after done scanning on STA interface and Enable CONFIG_ESP32_WIFI_AP_STA_MODE.
The issue happened in function:
scan_done_handler(void)
in esp_wifi_drv.cThis functions used the callback stored in its private data instead of the correct callback passed from
struct device
from upper layer.To Reproduce
This is my example code, if changing to interface from net_if_get_wifi_sap(), this issue won't happen
Expected behavior
Code runs without error
Impact
Logs and console output
This is the log output when it tries to call NULL callback
Environment (please complete the following information):
Latest commit on main
ESP32C6 dev kit
Additional context
The text was updated successfully, but these errors were encountered: