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
Šī revīzija ir iekļauta:

revīziju iesūtīja
nshrivas

vecāks
96ed623043
revīzija
e7924fd2da
@@ -247,6 +247,24 @@ static uint32_t hal_rx_mpdu_start_sw_peer_id_get_6490(uint8_t *buf)
|
||||
&mpdu_start->rx_mpdu_info_details);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_mpdu_get_to_ds_6490(): 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_6490(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 qca6490_hal_hw_txrx_ops = {
|
||||
/* rx */
|
||||
hal_rx_get_rx_fragment_number_6490,
|
||||
@@ -261,4 +279,5 @@ struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_end_last_msdu_get_6490,
|
||||
hal_rx_get_mpdu_mac_ad4_valid_6490,
|
||||
hal_rx_mpdu_start_sw_peer_id_get_6490,
|
||||
hal_rx_mpdu_get_to_ds_6490,
|
||||
};
|
||||
|
@@ -105,3 +105,9 @@
|
||||
RX_MPDU_INFO_10_SW_PEER_ID_OFFSET)), \
|
||||
RX_MPDU_INFO_10_SW_PEER_ID_MASK, \
|
||||
RX_MPDU_INFO_10_SW_PEER_ID_LSB))
|
||||
|
||||
#define HAL_RX_MPDU_GET_TODS(_rx_mpdu_info) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR(_rx_mpdu_info, \
|
||||
RX_MPDU_INFO_11_TO_DS_OFFSET)), \
|
||||
RX_MPDU_INFO_11_TO_DS_MASK, \
|
||||
RX_MPDU_INFO_11_TO_DS_LSB))
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user