From de7a3a2954dc715940a9f790e08e9a322bb16698 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Mon, 9 Dec 2019 13:21:45 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 09021937e8d8..0ba282c8a667 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -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 */