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

Commit 9abfeb41 authored by Dmitry Shmidt's avatar Dmitry Shmidt
Browse files

bugreport: Add ping wlan gateway, dns1 and dns2 servers



Change-Id: I91c2b9be217fabe8f854c637c972377bc811cca8
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent 8b41bc91
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -114,6 +114,15 @@ static void dumpstate() {
    run_command("WIFI NETWORKS", 20,
            "su", "root", "wpa_cli", "list_networks", NULL);

    property_get("dhcp.wlan0.gateway", network, "");
    if (network[0])
        run_command("PING GATEWAY", 10, "su", "root", "ping", "-c", "3", "-i", ".5", network, NULL);
    property_get("dhcp.wlan0.dns1", network, "");
    if (network[0])
        run_command("PING DNS1", 10, "su", "root", "ping", "-c", "3", "-i", ".5", network, NULL);
    property_get("dhcp.wlan0.dns2", network, "");
    if (network[0])
        run_command("PING DNS2", 10, "su", "root", "ping", "-c", "3", "-i", ".5", network, NULL);
#ifdef FWDUMP_bcm4329
    run_command("DUMP WIFI STATUS", 20,
            "su", "root", "dhdutil", "-i", "wlan0", "dump", NULL);