wlan: Do passive to active channel conversion based on ini parameter

Based on ini parameter, gActivePassiveChCon,value convert active to
passive channel conversion. By default this parameter is set to 1,
so that active to passive conversion is enabled by default.

Change-Id: I9cf6d6869796c1593e669f0fdbdb63bd011b9d3e
CRs-Fixed: 916151
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c
index f4bed14..ee1f6b0 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.c
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.c
@@ -677,7 +677,8 @@
         goto err_timer;
     }
 
-    if (eSIR_SUCCESS == wlan_cfgGetInt(pMac, WNI_CFG_ACTIVE_PASSIVE_CON,
+    cfgValue = WNI_CFG_ACTIVE_PASSIVE_CON_MAX;
+    if (eSIR_SUCCESS != wlan_cfgGetInt(pMac, WNI_CFG_ACTIVE_PASSIVE_CON,
                                       &cfgValue))
     {
         limLog(pMac, LOGP,