Browse Source

qcacmn: Filter data packets in m_copy mode

Filter out data packets from mon destination
ring in m_copy mode as we already receive
first 100 bytes of data in mon status ring

Change-Id: I09321aa42b850d7b3cdc0bda4c7c51f79a6f850e
phadiman 6 years ago
parent
commit
86911cd6e0
1 changed files with 6 additions and 3 deletions
  1. 6 3
      dp/wifi3.0/dp_main.c

+ 6 - 3
dp/wifi3.0/dp_main.c

@@ -5903,13 +5903,16 @@ static QDF_STATUS dp_pdev_configure_monitor_rings(struct dp_pdev *pdev)
 		(pdev->mon_filter_mode & MON_FILTER_OTHER) ? 1 : 0;
 	htt_tlv_filter.fp_mgmt_filter = pdev->fp_mgmt_filter;
 	htt_tlv_filter.fp_ctrl_filter = pdev->fp_ctrl_filter;
-	if (pdev->mcopy_mode)
+
+	if (pdev->mcopy_mode) {
 		htt_tlv_filter.fp_data_filter = 0;
-	else
+		htt_tlv_filter.mo_data_filter = 0;
+	} else {
 		htt_tlv_filter.fp_data_filter = pdev->fp_data_filter;
+		htt_tlv_filter.mo_data_filter = pdev->mo_data_filter;
+	}
 	htt_tlv_filter.mo_mgmt_filter = pdev->mo_mgmt_filter;
 	htt_tlv_filter.mo_ctrl_filter = pdev->mo_ctrl_filter;
-	htt_tlv_filter.mo_data_filter = pdev->mo_data_filter;
 	htt_tlv_filter.offset_valid = false;
 
 	for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {