mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 02:43:38 +00:00
This series is based on * 2020-07-10 ipq6018-ilq-11-0_qca_oem-034672b0676c37b1f4519e5720e18e95fe6236ef Add support for * qsdk kernel/v4.4 * qsdk ethernet subsystem * v5.7 ath11k backport + QualComm staging patches (wlan_ap_1.0) * ath11k-firmware * hostapd/iw/... Feature support * full boot, system detection * sysupgrade to nand * HE support via latest hostapd * driver support for usb, crypto, hwmon, cpufreq, ... Missing * NSS/HW flow offloading - FW blob is not redistributable Using the qsdk v4.4 is an intermediate solution while the vanilla is being tested. Vanilla kernel is almost on feature par. Work has already started to upstream the ethernet and switch drivers. Once complete the target will be fully upstream. Signed-off-by: John Crispin <john@phrozen.org>
54 lines
1.8 KiB
Diff
54 lines
1.8 KiB
Diff
From 89aec0a67ee30cd11762aede86b3edfdb2433663 Mon Sep 17 00:00:00 2001
|
|
From: Venkateswara Naralasetty <vnaralas@codeaurora.org>
|
|
Date: Thu, 2 Jul 2020 12:04:34 +0530
|
|
Subject: [PATCH] ath11k: load appropriate board data based on board id
|
|
|
|
This patch adds support to read board id from dts and load
|
|
appropriate board data.
|
|
|
|
Adding the patch which was removed as a part of commit id -
|
|
Ib950b3271fede9ccf7d53fe9629c38ee729a0ef5
|
|
|
|
Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
|
|
Signed-off-by: Lavanya Suresh <lavaks@codeaurora.org>
|
|
---
|
|
drivers/net/wireless/ath/ath11k/qmi.c | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c
|
|
index f6d178b..c496aa9 100644
|
|
--- a/drivers/net/wireless/ath/ath11k/qmi.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
|
|
@@ -2464,10 +2464,12 @@ static int ath11k_qmi_assign_target_mem_chunk(struct ath11k_base *ab)
|
|
|
|
static int ath11k_qmi_request_target_cap(struct ath11k_base *ab)
|
|
{
|
|
+ struct device *dev = ab->dev;
|
|
struct qmi_wlanfw_cap_req_msg_v01 req;
|
|
struct qmi_wlanfw_cap_resp_msg_v01 resp;
|
|
struct qmi_txn txn = {};
|
|
int ret = 0;
|
|
+ unsigned int board_id;
|
|
|
|
memset(&req, 0, sizeof(req));
|
|
memset(&resp, 0, sizeof(resp));
|
|
@@ -2505,10 +2507,13 @@ static int ath11k_qmi_request_target_cap(struct ath11k_base *ab)
|
|
ab->qmi.target.chip_family = resp.chip_info.chip_family;
|
|
}
|
|
|
|
- if (resp.board_info_valid)
|
|
+ if (!of_property_read_u32(dev->of_node, "qcom,board_id", &board_id) && board_id != 0xFF) {
|
|
+ ab->qmi.target.board_id = board_id;
|
|
+ } else if (resp.board_info_valid) {
|
|
ab->qmi.target.board_id = resp.board_info.board_id;
|
|
- else
|
|
+ } else {
|
|
ab->qmi.target.board_id = 0xFF;
|
|
+ }
|
|
|
|
if (resp.soc_info_valid)
|
|
ab->qmi.target.soc_id = resp.soc_info.soc_id;
|
|
--
|
|
2.7.4
|
|
|