Browse Source

qcacld-3.0: Hold PM lock during P2P connection in progress

Even though host already disabled BMPS during P2P connection in
progress, the PM lock in FW side still held and released again and
again. Which takes long time during P2P connection. Per suggestion
from FW team , set pdev parameter with id -
WMI_PDEV_PARAM_POWER_COLLAPSE_ENABLE,
  value 0 - hold lock
  value 1 - release lock

This change also fixed some kernel-doc error.

Change-Id: Iba130477595ca8952c5fe0c5ce7ad60b737e4c43
CRs-Fixed: 3331991
Wu Gao 2 years ago
parent
commit
69d71759f0
1 changed files with 5 additions and 10 deletions
  1. 5 10
      core/hdd/src/wlan_hdd_ioctl.c

+ 5 - 10
core/hdd/src/wlan_hdd_ioctl.c

@@ -4538,16 +4538,11 @@ static int drv_cmd_miracast(struct hdd_adapter *adapter,
 	case MIRACAST_CONN_OPT_ENABLED:
 	case MIRACAST_CONN_OPT_DISABLED:
 		{
-			bool is_imps_enabled = true;
-
-			ucfg_mlme_is_imps_enabled(hdd_ctx->psoc,
-						  &is_imps_enabled);
-			if (!is_imps_enabled)
-				return 0;
-			hdd_set_idle_ps_config(
-				hdd_ctx,
-				filter_type ==
-				MIRACAST_CONN_OPT_ENABLED ? false : true);
+			wma_cli_set_command(
+				adapter->vdev_id,
+				WMI_PDEV_PARAM_POWER_COLLAPSE_ENABLE,
+				(filter_type == MIRACAST_CONN_OPT_ENABLED ?
+				 0 : 1), PDEV_CMD);
 			return 0;
 		}
 	default: