commit | 690f65dbd9a0ac90ae7f4c2a39043fe2652be9f0 | [log] [tgz] |
---|---|---|
author | Sylvio Alves <sylvio.alves@espressif.com> | Thu Feb 02 08:14:00 2023 -0300 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Mon Mar 06 16:44:45 2023 +0100 |
tree | 2376027b2e8472819fe13a7be5a8099021618be9 | |
parent | 534b7ec78d6d044eab5ea3d587e39ce93010af1c [diff] |
drivers: wifi: esp32: fix possible interface null pointer esp32_wifi_dev_init() currently starts Wi-Fi stack before the interface is properly configured, which happens in function esp32_wifi_init(). This can trigger a ESP32_WIFI_EVENT_STA_START event before interface initialization, causing a crash. Moving esp_wifi_start() to esp32_wifi_init() will guarantee that this won't happen. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>