From d9c9199c8363c6e61a211e3d556240e129e9abd8 Mon Sep 17 00:00:00 2001 From: Star Chang Date: Tue, 20 Sep 2022 07:07:07 +0000 Subject: Add TWT statistic logs to dumpstate for bugreport. Bug: 253348062 Test: dump bugreport ok Change-Id: I2a1edafa78113e4f48d22244151c3a1500fe7f71 Signed-off-by: Star Chang --- dumpstate/Dumpstate.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 §ionName) { 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 -- cgit v1.2.3