wifi: ath12k: add QMI PHY capability learn support
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Tue, 16 Jan 2024 12:33:07 +0000 (14:33 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 17 Jan 2024 08:36:49 +0000 (10:36 +0200)
commit53a65445c144f99a6769788d0c04b64cdbb497d4
tree96c42dae447b51080187196093e0da611cbe74b4
parent76fece36f17a535c75ebc83d026bacad1263fd37
wifi: ath12k: add QMI PHY capability learn support

Currently, the number of PHY is learned from the firmware service ready
event message. However, on the QCN9274 platform, number of PHY is a
variable parameter. To enable MLO capability in the QMI host capability
request message, the driver needs the PHY count information earlier than
the firmware service ready event. Therefore, a new QMI message,
"PHY capability message", is introduced to retrieve this information.
This message allows the driver to fill in the MLO parameter in the QMI
host capability request message. If the new QMI PHY capability message
fails, the default configuration in the HW params will be used.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240113001659.1022465-3-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/core.c
drivers/net/wireless/ath/ath12k/qmi.c
drivers/net/wireless/ath/ath12k/qmi.h