qcacld-3.0: Handle void pointer declarations for pdev and vdev
Replace void pointer handles for pdev and vdev
with abstract structure handles
Change-Id: Idd9a2521249e30faf1143f671c4d2d924fe231e8
CRs-Fixed: 1109835
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 3816c6f..a36504c 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -45,6 +45,7 @@
#include <cdp_txrx_peer_ops.h>
#include <cds_utils.h>
#include <cdp_txrx_flow_ctrl_v2.h>
+#include <cdp_txrx_handle.h>
#ifdef IPA_OFFLOAD
#include <wlan_hdd_ipa.h>
@@ -741,7 +742,8 @@
* station to this station.
*/
qdf_status = cdp_clear_peer(cds_get_context(QDF_MODULE_ID_SOC),
- cds_get_context(QDF_MODULE_ID_TXRX), staId);
+ (struct cdp_pdev *)cds_get_context(QDF_MODULE_ID_TXRX),
+ staId);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
hdd_err("cdp_clear_peer failed for staID %d, Status=%d [0x%08X]",
staId, qdf_status, qdf_status);
@@ -814,13 +816,16 @@
qdf_mem_zero(&txrx_ops, sizeof(txrx_ops));
txrx_ops.rx.rx = hdd_softap_rx_packet_cbk;
cdp_vdev_register(soc,
- cdp_get_vdev_from_vdev_id(soc, pdev, pAdapter->sessionId),
- pAdapter, &txrx_ops);
- pAdapter->txrx_vdev = cdp_get_vdev_from_vdev_id(soc, pdev,
+ (struct cdp_vdev *)cdp_get_vdev_from_vdev_id(soc,
+ (struct cdp_pdev *)pdev, pAdapter->sessionId),
+ pAdapter, &txrx_ops);
+ pAdapter->txrx_vdev = (void *)cdp_get_vdev_from_vdev_id(soc,
+ (struct cdp_pdev *)pdev,
pAdapter->sessionId);
pAdapter->tx_fn = txrx_ops.tx.tx;
- qdf_status = cdp_peer_register(soc, pdev, &staDesc);
+ qdf_status = cdp_peer_register(soc,
+ (struct cdp_pdev *)pdev, &staDesc);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
hdd_err("cdp_peer_register() failed to register. Status = %d [0x%08X]",
qdf_status, qdf_status);