mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
93ae4353cd
ath11k is the upstream driver for Qualcomm 802.11ax radios, both for the internal AHB and PCI based cards. This commit does however only provide PCI support while AHB will follow but its SoC specific so it will require an OpenWrt target first. It differs a bit from ath10k as it requires stuff like QRTR, MHI and QMI helpers. PCI variant requires qrtr-mhi and mhi-bus which backports do provide, however we are dropping those in a patch as they will conflict with support for the AHB variant as that one requires qrtr-smd which in turn requires RPMSG and GLINK and its not feasable to provide those in backports as they are really SoC specific. QRTR and MHI in kernel 5.10 are not usable and backporting the changes is not easy as they have changed drastically from 5.10 to 5.15 ath11k will only be available on targets that use kernel 5.15. Signed-off-by: Robert Marko <robimarko@gmail.com>
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From ed3725e15a154ebebf44e0c34806c57525483f92 Mon Sep 17 00:00:00 2001
|
|
From: Rahul Bhattacharjee <quic_rbhattac@quicinc.com>
|
|
Date: Fri, 21 Oct 2022 14:31:26 +0530
|
|
Subject: [PATCH] wifi: ath11k: Fix qmi_msg_handler data structure
|
|
initialization
|
|
|
|
qmi_msg_handler is required to be null terminated by QMI module.
|
|
There might be a case where a handler for a msg id is not present in the
|
|
handlers array which can lead to infinite loop while searching the handler
|
|
and therefore out of bound access in qmi_invoke_handler().
|
|
Hence update the initialization in qmi_msg_handler data structure.
|
|
|
|
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1
|
|
|
|
Signed-off-by: Rahul Bhattacharjee <quic_rbhattac@quicinc.com>
|
|
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
|
|
Link: https://lore.kernel.org/r/20221021090126.28626-1-quic_rbhattac@quicinc.com
|
|
---
|
|
drivers/net/wireless/ath/ath11k/qmi.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/qmi.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
|
|
@@ -3090,6 +3090,9 @@ static const struct qmi_msg_handler ath1
|
|
sizeof(struct qmi_wlfw_fw_init_done_ind_msg_v01),
|
|
.fn = ath11k_qmi_msg_fw_init_done_cb,
|
|
},
|
|
+
|
|
+ /* end of list */
|
|
+ {},
|
|
};
|
|
|
|
static int ath11k_qmi_ops_new_server(struct qmi_handle *qmi_hdl,
|