qcacmn: Add hal_rx_msdu_end_da_is_valid_get API

Implement hal_rx_msdu_end_dat API based on
the chipset as the macro to retrieve da_is_valid
value is chipset dependent.

Change-Id: I79f06eaa2576e7516c21f963b2c149aac7f62c64
CRs-Fixed: 2522133
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-09-21 11:22:30 -07:00
committato da nshrivas
parent cb255b4834
commit 79055387d9
15 ha cambiato i file con 158 aggiunte e 17 eliminazioni

Vedi File

@@ -273,6 +273,24 @@ hal_rx_msdu_end_first_msdu_get_6290(uint8_t *buf)
return first_msdu;
}
/**
* hal_rx_msdu_end_da_is_valid_get_6290: API to check if da is valid
* from rx_msdu_end TLV
*
* @ buf: pointer to the start of RX PKT TLV headers
* Return: da_is_valid
*/
static uint8_t hal_rx_msdu_end_da_is_valid_get_6290(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_valid;
da_is_valid = HAL_RX_MSDU_END_DA_IS_VALID_GET(msdu_end);
return da_is_valid;
}
struct hal_hw_txrx_ops qca6290_hal_hw_txrx_ops = {
/* init and setup */
hal_srng_dst_hw_init_generic,
@@ -323,6 +341,7 @@ struct hal_hw_txrx_ops qca6290_hal_hw_txrx_ops = {
hal_rx_encryption_info_valid_6290,
hal_rx_print_pn_6290,
hal_rx_msdu_end_first_msdu_get_6290,
hal_rx_msdu_end_da_is_valid_get_6290,
};
struct hal_hw_srng_config hw_srng_table_6290[] = {