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
This commit is contained in:
Yu Wang 2018-03-29 18:40:55 +08:00 • committed by nshrivas
commit 2741c7afbf

View file

@ -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;