qcacmn: Add WMI command to enable wow mode logging
Add the WMI command WMI_DBGLOG_MOD_WOW_LOG_LEVEL to enable debug logs while in wow mode. Change-Id: Ia1902d989964a5e35f590a075a2de64a9f66d5b7 CRs-Fixed: 2810326
This commit is contained in:

committed by
snandini

parent
41dc191a51
commit
74b41a6d6a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011, 2014-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -102,7 +102,7 @@ int
|
||||
dbglog_set_timestamp_resolution(wmi_unified_t wmi_handle,
|
||||
uint16_t tsr);
|
||||
|
||||
/** Enable reporting. If it is set to false then Traget wont deliver
|
||||
/** Enable reporting. If it is set to false then Target wont deliver
|
||||
* any debug information
|
||||
*/
|
||||
int
|
||||
@@ -129,6 +129,19 @@ dbglog_set_log_lvl(wmi_unified_t wmi_handle, DBGLOG_LOG_LVL log_lvl);
|
||||
int
|
||||
dbglog_set_mod_log_lvl(wmi_unified_t wmi_handle, uint32_t mod_id_lvl);
|
||||
|
||||
/*
|
||||
* set the debug log level for wow module
|
||||
* mod_id_lvl : the format is more user friendly.
|
||||
* module_id = mod_id_lvl/10;
|
||||
* log_level = mod_id_lvl%10;
|
||||
* example : mod_id_lvl is 153. then module id is 15 and log level is 3.
|
||||
* this format allows user to pass a sinlge value
|
||||
* (which is the most convenient way for most of the OSs)
|
||||
* to be passed from user to the driver.
|
||||
*/
|
||||
int
|
||||
dbglog_set_mod_wow_log_lvl(wmi_unified_t wmi_handle, uint32_t mod_id_lvl);
|
||||
|
||||
/** Enable/Disable the logging for VAP */
|
||||
int
|
||||
dbglog_vap_log_enable(wmi_unified_t wmi_handle, uint16_t vap_id,
|
||||
@@ -237,6 +250,12 @@ dbglog_set_mod_log_lvl(wmi_unified_t wmi_handle, uint32_t mod_id_lvl)
|
||||
{
|
||||
return A_OK;
|
||||
}
|
||||
|
||||
static inline int
|
||||
dbglog_set_mod_wow_log_lvl(wmi_unified_t wmi_handle, uint32_t mod_id_lvl)
|
||||
{
|
||||
return A_OK;
|
||||
}
|
||||
#endif /* FEATURE_FW_LOG_PARSING */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user