mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcacld-3.0: Fix memory leak during SAP restart
qcacld-2.0 to qcacld-3.0 propagation IE buffers for probe resp, assoc resp and beacon should be freed when 1)SAP starting fails; 2)SAP starting success event is signaled Change-Id: Ic9cc1c8d58667f34fbc877aeca4405b0156b1264 CRs-Fixed: 1071990
This commit is contained in:
parent
ca631617f1
commit
f2e86b2814
1 changed files with 4 additions and 0 deletions
|
|
@ -7639,6 +7639,8 @@ void cds_restart_sap(hdd_adapter_t *ap_adapter)
|
|||
sap_config,
|
||||
ap_adapter->dev) != QDF_STATUS_SUCCESS) {
|
||||
cds_err("SAP Start Bss fail");
|
||||
wlansap_reset_sap_config_add_ie(sap_config,
|
||||
eUPDATE_IE_ALL);
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
|
@ -7646,6 +7648,8 @@ void cds_restart_sap(hdd_adapter_t *ap_adapter)
|
|||
qdf_status =
|
||||
qdf_wait_single_event(&hostapd_state->qdf_event,
|
||||
BSS_WAIT_TIMEOUT);
|
||||
wlansap_reset_sap_config_add_ie(sap_config,
|
||||
eUPDATE_IE_ALL);
|
||||
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
||||
cds_err("SAP Start failed");
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Reference in a new issue