wifi: debug wifi auto close issue [1/1]
authorRongjun Chen <rongjun.chen@amlogic.com>
Mon, 14 Jan 2019 07:28:11 +0000 (15:28 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Mon, 14 Jan 2019 07:28:11 +0000 (15:28 +0800)
PD#SWPL-4058

Problem:
wifi auto close

Solution:
add debug for wifi close

Verify:
franklin

Change-Id: Ie0b547f0e79949303ec323ef972a860e2694e64c

bcmdhd.1.363.59.144.x.cn/Makefile [changed mode: 0644->0755]
bcmdhd.1.579.77.41.1.cn/dhd_sdio.c [changed mode: 0644->0755]
bcmdhd.100.10.315.x/dhd_sdio.c [changed mode: 0644->0755]
bcmdhd_1_201_59_x/Makefile [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c0dadf7..9dd3b0a
@@ -14,6 +14,7 @@ export CONFIG_BCMDHD = m
 export CONFIG_BCMDHD_OOB = y
 
 DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER -DSDTEST       \
+       -Wno-maybe-uninitialized                                              \
        -DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DBCMFILEIMAGE            \
        -DDHDTHREAD -DDHD_DEBUG -DSHOW_EVENTS -DBCMDBG -DGET_OTP_MAC_ENABLE   \
        -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT -DSUPPORT_PM2_ONLY             \
old mode 100644 (file)
new mode 100755 (executable)
index 53e9eaf..3d2dec9
@@ -2843,8 +2843,8 @@ dhd_bus_txctl(struct dhd_bus *bus, uchar *msg, uint msglen)
                                DHD_TRACE_HW4(("%s : tx_max : %d, tx_seq : %d, clkstate : %d \n",
                                        __FUNCTION__, bus->tx_max, bus->tx_seq, bus->clkstate));
 #endif /* CUSTOMER_HW4_DEBUG */
-                               DHD_ERROR(("%s: ctrl_frame_stat == TRUE txcnt_timeout=%d\n",
-                                       __FUNCTION__, bus->dhd->txcnt_timeout));
+                               DHD_ERROR(("%s: ctrl_frame_stat == TRUE txcnt_timeout=%d, bus->tx_max %d, bus->tx_seq %d\n",
+                                       __FUNCTION__, bus->dhd->txcnt_timeout, bus->tx_max, bus->tx_seq));
                        }
 #ifdef DHD_FW_COREDUMP
                        /* Collect socram dump */
old mode 100644 (file)
new mode 100755 (executable)
index 4a52e87..6833114
@@ -2882,8 +2882,8 @@ dhd_bus_txctl(struct dhd_bus *bus, uchar *msg, uint msglen)
                } else {
                        bus->dhd->txcnt_timeout++;
                        if (!bus->dhd->hang_was_sent) {
-                               DHD_ERROR(("%s: ctrl_frame_stat == TRUE txcnt_timeout=%d\n",
-                                       __FUNCTION__, bus->dhd->txcnt_timeout));
+                               DHD_ERROR(("%s: ctrl_frame_stat == TRUE txcnt_timeout=%d, bus->tx_max %d, bus->tx_seq %d\n",
+                                       __FUNCTION__, bus->dhd->txcnt_timeout, bus->tx_max, bus->tx_seq));
                        }
 #ifdef DHD_FW_COREDUMP
                        /* Collect socram dump */
old mode 100644 (file)
new mode 100755 (executable)
index 230d8ed..142fc6f
@@ -9,6 +9,7 @@ export CONFIG_BCM6359 = m
 export CONFIG_BCMDHD_OOB = y
 
 DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER -DSDTEST       \
+       -Wno-maybe-uninitialized                                              \
        -DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DBCMFILEIMAGE            \
        -DDHDTHREAD -DDHD_DEBUG -DSHOW_EVENTS -DBCMDBG -DGET_OTP_MAC_ENABLE   \
        -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT -DSUPPORT_PM2_ONLY             \