Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3da414f authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I64bf3d53

* changes:
  Add FW log dump for bcm4329
parents 4769f6ef 64bf3d53
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@ ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

ifdef BOARD_WLAN_DEVICE
LOCAL_CFLAGS := -DFWDUMP_$(BOARD_WLAN_DEVICE)
endif

LOCAL_SRC_FILES := dumpstate.c utils.c

LOCAL_MODULE := dumpstate
+4 −0
Original line number Diff line number Diff line
@@ -78,6 +78,10 @@ static void dumpstate(int full) {
        PRINT("");
        PRINT("Routes:");
        DUMP("/proc/net/route");
#ifdef FWDUMP_bcm4329
        PRINT("Dump wlan FW log");
        EXEC_XBIN6("su", "root","dhdutil","-i","eth0","upload","/data/local/tmp/wlan_crash.dump");
#endif
        PRINT("------ SYSTEM PROPERTIES ------");
        print_properties();
        PRINT("------ KERNEL LOG ------");
+9 −0
Original line number Diff line number Diff line
@@ -124,6 +124,15 @@
    run_command(&c, TIMEOUT);                       \
}

#define EXEC_XBIN6(cmd, a1, a2, a3, a4, a5, a6)  \
{                                           \
    static struct Command c = {             \
        "/system/xbin/" cmd,                \
        { cmd, a1, a2, a3, a4, a5, a6, 0 }  \
    };                                      \
    run_command(&c, TIMEOUT);               \
}

#define PROPERTY(name) print_property(name)

struct Command {