qcacmn: use proper HAL abtraction APIs to get WBM internal error
the current HAL API is to read the WBM internal error bit from the wbm release ring descriptor is always taking HKv1 HW structure. But the wbm_internal_error bit placement has changed from HKv2, for this reason we have to use target specific HAL API. Change-Id: I44789180754ca21ae59650b6d8620321a1f12569
This commit is contained in:
@@ -1861,6 +1861,24 @@ static inline uint8_t hal_tx_comp_get_release_reason_generic(void *hal_desc)
|
||||
WBM_RELEASE_RING_2_TQM_RELEASE_REASON_LSB;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_get_wbm_internal_error_generic() - is WBM internal error
|
||||
* @hal_desc: completion ring descriptor pointer
|
||||
*
|
||||
* This function will return 0 or 1 - is it WBM internal error or not
|
||||
*
|
||||
* Return: uint8_t
|
||||
*/
|
||||
static inline uint8_t hal_get_wbm_internal_error_generic(void *hal_desc)
|
||||
{
|
||||
uint32_t comp_desc =
|
||||
*(uint32_t *)(((uint8_t *)hal_desc) +
|
||||
WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR_OFFSET);
|
||||
|
||||
return (comp_desc & WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR_MASK) >>
|
||||
WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR_LSB;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_dump_mpdu_start_tlv_generic: dump RX mpdu_start TLV in structured
|
||||
* human readable format.
|
||||
|
Reference in New Issue
Block a user