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

committato da
nshrivas

parent
79055387d9
commit
55f2d92e61
@@ -286,6 +286,24 @@ static uint8_t hal_rx_msdu_end_da_is_valid_get_8074v1(uint8_t *buf)
|
||||
return da_is_valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_end_last_msdu_get_8074v1: API to get last msdu status
|
||||
* from rx_msdu_end TLV
|
||||
*
|
||||
* @ buf: pointer to the start of RX PKT TLV headers
|
||||
* Return: last_msdu
|
||||
*/
|
||||
static uint8_t hal_rx_msdu_end_last_msdu_get_8074v1(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 last_msdu;
|
||||
|
||||
last_msdu = HAL_RX_MSDU_END_LAST_MSDU_GET(msdu_end);
|
||||
|
||||
return last_msdu;
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca8074_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -338,6 +356,7 @@ struct hal_hw_txrx_ops qca8074_hal_hw_txrx_ops = {
|
||||
hal_rx_print_pn_8074v1,
|
||||
hal_rx_msdu_end_first_msdu_get_8074v1,
|
||||
hal_rx_msdu_end_da_is_valid_get_8074v1,
|
||||
hal_rx_msdu_end_last_msdu_get_8074v1,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_8074[] = {
|
||||
|
@@ -96,6 +96,11 @@
|
||||
RX_MSDU_END_5_DA_IS_VALID_MASK, \
|
||||
RX_MSDU_END_5_DA_IS_VALID_LSB))
|
||||
|
||||
#define HAL_RX_MSDU_END_LAST_MSDU_GET(_rx_msdu_end) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR(_rx_msdu_end, \
|
||||
RX_MSDU_END_5_LAST_MSDU_OFFSET)), \
|
||||
RX_MSDU_END_5_LAST_MSDU_MASK, \
|
||||
RX_MSDU_END_5_LAST_MSDU_LSB))
|
||||
/*
|
||||
* hal_rx_msdu_start_nss_get_8074(): API to get the NSS
|
||||
* Interval from rx_msdu_start
|
||||
|
Fai riferimento in un nuovo problema
Block a user