wlan: Fix Crash in csrProcessScanCommand
While moving smeConfig to heap from stack
in hdd_set_sme_config memzero passed with
wrong arguments (passed pointer instead of
primitive type) which lead to remain
garbage into the fscantwice ini value.
Change-Id: I6b8f536f37f92519a2a7e036d18d1ba77cfea774
CRs-Fixed: 716656
diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c
index a64b83e..6f5f576 100644
--- a/CORE/HDD/src/wlan_hdd_cfg.c
+++ b/CORE/HDD/src/wlan_hdd_cfg.c
@@ -5070,7 +5070,7 @@
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, "%s smeConfig allocation failed",__func__);
return eHAL_STATUS_FAILED_ALLOC;
}
- vos_mem_zero( smeConfig, sizeof( smeConfig ) );
+ vos_mem_zero( smeConfig, sizeof( tSmeConfigParams ) );
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
"%s bWmmIsEnabled=%d 802_11e_enabled=%d dot11Mode=%d", __func__,