mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
fix(esp_wifi): Stops roaming app upon application initiated disconnect
Stops roaming app when the application initiates a disconnect. Roaming app if enabled will be restarted when the station reconnects again.
This commit is contained in:
@@ -427,9 +427,6 @@ void esp_supplicant_common_deinit(void)
|
||||
}
|
||||
s_supplicant_task_init_done = false;
|
||||
#endif /* CONFIG_SUPPLICANT_TASK */
|
||||
#if CONFIG_ESP_WIFI_ENABLE_ROAMING_APP
|
||||
deinit_roaming_app();
|
||||
#endif
|
||||
#endif /* defined(CONFIG_IEEE80211KV) || defined(CONFIG_IEEE80211R) */
|
||||
}
|
||||
|
||||
|
@@ -481,6 +481,7 @@ int esp_supplicant_init(void)
|
||||
#ifdef CONFIG_OWE_STA
|
||||
esp_wifi_register_owe_cb(wpa_cb);
|
||||
#endif /* CONFIG_OWE_STA */
|
||||
|
||||
eloop_init();
|
||||
ret = esp_supplicant_common_init(wpa_cb);
|
||||
|
||||
@@ -494,10 +495,6 @@ int esp_supplicant_init(void)
|
||||
ret = esp_wifi_internal_wapi_init();
|
||||
#endif
|
||||
|
||||
#if CONFIG_ESP_WIFI_ENABLE_ROAMING_APP
|
||||
init_roaming_app();
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user