qcacmn: Add hal_rx_get_rx_sequence API
Add hal_rx_get_rx_sequence API to retrieve rx sequence value based on the chipset. Change-Id: I8377b96dfe04e9695a183482d9fcc4a804f845e0 CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

parent
f73d891115
commit
36fd40ab6e
@@ -964,6 +964,21 @@ hal_rx_tlv_get_tcp_chksum_9000(uint8_t *buf)
|
||||
return HAL_RX_TLV_GET_TCP_CHKSUM(buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_get_rx_sequence_9000(): Function to retrieve rx sequence number
|
||||
*
|
||||
* @nbuf: Network buffer
|
||||
* Returns: rx sequence number
|
||||
*/
|
||||
static
|
||||
uint16_t hal_rx_get_rx_sequence_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);
|
||||
|
||||
return HAL_RX_MPDU_GET_SEQUENCE_NUMBER(rx_mpdu_info);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -1050,6 +1065,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_cce_metadata_get_9000,
|
||||
hal_rx_msdu_get_flow_params_9000,
|
||||
hal_rx_tlv_get_tcp_chksum_9000,
|
||||
hal_rx_get_rx_sequence_9000,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_9000[] = {
|
||||
|
Reference in New Issue
Block a user