Browse Source

qcacmn: Disable monitor mode on sdxlemur

Disable monitor mode on sdx65,it will save 5MB buf,
and improve iperf performance.

Dp_rx_buffer_pool_refill is used monitor mode in
MCC, and rxdma1_enalbe=0, we don't need this logic.
But in WIN side, only monitor mode need this logic,
and rxdma1_enable will set true.

Add func dp_monitor_pktlog_reap_pending_frames and
dp_monitor_pktlog_start_reap_timer in dp_internal.h
for compile issue.

Change-Id: I43fee6d7a1836063a7539c3bd4745eef15a4e4b2
CRs-Fixed: 3129542
chunquan 3 years ago
parent
commit
fae0e38eb4
2 changed files with 21 additions and 8 deletions
  1. 19 2
      dp/wifi3.0/dp_internal.h
  2. 2 6
      dp/wifi3.0/dp_rx_buffer_pool.c

+ 19 - 2
dp/wifi3.0/dp_internal.h

@@ -555,7 +555,7 @@ static inline bool dp_monitor_is_vdev_timer_running(struct dp_soc *soc)
 }
 
 static inline
-void dp_monitor_pdev_set_mon_vdev(struct dp_pdev *pdev)
+void dp_monitor_pdev_set_mon_vdev(struct dp_vdev *vdev)
 {
 }
 
@@ -655,7 +655,7 @@ dp_monitor_get_rx_status(struct dp_pdev *pdev)
 }
 
 static inline
-void dp_monitor_pdev_config_scan_spcl_vap(struct dp_pdev *pdev)
+void dp_monitor_pdev_config_scan_spcl_vap(struct dp_pdev *pdev, bool val)
 {
 }
 
@@ -678,6 +678,23 @@ dp_monitor_pdev_tx_capture_get_stats(struct dp_soc *soc, struct dp_pdev *pdev,
 {
 	return QDF_STATUS_E_FAILURE;
 }
+
+#ifdef DP_POWER_SAVE
+static inline
+void dp_monitor_pktlog_reap_pending_frames(struct dp_pdev *pdev)
+{
+}
+
+static inline
+void dp_monitor_pktlog_start_reap_timer(struct dp_pdev *pdev)
+{
+}
+#endif
+
+static inline bool dp_monitor_is_configured(struct dp_pdev *pdev)
+{
+	return false;
+}
 #endif
 
 /**

+ 2 - 6
dp/wifi3.0/dp_rx_buffer_pool.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -18,10 +19,6 @@
 
 #include "dp_rx_buffer_pool.h"
 #include "dp_ipa.h"
-#ifdef WLAN_FEATURE_RX_PREALLOC_BUFFER_POOL
-#include "dp_mon.h"
-#include "dp_rx_mon.h"
-#endif
 
 #ifndef DP_RX_BUFFER_POOL_SIZE
 #define DP_RX_BUFFER_POOL_SIZE 128
@@ -44,8 +41,7 @@ bool dp_rx_buffer_pool_refill(struct dp_soc *soc, qdf_nbuf_t nbuf, u8 mac_id)
 		return consumed;
 
 	/* process only buffers of RXDMA ring */
-	if (qdf_unlikely(rx_desc_pool !=
-			 dp_rx_get_mon_desc_pool(soc, mac_id, pdev->pdev_id)))
+	if (soc->wlan_cfg_ctx->rxdma1_enable)
 		return consumed;
 
 	first_nbuf = nbuf;