Jelajahi Sumber

qcacmn: Fix monitor mode init issue

During monitor vap creation time, do not allocate monitor buffer
and link descriptors memory if already initilized.
Check if pdev->pdev_mon_init flag is true and return.

CRs-Fixed: 2852399
Change-Id: I87ceaf0af771abed1bff651ef6f2b9ca21e038b9
Amir Patel 4 tahun lalu
induk
melakukan
e41f64cc9e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      dp/wifi3.0/dp_main.c

+ 1 - 1
dp/wifi3.0/dp_main.c

@@ -7400,7 +7400,7 @@ static QDF_STATUS dp_vdev_set_monitor_mode_rings(struct dp_pdev *pdev,
 	pdev_cfg_ctx = pdev->wlan_cfg_ctx;
 
 	/* If monitor rings are aleady initilized, return from here */
-	if (!pdev->pdev_mon_init)
+	if (pdev->pdev_mon_init)
 		return QDF_STATUS_SUCCESS;
 
 	for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {