wlan: Fix incorrect memory allocation for BSSID
The sizeof(VOS_MAC_ADDR_SIZE) used to allocate bssid memory is incorrect.
We should be using just VOS_MAC_ADDR_SIZE.
Change-Id: I0c97d3d4a153c1985083187ca051fad7cf5f09b9
CRs-Fixed: 811790
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index b31b7d2..6878fca 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -12362,7 +12362,7 @@
"%s:ccmCfgStInt faild for WNI_CFG_IBSS_AUTO_BSSID", __func__);
return -EIO;
}
- params->bssid = vos_mem_malloc(sizeof(VOS_MAC_ADDR_SIZE));
+ params->bssid = vos_mem_malloc(VOS_MAC_ADDR_SIZE);
if (!params->bssid)
{
hddLog (VOS_TRACE_LEVEL_ERROR,