From: Sujith Manoharan
With the new firmware, various new services have been added.
Add them to the service list and display them in the
"wmi_services" file.
Signed-off-by: Sujith Manoharan
---
drivers/net/wireless/ath/ath10k/debug.c | 7 +--
drivers/net/wireless/ath/ath10k/wmi.h | 12
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/debug.c
b/drivers/net/wireless/ath/ath10k/debug.c
index f418370..499034b 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -126,11 +126,6 @@ static ssize_t ath10k_read_wmi_services(struct file *file,
if (len > buf_len)
len = buf_len;
- len += scnprintf(buf + len, buf_len - len, "\n");
- len += scnprintf(buf + len, buf_len - len, "%30s\n",
-"ath10k WMI supported services");
- len += scnprintf(buf + len, buf_len - len, "%30s\n\n",
-"=");
for (i = 0; i < WMI_SERVICE_LAST; i++) {
if (WMI_SERVICE_IS_ENABLED(ar->debug.wmi_service_bitmap, i))
status = "enabled";
@@ -138,7 +133,7 @@ static ssize_t ath10k_read_wmi_services(struct file *file,
status = "disabled";
len += scnprintf(buf + len, buf_len - len,
-" - 0x%02x - %20s - %s\n",
+"0x%02x - %20s - %s\n",
i, wmi_service_name(i), status);
}
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h
b/drivers/net/wireless/ath/ath10k/wmi.h
index d2c5d32..68a8484 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.h
+++ b/drivers/net/wireless/ath/ath10k/wmi.h
@@ -91,6 +91,8 @@ enum wmi_service_id {
WMI_SERVICE_RTT, /* RTT (round trip time) support */
WMI_SERVICE_RATECTRL, /* Rate-control */
WMI_SERVICE_WOW, /* WOW Support */
+ WMI_SERVICE_RATECTRL_CACHE, /* Rate-control caching */
+ WMI_SERVICE_IRAM_TIDS,/* TIDs in IRAM */
WMI_SERVICE_ARPNS_OFFLOAD,/* ARP NS Offload support */
WMI_SERVICE_NLO, /* Network list offload service */
WMI_SERVICE_GTK_OFFLOAD, /* GTK offload */
@@ -143,6 +145,10 @@ static inline char *wmi_service_name(int service_id)
return "RATECTRL";
case WMI_SERVICE_WOW:
return "WOW";
+ case WMI_SERVICE_RATECTRL_CACHE:
+ return "RATECTRL CACHE";
+ case WMI_SERVICE_IRAM_TIDS:
+ return "IRAM TIDS";
case WMI_SERVICE_ARPNS_OFFLOAD:
return "ARPNS_OFFLOAD";
case WMI_SERVICE_NLO:
@@ -163,6 +169,12 @@ static inline char *wmi_service_name(int service_id)
return "FORCE FW HANG";
case WMI_SERVICE_GPIO:
return "GPIO";
+ case WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM:
+ return "MODULATED DTIM";
+ case WMI_STA_UAPSD_BASIC_AUTO_TRIG:
+ return "BASIC UAPSD";
+ case WMI_STA_UAPSD_VAR_AUTO_TRIG:
+ return "VAR UAPSD";
case WMI_SERVICE_TX_ENCAP:
return "TX ENCAP";
default:
--
1.8.2.2
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel