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>
61 lines
1.8 KiB
Diff
61 lines
1.8 KiB
Diff
Index: backports-20191227-4.4.60-b805aa84b44f/drivers/net/wireless/ath/ath11k/debug.c
|
|
===================================================================
|
|
--- backports-20191227-4.4.60-b805aa84b44f.orig/drivers/net/wireless/ath/ath11k/debug.c
|
|
+++ backports-20191227-4.4.60-b805aa84b44f/drivers/net/wireless/ath/ath11k/debug.c
|
|
@@ -1129,6 +1129,8 @@ static ssize_t ath11k_debug_dump_soc_rin
|
|
if (!buf)
|
|
return -ENOMEM;
|
|
|
|
+ ath11k_hal_dump_srng_stats(ab);
|
|
+
|
|
len = ath11k_fill_bp_stats_buf(ab, buf, len, size);
|
|
|
|
retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
|
|
@@ -1137,6 +1139,13 @@ static ssize_t ath11k_debug_dump_soc_rin
|
|
return retval;
|
|
}
|
|
|
|
+static const struct file_operations fops_soc_ring_stats = {
|
|
+ .read = ath11k_debug_dump_soc_ring_stats,
|
|
+ .open = simple_open,
|
|
+ .owner = THIS_MODULE,
|
|
+ .llseek = default_llseek,
|
|
+};
|
|
+
|
|
static const struct file_operations fops_soc_dp_stats = {
|
|
.read = ath11k_debug_dump_soc_dp_stats,
|
|
.open = simple_open,
|
|
@@ -1163,6 +1172,9 @@ int ath11k_debug_pdev_create(struct ath1
|
|
debugfs_create_file("soc_dp_stats", 0600, ab->debugfs_soc, ab,
|
|
&fops_soc_dp_stats);
|
|
|
|
+ debugfs_create_file("soc_ring_stats", 0600, ab->debugfs_soc, ab,
|
|
+ &fops_soc_ring_stats);
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
@@ -1172,13 +1184,6 @@ void ath11k_debug_pdev_destroy(struct at
|
|
ab->debugfs_ath11k = NULL;
|
|
}
|
|
|
|
-static const struct file_operations fops_soc_ring_stats = {
|
|
- .read = ath11k_debug_dump_soc_ring_stats,
|
|
- .open = simple_open,
|
|
- .owner = THIS_MODULE,
|
|
- .llseek = default_llseek,
|
|
-};
|
|
-
|
|
int ath11k_debug_soc_create(struct ath11k_base *ab)
|
|
{
|
|
ab->debugfs_ath11k = debugfs_create_dir("ath11k", NULL);
|
|
@@ -1189,8 +1194,6 @@ int ath11k_debug_soc_create(struct ath11
|
|
return -ENOMEM;
|
|
}
|
|
|
|
- debugfs_create_file("soc_ring_stats", 0600, ab->debugfs_soc, ab,
|
|
- &fops_soc_ring_stats);
|
|
return 0;
|
|
}
|
|
|