aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath6kl/debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c
index 7b1c9aee175e..dd377852a0ba 100644
--- a/drivers/net/wireless/ath/ath6kl/debug.c
+++ b/drivers/net/wireless/ath/ath6kl/debug.c
@@ -624,8 +624,9 @@ static ssize_t ath6kl_endpoint_stats_read(struct file *file,
624 unsigned int buf_len, len = 0; 624 unsigned int buf_len, len = 0;
625 ssize_t ret_cnt; 625 ssize_t ret_cnt;
626 626
627 buf_len = 1000 + ENDPOINT_MAX * 100; 627 buf_len = sizeof(struct htc_endpoint_stats) / sizeof(u32) *
628 buf = kzalloc(buf_len, GFP_KERNEL); 628 (25 + ENDPOINT_MAX * 11);
629 buf = kmalloc(buf_len, GFP_KERNEL);
629 if (!buf) 630 if (!buf)
630 return -ENOMEM; 631 return -ENOMEM;
631 632
@@ -640,6 +641,7 @@ static ssize_t ath6kl_endpoint_stats_read(struct file *file,
640 EPSTAT(tx_dropped); 641 EPSTAT(tx_dropped);
641 EPSTAT(tx_cred_rpt); 642 EPSTAT(tx_cred_rpt);
642 EPSTAT(cred_rpt_from_rx); 643 EPSTAT(cred_rpt_from_rx);
644 EPSTAT(cred_rpt_from_other);
643 EPSTAT(cred_rpt_ep0); 645 EPSTAT(cred_rpt_ep0);
644 EPSTAT(cred_from_rx); 646 EPSTAT(cred_from_rx);
645 EPSTAT(cred_from_other); 647 EPSTAT(cred_from_other);