Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c5b9b77 authored by Wu Gao's avatar Wu Gao Committed by Madan Koyyalamudi
Browse files

qcacmn: Get vdev based on vdev id

Driver gets vdev by wlan_objmgr_pdev_get_first_vdev and returns wrong
vdev in some platforms, and then gets wrong channel/phy_mode. This
change gets vdev by id and fix this issue.

Change-Id: I814d516361238afbd0345bc362c286d1cb55a7d4
CRs-Fixed: 2933525
parent 1be4a31b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -668,7 +668,11 @@ void target_if_cfr_rx_tlv_process(struct wlan_objmgr_pdev *pdev, void *nbuf)
		goto done;
	}

	if (pcfr->rcc_param.vdev_id == CFR_INVALID_VDEV_ID)
		vdev = wlan_objmgr_pdev_get_first_vdev(pdev, WLAN_CFR_ID);
	else
		vdev = wlan_objmgr_get_vdev_by_id_from_pdev(
				pdev, pcfr->rcc_param.vdev_id, WLAN_CFR_ID);
	if (qdf_unlikely(!vdev)) {
		cfr_debug("vdev is null\n");
		goto done;