qcacmn: Add hal_rx_msdu_end_first_msdu_get API

Implement hal_rx_msdu_end_first_msdu_get API
based on the chipset as the macro to retrieve
first_msdu value is chipset dependent.

Change-Id: Iea325159a0349c45a249c1ae113664c41a54b0f1
CRs-Fixed: 2522133
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-09-21 11:03:38 -07:00
committed by nshrivas
parent a2d7497e1c
commit cb255b4834
14 changed files with 159 additions and 18 deletions

View File

@@ -258,6 +258,24 @@ static void hal_rx_print_pn_9000(uint8_t *buf)
pn_127_96, pn_95_64, pn_63_32, pn_31_0);
}
/**
* hal_rx_msdu_end_first_msdu_get_9000: API to get first msdu status
* from rx_msdu_end TLV
*
* @ buf: pointer to the start of RX PKT TLV headers
* Return: first_msdu
*/
static uint8_t hal_rx_msdu_end_first_msdu_get_9000(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 first_msdu;
first_msdu = HAL_RX_MSDU_END_FIRST_MSDU_GET(msdu_end);
return first_msdu;
}
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
/* init and setup */
@@ -308,6 +326,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
hal_rx_msdu_end_l3_hdr_padding_get_9000,
hal_rx_encryption_info_valid_9000,
hal_rx_print_pn_9000,
hal_rx_msdu_end_first_msdu_get_9000,
};
struct hal_hw_srng_config hw_srng_table_9000[] = {