mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Fix PS enable/disable command cache issue
Currently the driver caches the command which comes for PS enable/disable and if the user disables the command the API sme_ps_enable_disable cannot go forward to enable/disable the command because of the check for last user command cache to be disabled or not. Fix is to cache the command after the disable has been sent to FW to avoid the scenario where the command is not sent by host as the check to send the command failed. Change-Id: Ibff459fa03aceaf6963735d22d30c54a488751f4 CRs-Fixed: 2582410
This commit is contained in:
parent
d126dfa3df
commit
de7a3a2954
1 changed files with 1 additions and 1 deletions
|
|
@ -4298,9 +4298,9 @@ static int hdd_we_set_power(struct hdd_adapter *adapter, int value)
|
|||
return 0;
|
||||
case 2:
|
||||
/* Disable PowerSave */
|
||||
sme_save_usr_ps_cfg(mac_handle, false);
|
||||
sme_ps_enable_disable(mac_handle, adapter->vdev_id,
|
||||
SME_PS_DISABLE);
|
||||
sme_save_usr_ps_cfg(mac_handle, false);
|
||||
return 0;
|
||||
case 3:
|
||||
/* Enable UASPD */
|
||||
|
|
|
|||
Loading…
Reference in a new issue