From 5c48559237222214d8fac90f1e1b5215d8ae1474 Mon Sep 17 00:00:00 2001 From: Adil Saeed Musthafa Date: Wed, 28 Oct 2020 15:02:45 -0700 Subject: [PATCH] qcacmn: setup the target_pdev_id on mode switch We need to set pdev->target_pdev_id after mode switch so that the correct target_pdev_id will be used for monitor mode ring configurations Change-Id: I0c79d0e69f8d28f8a7c8823a1010baf317571c20 CRs-Fixed: 2803005 --- dp/wifi3.0/dp_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 6058b1668f..e9f7e11ea0 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -10132,6 +10132,8 @@ dp_soc_handle_pdev_mode_change return QDF_STATUS_E_FAILURE; pdev->lmac_id = lmac_id; + pdev->target_pdev_id = + dp_calculate_target_pdev_id_from_host_pdev_id(soc, pdev_id); dp_info(" mode change %d %d\n", pdev->pdev_id, pdev->lmac_id); /*Set host PDEV ID for lmac_id*/