qcacmn: Add hal_rx_get_mpdu_sequence_control_valid API
Implement hal_rx_get_mpdu_sequence_control_valid API based on the chipset as the macro to retrieve sequence control valid value is chipset dependent. Change-Id: I01a006094d0330060e9ff1a91200c48c2426f38d CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

parent
aa7628361e
commit
68d6f0d585
@@ -522,6 +522,20 @@ static QDF_STATUS hal_rx_mpdu_get_addr4_8074v2(uint8_t *buf, uint8_t *mac_addr)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/*
|
||||
* hal_rx_get_mpdu_sequence_control_valid_8074v2(): Get mpdu
|
||||
* sequence control valid
|
||||
*
|
||||
* @nbuf: Network buffer
|
||||
* Returns: value of sequence control valid field
|
||||
*/
|
||||
static uint8_t hal_rx_get_mpdu_sequence_control_valid_8074v2(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);
|
||||
|
||||
return HAL_RX_MPDU_GET_SEQUENCE_CONTROL_VALID(rx_mpdu_info);
|
||||
}
|
||||
struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -584,6 +598,7 @@ struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
|
||||
hal_rx_mpdu_get_addr2_8074v2,
|
||||
hal_rx_mpdu_get_addr3_8074v2,
|
||||
hal_rx_mpdu_get_addr4_8074v2,
|
||||
hal_rx_get_mpdu_sequence_control_valid_8074v2,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_8074v2[] = {
|
||||
|
Reference in New Issue
Block a user