qcacmn: Add hal_rx_hw_desc_get_ppduid_get API

Implement hal_rx_hw_desc_get_ppduid API based
on the chipset as the macro to retrieve
ppduid value is chipset dependent.

Change-Id: I7d3457d731ea486f04367f98f9f18d3f1c0fcfd7
CRs-Fixed: 2522133
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-09-21 16:48:04 -07:00
committed by nshrivas
부모 8513048ac9
커밋 84d5092701
11개의 변경된 파일130개의 추가작업 그리고 13개의 파일을 삭제

파일 보기

@@ -496,6 +496,23 @@ static uint32_t hal_rx_tid_get_6490(hal_soc_handle_t hal_soc_hdl, uint8_t *buf)
return HAL_RX_NON_QOS_TID;
}
/**
* hal_rx_hw_desc_get_ppduid_get_6490(): retrieve ppdu id
* @hw_desc_addr: hw addr
*
* Return: ppdu id
*/
static uint32_t hal_rx_hw_desc_get_ppduid_get_6490(void *hw_desc_addr)
{
struct rx_mpdu_info *rx_mpdu_info;
struct rx_pkt_tlvs *rx_desc = (struct rx_pkt_tlvs *)hw_desc_addr;
rx_mpdu_info =
&rx_desc->mpdu_start_tlv.rx_mpdu_start.rx_mpdu_info_details;
return HAL_RX_GET(rx_mpdu_info, RX_MPDU_INFO_9, PHY_PPDU_ID);
}
struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
/* rx */
hal_rx_get_rx_fragment_number_6490,
@@ -520,4 +537,5 @@ struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
hal_rx_get_mpdu_sequence_control_valid_6490,
hal_rx_is_unicast_6490,
hal_rx_tid_get_6490,
hal_rx_hw_desc_get_ppduid_get_6490,
};