From 697de701753949874a319dc7f7bc391e4557d6e2 Mon Sep 17 00:00:00 2001 From: Rongjun Chen Date: Mon, 14 Jan 2019 15:28:11 +0800 Subject: [PATCH] wifi: debug wifi auto close issue [1/1] 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 | 1 + bcmdhd.1.579.77.41.1.cn/dhd_sdio.c | 4 ++-- bcmdhd.100.10.315.x/dhd_sdio.c | 4 ++-- bcmdhd_1_201_59_x/Makefile | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 bcmdhd.1.363.59.144.x.cn/Makefile mode change 100644 => 100755 bcmdhd.1.579.77.41.1.cn/dhd_sdio.c mode change 100644 => 100755 bcmdhd.100.10.315.x/dhd_sdio.c mode change 100644 => 100755 bcmdhd_1_201_59_x/Makefile diff --git a/bcmdhd.1.363.59.144.x.cn/Makefile b/bcmdhd.1.363.59.144.x.cn/Makefile old mode 100644 new mode 100755 index c0dadf7..9dd3b0a --- a/bcmdhd.1.363.59.144.x.cn/Makefile +++ b/bcmdhd.1.363.59.144.x.cn/Makefile @@ -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 \ diff --git a/bcmdhd.1.579.77.41.1.cn/dhd_sdio.c b/bcmdhd.1.579.77.41.1.cn/dhd_sdio.c old mode 100644 new mode 100755 index 53e9eaf..3d2dec9 --- a/bcmdhd.1.579.77.41.1.cn/dhd_sdio.c +++ b/bcmdhd.1.579.77.41.1.cn/dhd_sdio.c @@ -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 */ diff --git a/bcmdhd.100.10.315.x/dhd_sdio.c b/bcmdhd.100.10.315.x/dhd_sdio.c old mode 100644 new mode 100755 index 4a52e87..6833114 --- a/bcmdhd.100.10.315.x/dhd_sdio.c +++ b/bcmdhd.100.10.315.x/dhd_sdio.c @@ -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 */ diff --git a/bcmdhd_1_201_59_x/Makefile b/bcmdhd_1_201_59_x/Makefile old mode 100644 new mode 100755 index 230d8ed..142fc6f --- a/bcmdhd_1_201_59_x/Makefile +++ b/bcmdhd_1_201_59_x/Makefile @@ -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 \ -- 2.20.1