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
此提交包含在:
Venkata Sharath Chandra Manchala
2019-09-21 11:52:54 -07:00
提交者 nshrivas
父節點 55f2d92e61
當前提交 2a52d3426c
共有 14 個檔案被更改,包括 146 行新增15 行删除

查看文件

@@ -214,6 +214,23 @@ static uint8_t hal_rx_msdu_end_last_msdu_get_6490(uint8_t *buf)
return last_msdu;
}
/*
* hal_rx_get_mpdu_mac_ad4_valid_6490(): 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_6490(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 qca6490_hal_hw_txrx_ops = {
/* rx */
hal_rx_get_rx_fragment_number_6490,
@@ -226,4 +243,5 @@ struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
hal_rx_msdu_end_first_msdu_get_6490,
hal_rx_msdu_end_da_is_valid_get_6490,
hal_rx_msdu_end_last_msdu_get_6490,
hal_rx_get_mpdu_mac_ad4_valid_6490,
};