From 8be9c512fc68220b02f194f0defe22bcb3747d25 Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Wed, 23 Nov 2022 12:09:14 +0800 Subject: [PATCH] qcacmn: Use fixed pdev id for CFR on HMT Host and FW have agreement about using fixed pdev id for CFR on HMT. Since it's different to legacy chip for concurrency case or get pdev id base band. Change-Id: I2b16876244cf8988e8855752844917fbf0154f54 CRs-Fixed: 3312489 --- target_if/cfr/src/target_if_cfr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/target_if/cfr/src/target_if_cfr.c b/target_if/cfr/src/target_if_cfr.c index 268b10a946..bb12a3aa29 100644 --- a/target_if/cfr/src/target_if_cfr.c +++ b/target_if/cfr/src/target_if_cfr.c @@ -529,6 +529,17 @@ static uint8_t target_if_cfr_get_pdev_id(struct wlan_objmgr_pdev *pdev) { return target_if_cfr_get_mac_id(pdev); } +#elif defined(QCA_WIFI_QCA6750) +static uint8_t target_if_cfr_get_pdev_id(struct wlan_objmgr_pdev *pdev) +{ + /* Host and FW have agreement about using fixed pdev id for + * CFR on HMT, FW will get correct mac id if host pass soc + * pdev id when start CFR. Since mac id in FW side is + * different to legacy chip if it's concurrency case or 2.4GHz + * band only case or 5/6GHz band only case. + */ + return WMI_HOST_PDEV_ID_SOC; +} #else static uint8_t target_if_cfr_get_pdev_id(struct wlan_objmgr_pdev *pdev) {