qcacmn: Use msdu_done_copy bit for Waikiki

Use msdu_done_copy bit for Waikiki instead of msdu_done
bit, as access to the latter involves reading of an entire
new word, of which no other parameters are accessed.

Change-Id: I09017e53faff73aef484241f1972fe8c75585eb0
CRs-Fixed: 3132624
This commit is contained in:
Pavankumar Nandeshwar
2022-02-16 22:29:53 -08:00
committed by Madan Koyyalamudi
parent 6d8cb5bed5
commit 5f9a27027d
2 changed files with 15 additions and 1 deletions

View File

@@ -1711,6 +1711,16 @@ uint32_t hal_tx_get_num_ppe_vp_tbl_entries_9224(hal_soc_handle_t hal_soc_hdl)
return HAL_PPE_VP_ENTRIES_MAX;
}
/**
* hal_rx_tlv_msdu_done_copy_get_9224() - Get msdu done copy bit from rx_tlv
*
* Returns: msdu done copy bit
*/
static inline uint32_t hal_rx_tlv_msdu_done_copy_get_9224(uint8_t *buf)
{
return HAL_RX_TLV_MSDU_DONE_COPY_GET(buf);
}
static void hal_hw_txrx_ops_attach_qcn9224(struct hal_soc *hal_soc)
{
/* init and setup */
@@ -1900,7 +1910,8 @@ static void hal_hw_txrx_ops_attach_qcn9224(struct hal_soc *hal_soc)
#endif
hal_soc->ops->hal_rx_tlv_phy_ppdu_id_get =
hal_rx_attn_phy_ppdu_id_get_be;
hal_soc->ops->hal_rx_tlv_msdu_done_get = hal_rx_tlv_msdu_done_get_be;
hal_soc->ops->hal_rx_tlv_msdu_done_get =
hal_rx_tlv_msdu_done_copy_get_9224;
hal_soc->ops->hal_rx_tlv_msdu_len_get =
hal_rx_msdu_start_msdu_len_get_be;
hal_soc->ops->hal_rx_get_frame_ctrl_field =

View File

@@ -88,6 +88,9 @@
_OFFSET_TO_BYTE_PTR(msdu_details_ptr, \
RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_RESERVED_0A_OFFSET))
#define HAL_RX_TLV_MSDU_DONE_COPY_GET(_rx_pkt_tlv) \
HAL_RX_MSDU_END(_rx_pkt_tlv).msdu_done_copy
#define HAL_RX_LINK_DESC_MSDU0_PTR(link_desc) \
((struct rx_msdu_details *) \
_OFFSET_TO_BYTE_PTR((link_desc),\