mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_softap_mode_wpa_memory_leak_issue_v4.2' into 'release/v4.2'
bugfix: fix softap mode wpa memory leak (backport v4.2) See merge request espressif/esp-idf!9845
This commit is contained in:
commit
33dab9d165
@ -88,7 +88,7 @@ void *hostap_init(void)
|
|||||||
esp_wifi_get_macaddr_internal(WIFI_IF_AP, mac);
|
esp_wifi_get_macaddr_internal(WIFI_IF_AP, mac);
|
||||||
|
|
||||||
hapd->wpa_auth = wpa_init(mac, auth_conf, NULL);
|
hapd->wpa_auth = wpa_init(mac, auth_conf, NULL);
|
||||||
esp_wifi_set_appie_internal(WIFI_APPIE_WPA, hapd->wpa_auth->wpa_ie, (uint16_t)hapd->wpa_auth->wpa_ie_len, 0); //michael ML
|
esp_wifi_set_appie_internal(WIFI_APPIE_WPA, hapd->wpa_auth->wpa_ie, (uint16_t)hapd->wpa_auth->wpa_ie_len, 0);
|
||||||
os_free(auth_conf);
|
os_free(auth_conf);
|
||||||
|
|
||||||
return (void *)hapd;
|
return (void *)hapd;
|
||||||
@ -130,5 +130,7 @@ bool hostap_deinit(void *data)
|
|||||||
os_free(hapd);
|
os_free(hapd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
esp_wifi_unset_appie_internal(WIFI_APPIE_WPA);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user