qcacmn: Add hal_rx_msdu_end_sa_idx_get API
Implement hal_rx_msdu_end_sa_idx API based on the chipset as the macro to retrieve sa_idx value is chipset dependent. Change-Id: Ib874520be9e7ad778c2a9a3c415e5c3047450b31 CRs-Fixed: 2522133
此提交包含在:

提交者
nshrivas

父節點
59ebd5ee0c
當前提交
5bf1e5a1da
@@ -167,6 +167,24 @@ hal_rx_msdu_end_sa_is_valid_get_9000(uint8_t *buf)
|
||||
return sa_is_valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_end_sa_idx_get_9000(): API to get_9000 the
|
||||
* sa_idx from rx_msdu_end TLV
|
||||
*
|
||||
* @ buf: pointer to the start of RX PKT TLV headers
|
||||
* Return: sa_idx (SA AST index)
|
||||
*/
|
||||
static uint16_t hal_rx_msdu_end_sa_idx_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;
|
||||
uint16_t sa_idx;
|
||||
|
||||
sa_idx = HAL_RX_MSDU_END_SA_IDX_GET(msdu_end);
|
||||
|
||||
return sa_idx;
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -212,6 +230,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
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,
|
||||
hal_rx_msdu_end_sa_idx_get_9000,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_9000[] = {
|
||||
|
新增問題並參考
封鎖使用者