Browse Source

qcacmn: Add wlan driver log msgs into the minidump

As part of minidump enhancement feature, incorporate wlan driver
log_msg data structure into the minidump.

Change-Id: Ic68e199c645bf8c8be50e105391b5c6efa90decc
CRs-Fixed: 2946292
Aditya Kodukula 4 years ago
parent
commit
f94320aa61
1 changed files with 4 additions and 1 deletions
  1. 4 1
      utils/logging/src/wlan_logging_sock_svc.c

+ 4 - 1
utils/logging/src/wlan_logging_sock_svc.c

@@ -222,11 +222,14 @@ static struct log_msg gplog_msg[MAX_LOGMSG_COUNT];
 
 static inline QDF_STATUS allocate_log_msg_buffer(void)
 {
+	qdf_minidump_log(gplog_msg, sizeof(gplog_msg), "wlan_logs");
 	return QDF_STATUS_SUCCESS;
 }
 
 static inline void free_log_msg_buffer(void)
-{ }
+{
+	qdf_minidump_remove(gplog_msg, sizeof(gplog_msg), "wlan_logs");
+}
 #endif
 
 /* Need to call this with spin_lock acquired */