wifi: ath12k: set mlo_capable_flags based on QMI PHY capability
authorRaj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Tue, 23 Apr 2024 09:32:06 +0000 (12:32 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 24 Apr 2024 15:34:11 +0000 (18:34 +0300)
commitda3cbd88e780d206795ac3f2b97b6ade9fd48322
tree3f7804bccc9f06fd7d7f76422e824d1c03f718a0
parentae6ec4a38aa4da73f5d80f61138e03500f00f898
wifi: ath12k: set mlo_capable_flags based on QMI PHY capability

Currently, mlo_capable_flags is set to zero if dualmac device is
detected based on One Time Programmable (OTP) register value.
This is not generic and in future dualmac devices may support
Single Link Operation (SLO) and Multi Link Operation (MLO).

Thus, set mlo_capable_flags based on 'single_chip_mlo_support'
parameter from QMI PHY capability response message from the firmware.
Also, add check on mlo_capable_flags to disable MLO parameter in the
host capability QMI request message.

If the firmware does not respond with this optional parameter
'single_chip_mlo_support' in QMI PHY capability response, default
ab->mlo_capable_flags is used.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00209-QCAHKSWPL_SILICONZ-1

Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240418125609.3867730-3-quic_rajkbhag@quicinc.com
drivers/net/wireless/ath/ath12k/mhi.c
drivers/net/wireless/ath/ath12k/qmi.c