瀏覽代碼

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
Adil Saeed Musthafa 4 年之前
父節點
當前提交
5c48559237
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dp/wifi3.0/dp_main.c

+ 2 - 0
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*/