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
@@ -3370,4 +3370,48 @@ void *hal_dst_mpdu_desc_info(hal_soc_handle_t hal_soc_hdl,
|
||||
|
||||
return hal_soc->ops->hal_dst_mpdu_desc_info(hw_addr);
|
||||
}
|
||||
|
||||
static inline
|
||||
uint8_t hal_rx_get_fc_valid(hal_soc_handle_t hal_soc_hdl,
|
||||
uint8_t *buf)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
return hal_soc->ops->hal_rx_get_fc_valid(buf);
|
||||
}
|
||||
|
||||
static inline
|
||||
uint8_t hal_rx_get_to_ds_flag(hal_soc_handle_t hal_soc_hdl, uint8_t *buf)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
return hal_soc->ops->hal_rx_get_to_ds_flag(buf);
|
||||
}
|
||||
|
||||
static inline
|
||||
uint8_t hal_rx_get_mac_addr2_valid(hal_soc_handle_t hal_soc_hdl,
|
||||
uint8_t *buf)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
return hal_soc->ops->hal_rx_get_mac_addr2_valid(buf);
|
||||
}
|
||||
|
||||
static inline
|
||||
uint8_t hal_rx_get_filter_category(hal_soc_handle_t hal_soc_hdl,
|
||||
uint8_t *buf)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
return hal_soc->ops->hal_rx_get_filter_category(buf);
|
||||
}
|
||||
|
||||
static inline
|
||||
uint32_t hal_rx_get_ppdu_id(hal_soc_handle_t hal_soc_hdl,
|
||||
uint8_t *buf)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
return hal_soc->ops->hal_rx_get_ppdu_id(buf);
|
||||
}
|
||||
#endif /* _HAL_RX_H */
|
||||
|
Reference in New Issue
Block a user