Add TWT statistic logs to dumpstate for bugreport. am: d9c9199c83

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19999827

Change-Id: I538bc2ba907d859d85950cd7431afcb600655a20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Star Chang 2022-11-04 02:10:03 +00:00 committed by Automerger Merge Worker
commit 23775cefc4

View file

@ -286,6 +286,8 @@ void Dumpstate::dumpTextSection(int fd, const std::string &sectionName) {
void Dumpstate::dumpWlanSection(int fd) { void Dumpstate::dumpWlanSection(int fd) {
// Dump firmware symbol table for firmware log decryption // Dump firmware symbol table for firmware log decryption
DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); 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 // Dump items related to power and battery