Browse Source

qcacld-3.0: disable mailbox swap for FTM mode

It shouldn't swap mailbox in FTM mode,
or WMI commands will be stuck.

Change-Id: I5d3760100f3c8e1d2c3bfbe88fd5a84deb0bc1ff
CRs-Fixed: 2208876
Yu Wang 7 years ago
parent
commit
2741c7afbf
1 changed files with 6 additions and 3 deletions
  1. 6 3
      core/bmi/src/ol_fw_common.c

+ 6 - 3
core/bmi/src/ol_fw_common.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -164,8 +164,11 @@ QDF_STATUS ol_sdio_extra_initialization(struct ol_context *ol_ctx)
 		goto exit;
 	}
 
-	param |= (HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET |
-		HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE);
+	param |= HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE;
+
+	/* disable swap mailbox for FTM */
+	if (cds_get_conparam() != QDF_GLOBAL_FTM_MODE)
+		param |= HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET;
 
 	if (!cds_is_ptp_tx_opt_enabled())
 		param |= HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET;