diff mbox

ath10k: Increase buffer len to print all wmi services.

Message ID 1499059956-30051-1-git-send-email-c_traja@qti.qualcomm.com (mailing list archive)
State Accepted
Commit 75e0dde2abf6ae8561b133c4069c473641d50c12
Delegated to: Kalle Valo
Headers show

Commit Message

c_traja@qti.qualcomm.com July 3, 2017, 5:32 a.m. UTC
From: Tamizh chelvam <c_traja@qti.qualcomm.com>

All wmi_services are not printing when we give below command.

cat /sys/kernel/debug/ieee80211/phyX/ath10k/wmi_services

This patch increases the buffer_len to 8192 to print all the wmi_services.

Signed-off-by: Tamizh chelvam <c_traja@qti.qualcomm.com>
---
 drivers/net/wireless/ath/ath10k/debug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo July 6, 2017, 12:19 p.m. UTC | #1
c_traja@qti.qualcomm.com wrote:

> All wmi_services are not printing when we give below command.
> 
> cat /sys/kernel/debug/ieee80211/phyX/ath10k/wmi_services
> 
> This patch increases the buffer_len to 8192 to print all the wmi_services.
> 
> Signed-off-by: Tamizh chelvam <c_traja@qti.qualcomm.com>
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

Patch applied to ath-next branch of ath.git, thanks.

75e0dde2abf6 ath10k: increase buffer len to print all wmi services
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index 389fcb7..56404fe 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -237,7 +237,7 @@  static ssize_t ath10k_read_wmi_services(struct file *file,
 {
 	struct ath10k *ar = file->private_data;
 	char *buf;
-	size_t len = 0, buf_len = 4096;
+	size_t len = 0, buf_len = 8192;
 	const char *name;
 	ssize_t ret_cnt;
 	bool enabled;