qcacmn: Add hal_rx_mpdu_get_fr_ds API
Implement hal_rx_mpdu_get_fr_ds API based on the chipset as the macro to retrieve for_ds value is chipset dependent. Change-Id: I6d41d02ac50cae752567d98645f0447cc122a84f CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

parent
e7924fd2da
commit
1e3a479fdf
@@ -363,6 +363,24 @@ static uint32_t hal_rx_mpdu_get_to_ds_9000(uint8_t *buf)
|
||||
return HAL_RX_MPDU_GET_TODS(mpdu_info);
|
||||
}
|
||||
|
||||
/*
|
||||
* hal_rx_mpdu_get_fr_ds_9000(): API to get the from ds info
|
||||
* from rx_mpdu_start
|
||||
*
|
||||
* @buf: pointer to the start of RX PKT TLV header
|
||||
* Return: uint32_t(fr_ds)
|
||||
*/
|
||||
static uint32_t hal_rx_mpdu_get_fr_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_FROMDS(mpdu_info);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -419,6 +437,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
hal_rx_get_mpdu_mac_ad4_valid_9000,
|
||||
hal_rx_mpdu_start_sw_peer_id_get_9000,
|
||||
hal_rx_mpdu_get_to_ds_9000,
|
||||
hal_rx_mpdu_get_fr_ds_9000,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_9000[] = {
|
||||
|
Reference in New Issue
Block a user