qcacld-3.0: use QDF API for mem allocation

Replace usage of k[mz]alloc()/kfree() with qdf_mem_malloc()/
qdf_mem_free(). The API qdf_mem_malloc() calls kzalloc() with proper
allocation flags depending on the context.

QDF module has debugging capabilities like detect memory leak, list
allocation..etc.

Change-Id: I6655bc54675b5bdc0a8ce17753a08205e711d806
CRs-Fixed: 1085826
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 1aa8a4e..921bf93 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -11204,7 +11204,7 @@
 		return NULL;
 
 	cfg_param = pHddCtx->config;
-	mgmt = kzalloc((sizeof(struct ieee80211_mgmt) + ie_length), GFP_KERNEL);
+	mgmt = qdf_mem_malloc((sizeof(struct ieee80211_mgmt) + ie_length));
 	if (!mgmt) {
 		hdd_err("memory allocation failed");
 		return NULL;
@@ -11269,7 +11269,7 @@
 						       NL80211_BAND_5GHZ);
 	} else {
 		hdd_err("Invalid chan_no %d", chan_no);
-		kfree(mgmt);
+		qdf_mem_free(mgmt);
 		return NULL;
 	}
 
@@ -11298,7 +11298,7 @@
 	if (chan == NULL) {
 		hdd_err("chan pointer is NULL, chan_no: %d freq: %d",
 			chan_no, freq);
-		kfree(mgmt);
+		qdf_mem_free(mgmt);
 		return NULL;
 	}
 
@@ -11321,7 +11321,7 @@
 		cfg80211_inform_bss_frame(wiphy, chan, mgmt, frame_len, rssi,
 					  GFP_KERNEL);
 	pHddCtx->beacon_probe_rsp_cnt_per_scan++;
-	kfree(mgmt);
+	qdf_mem_free(mgmt);
 	return bss_status;
 }