Re: [PATCH v3 4/4] wifi: ath12k: Connect to the QMI server belonging to the device owned by this driver
From: Raj Kumar Bhagat
Date: Tue Sep 22 2026 - 14:06:33 EST
On 22-09-2026 19:11, Manivannan Sadhasivam via B4 Relay wrote:
From: Manivannan Sadhasivam<manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
When two identical ath12k PCIe devices are connected to the same host, both
advertise the WLFW service with the same service and instance id. The QMI
lookup reports both servers to each device, so a device may connect to the
firmware running on the other device.
But now, QRTR provides each MHI endpoint a unique node id which is
different from the node id announced by the device. So use the same id to
pick the correct server. Add a get_qrtr_node_id() HIF callback that returns
the node id derived from the MHI controller index and zero for transports
that do not assign one. In the new_server callback, skip any service whose
node id does not match. A node id of zero disables the check, so transports
that do not assign one keep their current behavior.
Tested-on: 2x WCN7850 hw2.0 WLAN.IOE_HMT.1.1-00018-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1
Tested-on: 1x WCN6855 ath11k + 1x WCN7850 ath12k
Tested-by: Juha-Matti Tilli<juha-matti.tilli@xxxxxx>
Reviewed-by: Vasanthakumar Thiagarajan<vasanthakumar.thiagarajan@xxxxxxxxxxxxxxxx>
Signed-off-by: Manivannan Sadhasivam<manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
Tested-by: Raj Kumar Bhagat <raj.bhagat@xxxxxxxxxxxxxxxx>
Validated in ipq9574-rdp433 with three QCN9274 PCIe devices.