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:

کامیت شده توسط
nshrivas

والد
55f2d92e61
کامیت
2a52d3426c
@@ -312,6 +312,23 @@ static uint8_t hal_rx_msdu_end_last_msdu_get_9000(uint8_t *buf)
|
||||
return last_msdu;
|
||||
}
|
||||
|
||||
/*
|
||||
* hal_rx_get_mpdu_mac_ad4_valid(): Retrieves if mpdu 4th addr is valid
|
||||
*
|
||||
* @nbuf: Network buffer
|
||||
* Returns: value of mpdu 4th address valid field
|
||||
*/
|
||||
inline bool hal_rx_get_mpdu_mac_ad4_valid_9000(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 qcn9000_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -365,6 +382,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_end_first_msdu_get_9000,
|
||||
hal_rx_msdu_end_da_is_valid_get_9000,
|
||||
hal_rx_msdu_end_last_msdu_get_9000,
|
||||
hal_rx_get_mpdu_mac_ad4_valid_9000,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_9000[] = {
|
||||
|
مرجع در شماره جدید
Block a user