summaryrefslogtreecommitdiff
path: root/tools/fwdebuglog
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fwdebuglog')
-rw-r--r--tools/fwdebuglog/cld-fwlog-netlink.c8
-rw-r--r--tools/fwdebuglog/cld-fwlog-parser.c8
-rw-r--r--tools/fwdebuglog/parser.c8
3 files changed, 21 insertions, 3 deletions
diff --git a/tools/fwdebuglog/cld-fwlog-netlink.c b/tools/fwdebuglog/cld-fwlog-netlink.c
index 1fbd9789723a..1114d42747b5 100644
--- a/tools/fwdebuglog/cld-fwlog-netlink.c
+++ b/tools/fwdebuglog/cld-fwlog-netlink.c
@@ -252,7 +252,7 @@ static void stop(int signum)
int main(int argc, char *argv[])
{
- int res =0;
+ unsigned int res =0;
unsigned char *eventbuf;
unsigned char *dbgbuf;
int c, rc = 0;
@@ -409,7 +409,7 @@ int main(int argc, char *argv[])
continue;
}
slot = (struct dbglog_slot *)dbgbuf;
- timestamp = get_le32((unsigned char *)&slot->length);
+ timestamp = get_le32((unsigned char *)&slot->timestamp);
length = get_le32((unsigned char *)&slot->length);
dropped = get_le32((unsigned char *)&slot->dropped);
if (!((optionflag & SILENT_FLAG) == SILENT_FLAG)) {
@@ -418,7 +418,9 @@ int main(int argc, char *argv[])
timestamp, length, dropped);
}
fseek(log_out, record * RECLEN, SEEK_SET);
- if ((res = fwrite(dbgbuf, RECLEN, 1, log_out)) != 1){
+ /* Diag type is not required so +4 */
+ if ((res = fwrite((dbgbuf+sizeof(slot->diag_type)), RECLEN,
+ 1, log_out)) != 1){
perror("fwrite");
break;
}
diff --git a/tools/fwdebuglog/cld-fwlog-parser.c b/tools/fwdebuglog/cld-fwlog-parser.c
index 888211066da1..6eb1633eb9f9 100644
--- a/tools/fwdebuglog/cld-fwlog-parser.c
+++ b/tools/fwdebuglog/cld-fwlog-parser.c
@@ -699,6 +699,7 @@ char * DBG_MSG_ARR[WLAN_MODULE_ID_MAX][MAX_DBG_MSGS] =
"BEACON_EVENT_EARLY_RX_SLEEP_SLOP",
"BEACON_EVENT_EARLY_RX_CONT_BMISS_TIMEOUT",
"BEACON_EVENT_EARLY_RX_PAUSE_SKIP_BCN_NUM",
+ "BEACON_EVENT_EARLY_RX_BCN_TYPE",
},
{ /* Offload Mgr */
"OFFLOAD_MGR_DBGID_DEFINITION_START",
@@ -2328,6 +2329,13 @@ dbglog_beacon_print_handler(
args[0]);
}
break;
+ case BEACON_EVENT_EARLY_RX_BCN_TYPE:
+ if (numargs == 1) {
+ dbglog_printf(timestamp, vap_id,
+ "early_rx bcn type:%d",
+ args[0]);
+ }
+ break;
default:
return FALSE;
}
diff --git a/tools/fwdebuglog/parser.c b/tools/fwdebuglog/parser.c
index 3f39902809a3..3b555aa6613c 100644
--- a/tools/fwdebuglog/parser.c
+++ b/tools/fwdebuglog/parser.c
@@ -708,6 +708,7 @@ char * DBG_MSG_ARR[WLAN_MODULE_ID_MAX][MAX_DBG_MSGS] =
"BEACON_EVENT_EARLY_RX_SLEEP_SLOP",
"BEACON_EVENT_EARLY_RX_CONT_BMISS_TIMEOUT",
"BEACON_EVENT_EARLY_RX_PAUSE_SKIP_BCN_NUM",
+ "BEACON_EVENT_EARLY_RX_BCN_TYPE",
},
{ /* Offload Mgr */
"OFFLOAD_MGR_DBGID_DEFINITION_START",
@@ -2335,6 +2336,13 @@ dbglog_beacon_print_handler(
args[0]);
}
break;
+ case BEACON_EVENT_EARLY_RX_BCN_TYPE:
+ if (numargs == 1) {
+ dbglog_printf(timestamp, vap_id,
+ "early_rx skip bcn num:%d",
+ args[0]);
+ }
+ break;
default:
return FALSE;
}