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>
This commit is contained in:
Star Chang 2022-09-20 07:07:07 +00:00
parent 712cb29b4d
commit d9c9199c83

View file

@ -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