summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArunk Khandavalli <akhandav@codeaurora.org>2017-03-09 21:02:21 +0530
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-10 15:28:18 -0800
commitc023e14659b224f8c0afbb1fa160d84ce78723e4 (patch)
tree1703d96945ef4852b9a2bfa14d574e1a560d3d83
parent428a533fcd1dfff427634b8db3ff31e3d2de1e1c (diff)
qcacld-3.0: Set the driver_type in the mac during the mac_open
Presently during the mac open the globalmac context is memset to zero and the based on the driver_type pe sessions will be created. During the switch from the FTM to mission mode, pe checks the driver mode from the mac context and tries to access the invalid lim sessions which are not created for FTM mode. To mitigate the issue set the driver_type in the mac context during mac_open CRs-Fixed: 2017035 Change-Id: Iddefd2f74afb71197c3830a51f107d86736745f1
-rw-r--r--core/mac/src/sys/legacy/src/system/src/mac_init_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/mac/src/sys/legacy/src/system/src/mac_init_api.c b/core/mac/src/sys/legacy/src/system/src/mac_init_api.c
index 9fd4a2a6771f..b0231c193055 100644
--- a/core/mac/src/sys/legacy/src/system/src/mac_init_api.c
+++ b/core/mac/src/sys/legacy/src/system/src/mac_init_api.c
@@ -123,6 +123,12 @@ tSirRetStatus mac_open(tHalHandle *pHalHandle, tHddHandle hHdd,
*pHalHandle = (tHalHandle) p_mac;
{
+ /*
+ * For Non-FTM cases this value will be reset during mac_start
+ */
+ if (cds_cfg->driver_type)
+ p_mac->gDriverType = eDRIVER_TYPE_MFG;
+
/* Call various PE (and other layer init here) */
if (eSIR_SUCCESS != log_init(p_mac)) {
qdf_mem_free(p_mac);