summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStar Chang <starchang@google.com>2022-09-20 07:07:07 +0000
committerStar Chang <starchang@google.com>2022-11-04 01:31:19 +0000
commitd9c9199c8363c6e61a211e3d556240e129e9abd8 (patch)
treed6e6dcc9a98ed9a9ada9d404d7451ed79ba29b06
parent712cb29b4d677c235636f7bdff776660937bc8df (diff)
downloadgs201-d9c9199c8363c6e61a211e3d556240e129e9abd8.tar.gz
Add TWT statistic logs to dumpstate for bugreport.
Bug: 253348062 Test: dump bugreport ok Change-Id: I2a1edafa78113e4f48d22244151c3a1500fe7f71 Signed-off-by: Star Chang <starchang@google.com>
-rw-r--r--dumpstate/Dumpstate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp
index 5c3e9cd..8d95cb6 100644
--- a/dumpstate/Dumpstate.cpp
+++ b/dumpstate/Dumpstate.cpp
@@ -286,6 +286,8 @@ void Dumpstate::dumpTextSection(int fd, const std::string &sectionName) {
void Dumpstate::dumpWlanSection(int fd) {
// Dump firmware symbol table for firmware log decryption
DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc");
+ RunCommandToFd(fd, "WLAN TWT Dump", {"/vendor/bin/sh", "-c",
+ "cat /sys/wlan_ptracker/twt/*"});
}
// Dump items related to power and battery