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:
Venkata Sharath Chandra Manchala
2019-09-21 12:11:19 -07:00
committed by nshrivas
parent 2a52d3426c
commit 96ed623043
14 changed files with 147 additions and 20 deletions

View File

@@ -329,6 +329,22 @@ inline bool hal_rx_get_mpdu_mac_ad4_valid_9000(uint8_t *buf)
return ad4_valid;
}
/**
* hal_rx_mpdu_start_sw_peer_id_get_9000: Retrieve sw peer_id
* @buf: network buffer
*
* Return: sw peer_id
*/
static uint32_t hal_rx_mpdu_start_sw_peer_id_get_9000(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 qcn9000_hal_hw_txrx_ops = {
/* init and setup */
@@ -383,6 +399,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
hal_rx_msdu_end_da_is_valid_get_9000,
hal_rx_msdu_end_last_msdu_get_9000,
hal_rx_get_mpdu_mac_ad4_valid_9000,
hal_rx_mpdu_start_sw_peer_id_get_9000,
};
struct hal_hw_srng_config hw_srng_table_9000[] = {