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
This commit is contained in:
Aditya Kodukula
2021-05-10 15:55:06 -07:00
committed by Madan Koyyalamudi
parent 55279efffb
commit f94320aa61

View File

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