Merge branch 'contrib/github_pr_8779_v4.1' into 'release/v4.1'

esp_wifi: fix clearing default wifi netif procedure(v4.1)

See merge request espressif/esp-idf!17941
This commit is contained in:
Jiang Jiang Jian 2022-04-28 16:17:02 +08:00
commit 7e0a023c7e

View File

@ -232,6 +232,8 @@ esp_err_t esp_wifi_clear_default_wifi_driver_and_handlers(void *esp_netif)
if (s_wifi_netifs[i] == esp_netif) {
s_wifi_netifs[i] = NULL;
}
}
for (i = 0; i< MAX_WIFI_IFS; ++i) {
// check if all netifs are cleared to delete default handlers
if (s_wifi_netifs[i] != NULL) {
break;