qcacmn: Add HAL APIs in hal_generic_api.h
Add the following macros: 1. HAL_RX_GET_FC_VALID 2. HAL_RX_GET_TO_DS_FLAG 3. HAL_RX_GET_MAC_ADDR2_VALID 4. HAL_RX_GET_FILTER_CATEGORY 5. HAL_RX_GET_PPDU_ID Also add function pointers to retrieve the flags from the above macros. Change-Id: I334b198588ceba77cd30bdde7ebc500cdbe18358 CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

父節點
8227240793
當前提交
b7d2df16b5
@@ -776,6 +776,33 @@ void *hal_dst_mpdu_desc_info_8074v2(void *dst_ring_desc)
|
||||
return (void *)HAL_DST_MPDU_DESC_INFO(dst_ring_desc);
|
||||
}
|
||||
|
||||
static
|
||||
uint8_t hal_rx_get_fc_valid_8074v2(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_FC_VALID(buf);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_get_to_ds_flag_8074v2(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_TO_DS_FLAG(buf);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_get_mac_addr2_valid_8074v2(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_MAC_ADDR2_VALID(buf);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_get_filter_category_8074v2(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_FILTER_CATEGORY(buf);
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
hal_rx_get_ppdu_id_8074v2(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_PPDU_ID(buf);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -849,6 +876,11 @@ struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_desc_info_ptr_get_8074v2,
|
||||
hal_ent_mpdu_desc_info_8074v2,
|
||||
hal_dst_mpdu_desc_info_8074v2,
|
||||
hal_rx_get_fc_valid_8074v2,
|
||||
hal_rx_get_to_ds_flag_8074v2,
|
||||
hal_rx_get_mac_addr2_valid_8074v2,
|
||||
hal_rx_get_filter_category_8074v2,
|
||||
hal_rx_get_ppdu_id_8074v2,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_8074v2[] = {
|
||||
|
Reference in New Issue
Block a user