mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Fix mem leak issue
Fix mem leak issue in power save config path to FW. Change-Id: I1ee8961774047f094406222170092e45965b6372 CRs-Fixed: 2615206
This commit is contained in:
parent
1025ad8b41
commit
02743447bd
1 changed files with 4 additions and 0 deletions
|
|
@ -165,6 +165,8 @@ sme_ps_enable_ps_req_params(struct mac_context *mac_ctx, uint32_t vdev_id)
|
|||
|
||||
wma_enable_sta_ps_mode(enable_ps_req_params);
|
||||
|
||||
qdf_mem_free(enable_ps_req_params);
|
||||
|
||||
sme_debug("Powersave Enable sent to FW");
|
||||
ps_param->ps_state = ps_state;
|
||||
|
||||
|
|
@ -191,6 +193,8 @@ static QDF_STATUS sme_ps_disable_ps_req_params(struct mac_context *mac_ctx,
|
|||
disable_ps_req_params->sessionid = vdev_id;
|
||||
|
||||
wma_disable_sta_ps_mode(disable_ps_req_params);
|
||||
qdf_mem_free(disable_ps_req_params);
|
||||
|
||||
sme_debug("Powersave disable sent to FW");
|
||||
sme_set_ps_state(mac_ctx, vdev_id, FULL_POWER_MODE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue