Historical ath9k-devel archives
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH] ath10k: Add new service IDs
@ 2013-05-09  8:06 Sujith Manoharan
  2013-05-14  4:37 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Sujith Manoharan @ 2013-05-09  8:06 UTC (permalink / raw)
  To: ath9k-devel

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

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 <c_manoha@qca.qualcomm.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-14  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09  8:06 [ath9k-devel] [PATCH] ath10k: Add new service IDs Sujith Manoharan
2013-05-14  4:37 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox