qcacmn: Add hal_rx_mpdu_start_sw_peer_id_get API
Implement hal_rx_mpdu_start_sw_peer_id API based on the chipset as the macro to retrieve sw_peer_id value is chipset dependent. Change-Id: Ifebaf2430731f5e0593dde4789d721e9fe7ce7c1 CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

orang tua
2a52d3426c
melakukan
96ed623043
@@ -324,6 +324,23 @@ static bool hal_rx_get_mpdu_mac_ad4_valid_6390(uint8_t *buf)
|
||||
|
||||
return ad4_valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_mpdu_start_sw_peer_id_get_6390: Retrieve sw peer_id
|
||||
* @buf: network buffer
|
||||
*
|
||||
* Return: sw peer_id
|
||||
*/
|
||||
static uint32_t hal_rx_mpdu_start_sw_peer_id_get_6390(uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
||||
struct rx_mpdu_start *mpdu_start =
|
||||
&pkt_tlvs->mpdu_start_tlv.rx_mpdu_start;
|
||||
|
||||
return HAL_RX_MPDU_INFO_SW_PEER_ID_GET(
|
||||
&mpdu_start->rx_mpdu_info_details);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca6390_hal_hw_txrx_ops = {
|
||||
/* init and setup */
|
||||
hal_srng_dst_hw_init_generic,
|
||||
@@ -377,6 +394,7 @@ struct hal_hw_txrx_ops qca6390_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_end_da_is_valid_get_6390,
|
||||
hal_rx_msdu_end_last_msdu_get_6390,
|
||||
hal_rx_get_mpdu_mac_ad4_valid_6390,
|
||||
hal_rx_mpdu_start_sw_peer_id_get_6390,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6390[] = {
|
||||
|
Reference in New Issue
Block a user