qcacmn: Add hal_rx_mpdu_get_to_ds API
Implement hal_rx_mpdu_get_to_ds API based on the chipset as the macro to retrieve to_ds bit value is chipset dependent. Change-Id: I36d9d14e226bcc604b91d8aecbe52836c5a12272 CRs-Fixed: 2522133
This commit is contained in:

zatwierdzone przez
nshrivas

rodzic
96ed623043
commit
e7924fd2da
@@ -341,6 +341,25 @@ static uint32_t hal_rx_mpdu_start_sw_peer_id_get_6290(uint8_t *buf)
|
||||
return HAL_RX_MPDU_INFO_SW_PEER_ID_GET(
|
||||
&mpdu_start->rx_mpdu_info_details);
|
||||
}
|
||||
|
||||
/*
|
||||
* hal_rx_mpdu_get_to_ds_6290(): API to get the tods info
|
||||
* from rx_mpdu_start
|
||||
*
|
||||
* @buf: pointer to the start of RX PKT TLV header
|
||||
* Return: uint32_t(to_ds)
|
||||
*/
|
||||
|
||||
static uint32_t hal_rx_mpdu_get_to_ds_6290(uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
||||
struct rx_mpdu_start *mpdu_start =
|
||||
&pkt_tlvs->mpdu_start_tlv.rx_mpdu_start;
|
||||
|
||||
struct rx_mpdu_info *mpdu_info = &mpdu_start->rx_mpdu_info_details;
|
||||
|
||||
return HAL_RX_MPDU_GET_TODS(mpdu_info);
|
||||
}
|
||||
struct hal_hw_txrx_ops qca6290_hal_hw_txrx_ops = {
|
||||
/* init and setup */
|
||||
hal_srng_dst_hw_init_generic,
|
||||
@@ -395,6 +414,7 @@ struct hal_hw_txrx_ops qca6290_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_end_last_msdu_get_6290,
|
||||
hal_rx_get_mpdu_mac_ad4_valid_6290,
|
||||
hal_rx_mpdu_start_sw_peer_id_get_6290,
|
||||
hal_rx_mpdu_get_to_ds_6290,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6290[] = {
|
||||
|
@@ -125,6 +125,12 @@
|
||||
RX_MPDU_INFO_1_SW_PEER_ID_MASK, \
|
||||
RX_MPDU_INFO_1_SW_PEER_ID_LSB))
|
||||
|
||||
#define HAL_RX_MPDU_GET_TODS(_rx_mpdu_info) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR(_rx_mpdu_info, \
|
||||
RX_MPDU_INFO_2_TO_DS_OFFSET)), \
|
||||
RX_MPDU_INFO_2_TO_DS_MASK, \
|
||||
RX_MPDU_INFO_2_TO_DS_LSB))
|
||||
|
||||
#if defined(QCA_WIFI_QCA6290_11AX)
|
||||
#define HAL_RX_MSDU_START_MIMO_SS_BITMAP(_rx_msdu_start)\
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR((_rx_msdu_start),\
|
||||
|
Reference in New Issue
Block a user