qcacmn: Add support to get hal_soc handle via CDP

Enhance CDP interface to get hal_soc handle.

Change-Id: I83fbb9d12487668603c90a621ecb9851860b3a56
CRs-Fixed: 3505717
This commit is contained in:
Rakesh Pillai
2023-05-21 02:01:12 -07:00
committed by Rahul Choudhary
parent b361da4fea
commit aac2d20277
2 changed files with 7 additions and 0 deletions

View File

@@ -1448,6 +1448,7 @@ enum cdp_pdev_param_type {
* @cdp_drop_tx_mcast: Enable/Disable tx mcast drop
* @cdp_vdev_tx_to_fw: Set to_fw bit for all tx packets for the vdev
* @cdp_peer_metadata_ver: DP rx peer metadata version configuration
* @hal_soc_hdl: DP HAL soc handle
*/
typedef union cdp_config_param_t {
/* peer params */
@@ -1539,6 +1540,7 @@ typedef union cdp_config_param_t {
bool cdp_drop_tx_mcast;
bool cdp_vdev_tx_to_fw;
uint8_t cdp_peer_metadata_ver;
void *hal_soc_hdl;
} cdp_config_param_type;
/**
@@ -1695,6 +1697,7 @@ enum cdp_vdev_param_type {
* @CDP_SAWF_STATS: set SAWF stats config
* @CDP_UMAC_RESET_STATS: UMAC reset stats
* @CDP_CFG_RX_PEER_METADATA_VER: RX peer metadata configuration
* @CDP_TXRX_HAL_SOC_HDL: HAL soc handle
*/
enum cdp_psoc_param_type {
CDP_ENABLE_RATE_STATS,
@@ -1708,6 +1711,7 @@ enum cdp_psoc_param_type {
CDP_SAWF_STATS,
CDP_UMAC_RESET_STATS,
CDP_CFG_RX_PEER_METADATA_VER,
CDP_TXRX_HAL_SOC_HDL,
};
#ifdef CONFIG_AP_PLATFORM

View File

@@ -7750,6 +7750,9 @@ dp_set_psoc_param(struct cdp_soc_t *cdp_soc,
dp_rx_peer_metadata_ver_update(
soc, val.cdp_peer_metadata_ver);
break;
case CDP_TXRX_HAL_SOC_HDL:
val.hal_soc_hdl = soc->hal_soc;
break;
default:
break;
}