qcacmn: Add hal_rx_msdu_end_sa_is_valid_get API

Implement hal_rx_msdu_end_sa_is_valid_get API
based on the chipset as the macro to retrieve
sa_idx valid bit is chipset dependent.

Change-Id: I8bcb7030554331922ed12ea9da3ef51cd64b5c40
CRs-Fixed: 2522133
此提交包含在:
Venkata Sharath Chandra Manchala
2019-09-20 15:52:55 -07:00
提交者 nshrivas
父節點 ee90938f62
當前提交 59ebd5ee0c
共有 15 個檔案被更改,包括 159 行新增16 行删除

查看文件

@@ -148,6 +148,25 @@ hal_rx_msdu_end_da_is_mcbc_get_9000(uint8_t *buf)
return HAL_RX_MSDU_END_DA_IS_MCBC_GET(msdu_end);
}
/**
* hal_rx_msdu_end_sa_is_valid_get_9000(): API to get_9000 the
* sa_is_valid bit from rx_msdu_end TLV
*
* @ buf: pointer to the start of RX PKT TLV headers
* Return: sa_is_valid bit
*/
static uint8_t
hal_rx_msdu_end_sa_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 sa_is_valid;
sa_is_valid = HAL_RX_MSDU_END_SA_IS_VALID_GET(msdu_end);
return sa_is_valid;
}
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
/* init and setup */
@@ -192,6 +211,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
hal_tx_update_tidmap_prty_generic,
hal_rx_get_rx_fragment_number_9000,
hal_rx_msdu_end_da_is_mcbc_get_9000,
hal_rx_msdu_end_sa_is_valid_get_9000,
};
struct hal_hw_srng_config hw_srng_table_9000[] = {