qcacmn: set appropriate rx packet offset

Set appropriate rx packet offset when full pkt is
subscribed in litemon case.

Change-Id: I1b1149b5105ce2b61c6e6ddc7841c21ce0b7870c
CRs-Fixed: 3183047
Tento commit je obsažen v:
Jeevan Kukkalli
2022-04-26 16:09:36 +05:30
odevzdal Madan Koyyalamudi
rodič 0c9a5d80a2
revize bf5043dc92
3 změnil soubory, kde provedl 4 přidání a 4 odebrání

Zobrazit soubor

@@ -37,8 +37,6 @@
#define CDP_LITE_MON_FILTER_ALL 0xFFFF
#define CDP_LITE_MON_RX_PACKET_OFFSET 8
/* This should align with nac mac type enumerations in ieee80211_ioctl.h */
#define CDP_LITE_MON_PEER_MAC_TYPE_CLIENT 2

Zobrazit soubor

@@ -2346,8 +2346,9 @@ dp_mon_filter_setup_rx_lite_mon(struct dp_mon_pdev_be *be_mon_pdev)
ctrl_len,
data_len)) {
rx_tlv_filter->tlv_filter.packet = 1;
rx_tlv_filter->tlv_filter.rx_packet_offset =
CDP_LITE_MON_RX_PACKET_OFFSET;
/* get offset size in QWORDS */
rx_tlv_filter->tlv_filter.rx_pkt_tlv_offset =
DP_GET_NUM_QWORDS(DP_RX_MON_PACKET_OFFSET);
if (mgmt_len == CDP_LITE_MON_LEN_FULL)
rx_tlv_filter->tlv_filter.mgmt_dma_length =
DEFAULT_DMA_LENGTH;

Zobrazit soubor

@@ -23,6 +23,7 @@
#define DP_RX_MON_PACKET_OFFSET 8
#define DP_RX_MON_RX_HDR_OFFSET 8
#define DP_GET_NUM_QWORDS(num) ((num) >> 3)
/*
* dp_rx_mon_buffers_alloc() - allocate rx monitor buffers
* @soc: DP soc handle