Browse Source

qcacmn: Use monitor pkt tlvs and buffer size for monitor

Use monitor pkt tlvs size and monitor buffer size
instead of data pkt tlv size and data pkt buffer size
for York.

Change-Id: Ifc0d07ed96100ae79e81ac91bccd637e08d71e28
CRs-Fixed: 3494826
Sushant Butta 2 năm trước cách đây
mục cha
commit
c21470ebff
2 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 5 2
      dp/wifi3.0/dp_rx.c
  2. 1 1
      dp/wifi3.0/monitor/dp_mon_filter.c

+ 5 - 2
dp/wifi3.0/dp_rx.c

@@ -3223,10 +3223,13 @@ QDF_STATUS dp_rx_pdev_desc_pool_init(struct dp_pdev *pdev)
 	rx_desc_pool->buf_size = RX_DATA_BUFFER_SIZE;
 	rx_desc_pool->buf_alignment = RX_DATA_BUFFER_ALIGNMENT;
 	/* Disable monitor dest processing via frag */
-	if (target_type == TARGET_TYPE_QCN9160)
+	if (target_type == TARGET_TYPE_QCN9160) {
+		rx_desc_pool->buf_size = RX_MONITOR_BUFFER_SIZE;
+		rx_desc_pool->buf_alignment = RX_MONITOR_BUFFER_ALIGNMENT;
 		dp_rx_enable_mon_dest_frag(rx_desc_pool, true);
-	else
+	} else {
 		dp_rx_enable_mon_dest_frag(rx_desc_pool, false);
+	}
 
 	dp_rx_desc_pool_init(soc, mac_for_pdev,
 			     rx_sw_desc_num, rx_desc_pool);

+ 1 - 1
dp/wifi3.0/monitor/dp_mon_filter.c

@@ -319,7 +319,7 @@ dp_mon_ht2_rx_ring_cfg(struct dp_soc *soc,
 			if (target_type == TARGET_TYPE_QCN9160) {
 				hal_ring_hdl =
 				soc->rx_refill_buf_ring[lmac_id].hal_srng;
-				ring_buf_size = RX_DATA_BUFFER_SIZE;
+				ring_buf_size = RX_MONITOR_BUFFER_SIZE;
 			} else {
 				hal_ring_hdl =
 					pdev->rx_mac_buf_ring[lmac_id].hal_srng;