浏览代码

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
gaurank kathpalia 5 年之前
父节点
当前提交
de7a3a2954
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/hdd/src/wlan_hdd_wext.c

+ 1 - 1
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 */