qcacmn: Add hal_rx_msdu_end_da_is_mcbc_get API
Implement hal_rx_msdu_end_da_is_mcbc_get based on the chipset as the macro to retrieve mcbc value is chipset dependent. Change-Id: I860d259515c31345501080577d7a34beb97e5f60 CRs-Fixed: 2522133
This commit is contained in:

committad av
nshrivas

förälder
d1b7e4c326
incheckning
ee90938f62
@@ -1848,29 +1848,20 @@ hal_rx_msdu_end_da_is_valid_get(uint8_t *buf)
|
||||
return da_is_valid;
|
||||
}
|
||||
|
||||
#define HAL_RX_MSDU_END_DA_IS_MCBC_GET(_rx_msdu_end) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR(_rx_msdu_end, \
|
||||
RX_MSDU_END_5_DA_IS_MCBC_OFFSET)), \
|
||||
RX_MSDU_END_5_DA_IS_MCBC_MASK, \
|
||||
RX_MSDU_END_5_DA_IS_MCBC_LSB))
|
||||
|
||||
/**
|
||||
/**
|
||||
* hal_rx_msdu_end_da_is_mcbc_get: API to check if pkt is MCBC
|
||||
* from rx_msdu_end TLV
|
||||
*
|
||||
* @ buf: pointer to the start of RX PKT TLV headers
|
||||
* @buf: pointer to the start of RX PKT TLV headers
|
||||
*
|
||||
* Return: da_is_mcbc
|
||||
*/
|
||||
static inline uint8_t
|
||||
hal_rx_msdu_end_da_is_mcbc_get(uint8_t *buf)
|
||||
hal_rx_msdu_end_da_is_mcbc_get(hal_soc_handle_t hal_soc_hdl, uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
||||
struct rx_msdu_end *msdu_end = &pkt_tlvs->msdu_end_tlv.rx_msdu_end;
|
||||
uint8_t da_is_mcbc;
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
da_is_mcbc = HAL_RX_MSDU_END_DA_IS_MCBC_GET(msdu_end);
|
||||
|
||||
return da_is_mcbc;
|
||||
return hal_soc->ops->hal_rx_msdu_end_da_is_mcbc_get(buf);
|
||||
}
|
||||
|
||||
#define HAL_RX_MSDU_END_FIRST_MSDU_GET(_rx_msdu_end) \
|
||||
|
Referens i nytt ärende
Block a user