summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/wifilogger_diag.cpp
diff options
context:
space:
mode:
authorlesl <lesl@google.com>2019-04-25 17:11:02 +0800
committerlesl <lesl@google.com>2019-04-25 17:11:47 +0800
commitcb31ca7758aa179a0e50fa738ed70164de0441a3 (patch)
tree5b13c5da04ba99f3e6eb3615f92002ccaaabd954 /qcwcn/wifi_hal/wifilogger_diag.cpp
parent3929c85d870259884a13c6efe3c05e6b97cae649 (diff)
downloadwlan-cb31ca7758aa179a0e50fa738ed70164de0441a3.tar.gz
Wifi-hal: Enable pktlog when verbose log on.
In current desgin, packet fate will start logging when log level change to “VERBOSE_DEBUG_PROBLEM”. But in current design, no any use case will change log level to “VERBOSE_DEBUG_PROBLEM”. Framework use “VERBOSE_REPRO_PROBLEM” when user turn on wifi verbose logging in developer option. Modify pkt ring buffer check condition to VERBOSE_DEBUG_PROBLE to enable pktlog with verbose on. Bug:74360031 Test: Manual Test Change-Id: I0d600797108055adafcedd4ac7664b3781c3b74c
Diffstat (limited to 'qcwcn/wifi_hal/wifilogger_diag.cpp')
-rw-r--r--qcwcn/wifi_hal/wifilogger_diag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qcwcn/wifi_hal/wifilogger_diag.cpp b/qcwcn/wifi_hal/wifilogger_diag.cpp
index 0da9a3f..4dd9810 100644
--- a/qcwcn/wifi_hal/wifilogger_diag.cpp
+++ b/qcwcn/wifi_hal/wifilogger_diag.cpp
@@ -1309,7 +1309,7 @@ static wifi_error update_stats_to_ring_buf(hal_info *info,
pRingBufferEntry->timestamp = time.tv_usec + time.tv_sec * 1000 * 1000;
// Write if verbose and handler is set
- if ((info->rb_infos[PKT_STATS_RB_ID].verbose_level >= VERBOSE_DEBUG_PROBLEM)
+ if ((info->rb_infos[PKT_STATS_RB_ID].verbose_level >= VERBOSE_REPRO_PROBLEM)
&& info->on_ring_buffer_data) {
ring_buffer_write(&info->rb_infos[PKT_STATS_RB_ID],
(u8*)pRingBufferEntry,
@@ -2110,7 +2110,7 @@ wifi_error write_per_packet_stats_to_rb(hal_info *info, u8 *buf, u16 length)
rb_entry_hdr.timestamp = time.tv_usec + time.tv_sec * 1000 * 1000;
/* Write if verbose and handler is set */
- if (info->rb_infos[PKT_STATS_RB_ID].verbose_level >= 3 &&
+ if (info->rb_infos[PKT_STATS_RB_ID].verbose_level >= VERBOSE_REPRO_PROBLEM &&
info->on_ring_buffer_data) {
/* Write header and payload separately to avoid
* complete payload memcpy */