From: Ben Greear <[email protected]>

They may be dumped through the firmware dump debugfs
file.

Signed-off-by: Ben Greear <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
---
 drivers/net/wireless/ath/ath10k/wmi.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/wmi.c 
b/drivers/net/wireless/ath/ath10k/wmi.c
index fffb15b1b50b..cd79858016f3 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -1210,6 +1210,12 @@ static int ath10k_wmi_event_debug_mesg(struct ath10k 
*ar, struct sk_buff *skb)
 
        trace_ath10k_wmi_dbglog(skb->data, skb->len);
 
+       /* First 4 bytes are a messages-dropped-due-to-overflow counter,
+        * and should not be recorded in the dbglog buffer, so we skip
+        * them.
+        */
+       ath10k_debug_dbglog_add(ar, skb->data + 4, skb->len - 4);
+
        return 0;
 }
 


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Reply via email to