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

parent
8227240793
commit
b7d2df16b5
@@ -653,6 +653,33 @@ void *hal_dst_mpdu_desc_info_6490(void *dst_ring_desc)
|
||||
return (void *)HAL_DST_MPDU_DESC_INFO(dst_ring_desc);
|
||||
}
|
||||
|
||||
static
|
||||
uint8_t hal_rx_get_fc_valid_6490(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_FC_VALID(buf);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_get_to_ds_flag_6490(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_TO_DS_FLAG(buf);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_get_mac_addr2_valid_6490(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_MAC_ADDR2_VALID(buf);
|
||||
}
|
||||
|
||||
static uint8_t hal_rx_get_filter_category_6490(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_FILTER_CATEGORY(buf);
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
hal_rx_get_ppdu_id_6490(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_GET_PPDU_ID(buf);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
|
||||
/* tx */
|
||||
hal_tx_desc_set_mesh_en_6490,
|
||||
@@ -686,4 +713,9 @@ struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_desc_info_ptr_get_6490,
|
||||
hal_ent_mpdu_desc_info_6490,
|
||||
hal_dst_mpdu_desc_info_6490,
|
||||
hal_rx_get_fc_valid_6490,
|
||||
hal_rx_get_to_ds_flag_6490,
|
||||
hal_rx_get_mac_addr2_valid_6490,
|
||||
hal_rx_get_filter_category_6490,
|
||||
hal_rx_get_ppdu_id_6490,
|
||||
};
|
||||
|
@@ -229,3 +229,18 @@
|
||||
#define HAL_DST_MPDU_DESC_INFO(dst_ring_desc) \
|
||||
(uint8_t *)(dst_ring_desc) + \
|
||||
REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_OFFSET
|
||||
|
||||
#define HAL_RX_GET_FC_VALID(rx_mpdu_start) \
|
||||
HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO_11, MPDU_FRAME_CONTROL_VALID)
|
||||
|
||||
#define HAL_RX_GET_TO_DS_FLAG(rx_mpdu_start) \
|
||||
HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO_11, TO_DS)
|
||||
|
||||
#define HAL_RX_GET_MAC_ADDR2_VALID(rx_mpdu_start) \
|
||||
HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO_11, MAC_ADDR_AD2_VALID)
|
||||
|
||||
#define HAL_RX_GET_FILTER_CATEGORY(rx_mpdu_start) \
|
||||
HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO_9, RXPCU_MPDU_FILTER_IN_CATEGORY)
|
||||
|
||||
#define HAL_RX_GET_PPDU_ID(rx_mpdu_start) \
|
||||
HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO_9, PHY_PPDU_ID)
|
||||
|
Reference in New Issue
Block a user