qcacmn: Add hal_rx_mpdu_get_to_ds API
Implement hal_rx_mpdu_get_to_ds API based on the chipset as the macro to retrieve to_ds bit value is chipset dependent. Change-Id: I36d9d14e226bcc604b91d8aecbe52836c5a12272 CRs-Fixed: 2522133
This commit is contained in:

committad av
nshrivas

förälder
96ed623043
incheckning
e7924fd2da
@@ -345,6 +345,24 @@ static uint32_t hal_rx_mpdu_start_sw_peer_id_get_9000(uint8_t *buf)
|
||||
&mpdu_start->rx_mpdu_info_details);
|
||||
}
|
||||
|
||||
/*
|
||||
* hal_rx_mpdu_get_to_ds_9000(): API to get the tods info
|
||||
* from rx_mpdu_start
|
||||
*
|
||||
* @buf: pointer to the start of RX PKT TLV header
|
||||
* Return: uint32_t(to_ds)
|
||||
*/
|
||||
static uint32_t hal_rx_mpdu_get_to_ds_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;
|
||||
|
||||
struct rx_mpdu_info *mpdu_info = &mpdu_start->rx_mpdu_info_details;
|
||||
|
||||
return HAL_RX_MPDU_GET_TODS(mpdu_info);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -400,6 +418,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
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,
|
||||
hal_rx_mpdu_get_to_ds_9000,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_9000[] = {
|
||||
|
Referens i nytt ärende
Block a user