wlan-ap-Telecominfraproject/feeds/ipq807x/mac80211/patches/193-ath11k-war-pdevid-for-phyb2g-mode.patch
John Crispin 3affbc1cad QualComm/AX: add Hawkeye and Cypress support
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>
2020-07-23 18:54:03 +02:00

35 lines
1.2 KiB
Diff

From 2c7950b7bdebbf986b18ad09e18a168bf5ddc3eb Mon Sep 17 00:00:00 2001
From: P Praneesh <ppranees@codeaurora.org>
Date: Tue, 16 Jun 2020 17:20:43 +0530
Subject: [PATCH] ath11k: war firmware pdevid for phyb2g hw mode
For phyb2g mode firmware sends pdevid 1 instead of
pdevid 2. since firmware changes are not yet merged
add this WAR for fixed pdevid 2 if hardware mode is PHYB2G.
Signed-off-by: P Praneesh <ppranees@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/wmi.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
index c6939b8..479b5ed 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.c
+++ b/drivers/net/wireless/ath/ath11k/wmi.c
@@ -359,7 +359,11 @@ ath11k_pull_mac_phy_cap_svc_ready_ext(struct ath11k_pdev_wmi *wmi_handle,
mac_phy_caps = wmi_mac_phy_caps + phy_idx;
- pdev->pdev_id = mac_phy_caps->pdev_id;
+ if (hw_mode_id == WMI_HOST_HW_MODE_2G_PHYB)
+ pdev->pdev_id = WMI_HOST_PDEV_ID_2;
+ else
+ pdev->pdev_id = mac_phy_caps->pdev_id;
+
pdev_cap->supported_bands = mac_phy_caps->supported_bands;
pdev_cap->ampdu_density = mac_phy_caps->ampdu_density;
--
2.7.4