From 7bce1f03329e366e56eb0c0e195b018d5e93ec6d Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Mon, 24 Jun 2019 15:06:41 +0530 Subject: [PATCH] qcacmn: Add ol soc context Add the soc context for ol_txrx, The soc layer is used to hold the ol_pdev context. CRs-Fixed: 2539807 Change-Id: I751ad61de55db9d86624b8b5e18b0981ffb0338d --- dp/inc/cdp_txrx_cmn_struct.h | 1 + dp/wifi3.0/dp_internal.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/dp/inc/cdp_txrx_cmn_struct.h b/dp/inc/cdp_txrx_cmn_struct.h index 8050ba9f13..885b2a4dcf 100644 --- a/dp/inc/cdp_txrx_cmn_struct.h +++ b/dp/inc/cdp_txrx_cmn_struct.h @@ -56,6 +56,7 @@ #define CDP_BA_64_BIT_MAP_SIZE_DWORDS 2 #define CDP_RSSI_CHAIN_LEN 8 +#define OL_TXRX_INVALID_PDEV_ID 0xff #define OL_TXRX_INVALID_LOCAL_PEER_ID 0xffff #define CDP_INVALID_VDEV_ID 0xff /* Options for Dump Statistics */ diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index 6900c26d7e..14e0120c6a 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -1417,6 +1417,19 @@ struct cdp_soc_t *dp_soc_to_cdp_soc_t(struct dp_soc *psoc) return (struct cdp_soc_t *)psoc; } +/** + * cdp_soc_t_to_dp_soc() - typecast cdp_soc_t to + * dp soc handle + * @psoc: CDP psoc handle + * + * Return: struct dp_soc pointer + */ +static inline +struct dp_soc *cdp_soc_t_to_dp_soc(struct cdp_soc_t *psoc) +{ + return (struct dp_soc *)psoc; +} + #ifdef WLAN_SUPPORT_RX_FLOW_TAG /** * dp_rx_flow_update_fse_stats() - Update a flow's statistics