qcacmn: Add hal_rx_desc_is_first_msdu API
Implement hal_rx_desc_is_first_msdu API based on the chipset as the macro to retrieve first_msdu bit value is chipset dependent. Change-Id: I8e8a3aceb225b591b96e6f8453ffbebf1f78e529 CRs-Fixed: 2522133
此提交包含在:

提交者
nshrivas

父節點
5bf1e5a1da
當前提交
43d563277d
@@ -87,9 +87,26 @@ uint16_t hal_rx_msdu_end_sa_idx_get_6490(uint8_t *buf)
|
||||
return sa_idx;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_desc_is_first_msdu_6490() - Check if first msdu
|
||||
*
|
||||
* @hal_soc_hdl: hal_soc handle
|
||||
* @hw_desc_addr: hardware descriptor address
|
||||
*
|
||||
* Return: 0 - success/ non-zero failure
|
||||
*/
|
||||
static uint32_t hal_rx_desc_is_first_msdu_6490(void *hw_desc_addr)
|
||||
{
|
||||
struct rx_pkt_tlvs *rx_tlvs = (struct rx_pkt_tlvs *)hw_desc_addr;
|
||||
struct rx_msdu_end *msdu_end = &rx_tlvs->msdu_end_tlv.rx_msdu_end;
|
||||
|
||||
return HAL_RX_GET(msdu_end, RX_MSDU_END_10, FIRST_MSDU);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
|
||||
/* rx */
|
||||
hal_rx_get_rx_fragment_number_6490,
|
||||
hal_rx_msdu_end_da_is_mcbc_get_6490,
|
||||
hal_rx_msdu_end_sa_is_valid_get_6490,
|
||||
hal_rx_desc_is_first_msdu_6490,
|
||||
};
|
||||
|
新增問題並參考
封鎖使用者