From 206e856a732fcde42bf4f485e607447fcffcffa9 Mon Sep 17 00:00:00 2001 From: Nandha Kishore Easwaran Date: Tue, 13 Sep 2022 14:08:50 +0530 Subject: [PATCH] qcacmn: Fix subtype filtering for ctrl frames Fix subtype filtering for ctrl frames. This change is needed because ctrl frames are generated in the host and subtype filtering is always required. Change-Id: Id4fa25103387af38f658851495793249776c1985 CRs-Fixed: 3284207 --- dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c b/dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c index 6e91e169f1..103d327963 100644 --- a/dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c +++ b/dp/wifi3.0/monitor/2.0/dp_mon_filter_2.0.c @@ -3156,10 +3156,13 @@ dp_mon_filter_setup_tx_lite_mon(struct dp_mon_pdev_be *be_mon_pdev) if ((config->tx_config.level == CDP_LITE_MON_LEVEL_MPDU) || (config->tx_config.level == CDP_LITE_MON_LEVEL_PPDU)) tx_tlv_filter->ctrl_mpdu_log = 1; - if (config->tx_config.ctrl_filter[DP_MON_FRM_FILTER_MODE_FP] != - CDP_LITE_MON_FILTER_ALL) - config->subtype_filtering = true; } + /* Since ctrl frames are generated in host, we need to do subtype + * filtering even though ctrl filters are not enabled + */ + if (config->tx_config.ctrl_filter[DP_MON_FRM_FILTER_MODE_FP] != + CDP_LITE_MON_FILTER_ALL) + config->subtype_filtering = true; /* configure data filters */ if (config->tx_config.data_filter[DP_MON_FRM_FILTER_MODE_FP]) { tx_tlv_filter->data_filter = 1;