qcacmn: Introduce HAL API to get phy ppdu id size

Introduce HAL API to get phy ppdu id size.

Change-Id: I125eb344787060336919fb361af032fddeb34526
CRs-Fixed: 3454206
This commit is contained in:
Srinivas Girigowda
2023-04-03 16:27:01 -07:00
committed by Madan Koyyalamudi
parent 9c855c06e2
commit 980d883f07
6 changed files with 33 additions and 1 deletions

View File

@@ -510,6 +510,7 @@ static QDF_STATUS dp_vdev_set_monitor_mode(struct cdp_soc_t *dp_soc,
} }
mon_pdev->monitor_configured = true; mon_pdev->monitor_configured = true;
mon_pdev->phy_ppdu_id_size = hal_rx_get_phy_ppdu_id_size(soc->hal_soc);
/* If advance monitor filter is applied using lite_mon /* If advance monitor filter is applied using lite_mon
* via vap configuration, required filters are already applied * via vap configuration, required filters are already applied

View File

@@ -1076,7 +1076,7 @@ struct dp_mon_pdev {
/* Flag to hold on to monitor destination ring */ /* Flag to hold on to monitor destination ring */
bool hold_mon_dest_ring; bool hold_mon_dest_ring;
/* Flag to inidicate monitor rings are initialized */ /* Flag to indicate monitor rings are initialized */
uint8_t pdev_mon_init; uint8_t pdev_mon_init;
#ifndef REMOVE_PKT_LOG #ifndef REMOVE_PKT_LOG
bool pkt_log_init; bool pkt_log_init;
@@ -1209,6 +1209,7 @@ struct dp_mon_pdev {
bool rssi_dbm_conv_support; bool rssi_dbm_conv_support;
struct dp_rx_mon_rssi_offset rssi_offsets; struct dp_rx_mon_rssi_offset rssi_offsets;
uint8_t phy_ppdu_id_size;
}; };
struct dp_mon_vdev { struct dp_mon_vdev {

View File

@@ -924,6 +924,11 @@ hal_reset_rx_reo_tid_q_be(struct hal_soc *hal_soc, void *hw_qdesc_vaddr,
} }
#endif #endif
static inline uint8_t hal_rx_get_phy_ppdu_id_size_be(void)
{
return sizeof(uint64_t);
}
void hal_hw_txrx_default_ops_attach_be(struct hal_soc *hal_soc) void hal_hw_txrx_default_ops_attach_be(struct hal_soc *hal_soc)
{ {
hal_soc->ops->hal_get_reo_qdesc_size = hal_get_reo_qdesc_size_be; hal_soc->ops->hal_get_reo_qdesc_size = hal_get_reo_qdesc_size_be;
@@ -986,4 +991,6 @@ void hal_hw_txrx_default_ops_attach_be(struct hal_soc *hal_soc)
hal_get_reo_ent_desc_qdesc_addr_be; hal_get_reo_ent_desc_qdesc_addr_be;
hal_soc->ops->hal_rx_en_mcast_fp_data_filter = hal_soc->ops->hal_rx_en_mcast_fp_data_filter =
hal_rx_en_mcast_fp_data_filter_generic_be; hal_rx_en_mcast_fp_data_filter_generic_be;
hal_soc->ops->hal_rx_get_phy_ppdu_id_size =
hal_rx_get_phy_ppdu_id_size_be;
} }

View File

@@ -1376,6 +1376,7 @@ struct hal_hw_txrx_ops {
uint8_t *(*hal_get_reo_ent_desc_qdesc_addr)(uint8_t *desc); uint8_t *(*hal_get_reo_ent_desc_qdesc_addr)(uint8_t *desc);
uint64_t (*hal_rx_get_qdesc_addr)(uint8_t *dst_ring_desc, uint64_t (*hal_rx_get_qdesc_addr)(uint8_t *dst_ring_desc,
uint8_t *buf); uint8_t *buf);
uint8_t (*hal_rx_get_phy_ppdu_id_size)(void);
void (*hal_set_reo_ent_desc_reo_dest_ind)(uint8_t *desc, void (*hal_set_reo_ent_desc_reo_dest_ind)(uint8_t *desc,
uint32_t dst_ind); uint32_t dst_ind);
QDF_STATUS QDF_STATUS

View File

@@ -3140,4 +3140,19 @@ bool hal_rx_en_mcast_fp_data_filter(hal_soc_handle_t hal_soc_hdl)
return hal_soc->ops->hal_rx_en_mcast_fp_data_filter(); return hal_soc->ops->hal_rx_en_mcast_fp_data_filter();
} }
/**
* hal_rx_get_phy_ppdu_id_size() - Get phy ppdu id size
* @hal_soc_hdl: HAL soc handle
*
* Return: phy ppdu id size
*/
static inline uint8_t
hal_rx_get_phy_ppdu_id_size(hal_soc_handle_t hal_soc_hdl)
{
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
return hal_soc->ops->hal_rx_get_phy_ppdu_id_size();
}
#endif /* _HAL_RX_H */ #endif /* _HAL_RX_H */

View File

@@ -1159,6 +1159,11 @@ static uint8_t hal_get_idle_link_bm_id_li(uint8_t chip_id)
return WBM_IDLE_DESC_LIST; return WBM_IDLE_DESC_LIST;
} }
static inline uint8_t hal_rx_get_phy_ppdu_id_size_li(void)
{
return sizeof(uint32_t);
}
void hal_hw_txrx_default_ops_attach_li(struct hal_soc *hal_soc) void hal_hw_txrx_default_ops_attach_li(struct hal_soc *hal_soc)
{ {
hal_soc->ops->hal_get_reo_qdesc_size = hal_get_reo_qdesc_size_li; hal_soc->ops->hal_get_reo_qdesc_size = hal_get_reo_qdesc_size_li;
@@ -1251,4 +1256,6 @@ void hal_hw_txrx_default_ops_attach_li(struct hal_soc *hal_soc)
hal_soc->ops->hal_set_reo_ent_desc_reo_dest_ind = hal_soc->ops->hal_set_reo_ent_desc_reo_dest_ind =
hal_set_reo_ent_desc_reo_dest_ind_li; hal_set_reo_ent_desc_reo_dest_ind_li;
hal_soc->ops->hal_get_idle_link_bm_id = hal_get_idle_link_bm_id_li; hal_soc->ops->hal_get_idle_link_bm_id = hal_get_idle_link_bm_id_li;
hal_soc->ops->hal_rx_get_phy_ppdu_id_size =
hal_rx_get_phy_ppdu_id_size_li;
} }