qcacmn: Add hal_rx_get_mpdu_mac_ad4_valid API

Implement hal_rx_get_mpdu_mac_ad4_valid API
based on the chipset as the macro to retrieve
mac_ad4 value is chipset dependent.

Change-Id: I9d7cc90e798d4f0775e915fe6edcb1a1f5129490
CRs-Fixed: 2522133
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-09-21 11:52:54 -07:00
committed by nshrivas
parent 55f2d92e61
commit 2a52d3426c
14 changed files with 146 additions and 15 deletions

View File

@@ -304,6 +304,23 @@ static uint8_t hal_rx_msdu_end_last_msdu_get_8074v1(uint8_t *buf)
return last_msdu;
}
/*
* hal_rx_get_mpdu_mac_ad4_valid_8074v1(): Retrieves if mpdu 4th addr is valid
*
* @nbuf: Network buffer
* Returns: value of mpdu 4th address valid field
*/
static bool hal_rx_get_mpdu_mac_ad4_valid_8074v1(uint8_t *buf)
{
struct rx_pkt_tlvs *pkt_tlvs = hal_rx_get_pkt_tlvs(buf);
struct rx_mpdu_info *rx_mpdu_info = hal_rx_get_mpdu_info(pkt_tlvs);
bool ad4_valid = 0;
ad4_valid = HAL_RX_MPDU_GET_MAC_AD4_VALID(rx_mpdu_info);
return ad4_valid;
}
struct hal_hw_txrx_ops qca8074_hal_hw_txrx_ops = {
/* init and setup */
@@ -357,6 +374,7 @@ struct hal_hw_txrx_ops qca8074_hal_hw_txrx_ops = {
hal_rx_msdu_end_first_msdu_get_8074v1,
hal_rx_msdu_end_da_is_valid_get_8074v1,
hal_rx_msdu_end_last_msdu_get_8074v1,
hal_rx_get_mpdu_mac_ad4_valid_8074v1,
};
struct hal_hw_srng_config hw_srng_table_8074[] = {