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
@@ -162,6 +162,24 @@ hal_rx_msdu_end_sa_is_valid_get_6390(uint8_t *buf)
|
||||
return sa_is_valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_end_sa_idx_get_6390(): API to get_6390 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_6390(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 qca6390_hal_hw_txrx_ops = {
|
||||
/* init and setup */
|
||||
hal_srng_dst_hw_init_generic,
|
||||
@@ -206,6 +224,7 @@ struct hal_hw_txrx_ops qca6390_hal_hw_txrx_ops = {
|
||||
hal_rx_get_rx_fragment_number_6390,
|
||||
hal_rx_msdu_end_da_is_mcbc_get_6390,
|
||||
hal_rx_msdu_end_sa_is_valid_get_6390,
|
||||
hal_rx_msdu_end_sa_idx_get_6390,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6390[] = {
|
||||
|
在新工单中引用
屏蔽一个用户