summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2012-11-07 10:42:05 -0800
committerDmitry Shmidt <dimitrysh@google.com>2012-11-07 10:42:05 -0800
commitc11f56e5615c5d388c072705322df5bcf22c2012 (patch)
treee077ef213e0d6d6481c34631e868e60af0a65358
parentd8e8e66220cd71486a3b545096a1cdc298dee5fd (diff)
downloadframeworks_native-c11f56e5615c5d388c072705322df5bcf22c2012.zip
frameworks_native-c11f56e5615c5d388c072705322df5bcf22c2012.tar.gz
frameworks_native-c11f56e5615c5d388c072705322df5bcf22c2012.tar.bz2
bugreport: Add wlan FW counters dump for bcmdhd
Bug: 7494877 Change-Id: I4d24dbcf7596777ec02ab1312c2ab996ba7688f1 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r--cmds/dumpstate/dumpstate.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index f3fcca0..bb54e4b 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -188,6 +188,10 @@ static void dumpstate() {
run_command("WIFI NETWORKS", 20,
SU_PATH, "root", "wpa_cli", "list_networks", NULL);
+#ifdef FWDUMP_bcmdhd
+ run_command("DUMP WIFI INTERNAL COUNTERS", 20,
+ SU_PATH, "root", "wlutil", "counters", NULL);
+#endif
property_get("dhcp.wlan0.gateway", network, "");
if (network[0])
run_command("PING GATEWAY", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL);
@@ -197,7 +201,7 @@ static void dumpstate() {
property_get("dhcp.wlan0.dns2", network, "");
if (network[0])
run_command("PING DNS2", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL);
-#ifdef FWDUMP_bcm4329
+#ifdef FWDUMP_bcmdhd
run_command("DUMP WIFI STATUS", 20,
SU_PATH, "root", "dhdutil", "-i", "wlan0", "dump", NULL);
run_command("DUMP WIFI INTERNAL COUNTERS", 20,