qcacmn: Enable/disable full monitor mode for mcopy mode

mcopy mode uses monitor destination ring to sniff mgmt frames, 
send enable/disbale full monitor mode by sending HTT msg to FW
when configuring mcopy.

Change-Id: Ie9510bda223861c13054abac640b2c879c4d334d
This commit is contained in:
Himanshu Batra
2020-10-15 19:16:00 +05:30
committed by snandini
parent 88efb959a6
commit 8656266cf7

View File

@@ -8141,6 +8141,7 @@ dp_config_debug_sniffer(struct dp_pdev *pdev, int val)
*/
if (pdev->mcopy_mode) {
#ifdef FEATURE_PERPKT_INFO
dp_soc_config_full_mon_mode(pdev, DP_FULL_MON_DISABLE);
dp_pdev_disable_mcopy_code(pdev);
dp_mon_filter_reset_mcopy_mode(pdev);
status = dp_mon_filter_update(pdev);
@@ -8201,6 +8202,7 @@ dp_config_debug_sniffer(struct dp_pdev *pdev, int val)
/*
* Setup the M copy mode filter.
*/
dp_soc_config_full_mon_mode(pdev, DP_FULL_MON_ENABLE);
dp_mon_filter_setup_mcopy_mode(pdev);
status = dp_mon_filter_update(pdev);
if (status != QDF_STATUS_SUCCESS) {