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
committed by nshrivas
父節點 cb255b4834
當前提交 79055387d9
共有 15 個文件被更改,包括 158 次插入17 次删除

查看文件

@@ -276,6 +276,24 @@ static uint8_t hal_rx_msdu_end_first_msdu_get_9000(uint8_t *buf)
return first_msdu;
}
/**
* hal_rx_msdu_end_da_is_valid_get_9000: 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_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 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 qcn9000_hal_hw_txrx_ops = {
/* init and setup */
@@ -327,6 +345,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
hal_rx_encryption_info_valid_9000,
hal_rx_print_pn_9000,
hal_rx_msdu_end_first_msdu_get_9000,
hal_rx_msdu_end_da_is_valid_get_9000,
};
struct hal_hw_srng_config hw_srng_table_9000[] = {