prima: FTM: During unload, don't do LIM de-initialization
Presently, LIM de-initialization is happening during FTM unload
though LIM is not initialized during FTM load.
In FTM mode, during driver unload don't de-initialize LIM module.
Change-Id: Icd2ce2681587f92e5d8311f2f69c79dc4127be9a
CRs-Fixed: 1094268
diff --git a/CORE/SYS/legacy/src/system/src/macInitApi.c b/CORE/SYS/legacy/src/system/src/macInitApi.c
index ced0a48..60a1678 100644
--- a/CORE/SYS/legacy/src/system/src/macInitApi.c
+++ b/CORE/SYS/legacy/src/system/src/macInitApi.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -154,7 +154,11 @@
{
tANI_U8 i;
tpAniSirGlobal pMac = (tpAniSirGlobal) hHal;
- peStop(pMac);
+
+ //In FTM mode, peStart is not called during driver load.
+ if (pMac->gDriverType != eDRIVER_TYPE_MFG)
+ peStop(pMac);
+
cfgCleanup( pMac );
// need to free memory if not called in reset context.
// in reset context this memory will be freed by HDD.