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
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user