]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: ath12k: fix link capable flags
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Fri, 5 Apr 2024 12:22:09 +0000 (15:22 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 8 Apr 2024 14:37:53 +0000 (17:37 +0300)
By default driver supports intra-device SLO/MLO, the link capability flags
reflect this. When the QMI PHY capability learning fails driver not enable
the MLO parameter in the host capability QMI request message. In this case,
reset the device link capability flags to zero (SLO/MLO not support) to
accurately represent the capabilities.

Found in code review.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1

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/20240403042056.1504209-3-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/qmi.c

index 3f0d2b99127a1caed28c918c5c7785ae51567601..db8ba5fec2aef6a8dd329f6749edfc84c0c1cf7e 100644 (file)
@@ -2006,6 +2006,8 @@ static void ath12k_host_cap_parse_mlo(struct ath12k_base *ab,
        int i;
 
        if (!ab->qmi.num_radios || ab->qmi.num_radios == U8_MAX) {
+               ab->mlo_capable_flags = 0;
+
                ath12k_dbg(ab, ATH12K_DBG_QMI,
                           "skip QMI MLO cap due to invalid num_radio %d\n",
                           ab->qmi.num_radios);