qcacld-3.0: Add QDF mem API's
Replace CDF mem API's with QDF mem API's
Change-Id: Icf247b4dc5b26f4b960dcb98e323b096c1d6076c
CRs-Fixed: 981188
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 5404b33..a39a5dc 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -298,7 +298,7 @@
++pAdapter->stats.tx_packets;
/* Zero out skb's context buffer for the driver to use */
- cdf_mem_set(skb->cb, sizeof(skb->cb), 0);
+ qdf_mem_set(skb->cb, sizeof(skb->cb), 0);
NBUF_CB_TX_PACKET_TRACK(skb) = NBUF_TX_PKT_DATA_TRACK;
NBUF_UPDATE_TX_PKT_COUNT(skb, NBUF_TX_PKT_HDD);
@@ -400,12 +400,12 @@
uint8_t STAId = 0;
- cdf_mem_zero(&pAdapter->stats, sizeof(struct net_device_stats));
+ qdf_mem_zero(&pAdapter->stats, sizeof(struct net_device_stats));
spin_lock_init(&pAdapter->staInfo_lock);
for (STAId = 0; STAId < WLAN_MAX_STA_COUNT; STAId++) {
- cdf_mem_zero(&pAdapter->aStaInfo[STAId],
+ qdf_mem_zero(&pAdapter->aStaInfo[STAId],
sizeof(hdd_station_info_t));
}
@@ -446,7 +446,7 @@
return QDF_STATUS_E_FAILURE;
}
- cdf_mem_zero(&pAdapter->aStaInfo[STAId], sizeof(hdd_station_info_t));
+ qdf_mem_zero(&pAdapter->aStaInfo[STAId], sizeof(hdd_station_info_t));
pAdapter->aStaInfo[STAId].isUsed = true;
pAdapter->aStaInfo[STAId].isDeauthInProgress = false;
@@ -633,7 +633,7 @@
if (pAdapter->aStaInfo[staId].isUsed) {
spin_lock_bh(&pAdapter->staInfo_lock);
- cdf_mem_zero(&pAdapter->aStaInfo[staId],
+ qdf_mem_zero(&pAdapter->aStaInfo[staId],
sizeof(hdd_station_info_t));
spin_unlock_bh(&pAdapter->staInfo_lock);
}
@@ -907,7 +907,7 @@
uint8_t i;
for (i = 0; i < WLAN_MAX_STA_COUNT; i++) {
- if (cdf_mem_compare
+ if (!qdf_mem_cmp
(&pAdapter->aStaInfo[i].macAddrSTA, pMacAddress,
QDF_MAC_ADDR_SIZE) && pAdapter->aStaInfo[i].isUsed) {
*staId = i;