aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/debug.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-09-02 03:32:05 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-02 03:32:05 -0400
commitbc07ddb29a7b71ad009bcd84bee4c93908cf22b6 (patch)
tree4167151044211d1bea3e407ccd40b4e7a270f642 /drivers/net/wireless/ath/ath6kl/debug.c
parentaddb44be036dd5fc814be770ec4b90f08c820e76 (diff)
ath6kl: read fwlog from firmware ring buffer
Firmare sends the logs only when it's internal ring buffer is full. But if firmware crashes we need to retrieve the latest logs through diagnose window. This is now done everytime the debugfs file is read. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c
index 239c092d3e11..87de44d0ee33 100644
--- a/drivers/net/wireless/ath/ath6kl/debug.c
+++ b/drivers/net/wireless/ath/ath6kl/debug.c
@@ -247,6 +247,9 @@ static ssize_t ath6kl_fwlog_read(struct file *file, char __user *user_buf,
247 if (!buf) 247 if (!buf)
248 return -ENOMEM; 248 return -ENOMEM;
249 249
250 /* read undelivered logs from firmware */
251 ath6kl_read_fwlogs(ar);
252
250 spin_lock_bh(&ar->debug.fwlog_lock); 253 spin_lock_bh(&ar->debug.fwlog_lock);
251 254
252 while (len < buf_len && !ath6kl_debug_fwlog_empty(ar)) { 255 while (len < buf_len && !ath6kl_debug_fwlog_empty(ar)) {