From c24683bf5117d36ebd56821741aa87e8b49bcf88 Mon Sep 17 00:00:00 2001 From: Rongjun Chen Date: Wed, 7 Dec 2016 14:18:41 +0800 Subject: [PATCH] wifi: fix sdio timeout issue Change-Id: If1d8e89ac7983859b877e6311be8019422333843 --- bcmdhd.1.363.59.144.x.cn/dhd_sdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bcmdhd.1.363.59.144.x.cn/dhd_sdio.c b/bcmdhd.1.363.59.144.x.cn/dhd_sdio.c index a59a7e3..22b9ebb 100644 --- a/bcmdhd.1.363.59.144.x.cn/dhd_sdio.c +++ b/bcmdhd.1.363.59.144.x.cn/dhd_sdio.c @@ -920,7 +920,8 @@ dhdsdio_clk_kso_enab(dhd_bus_t *bus, bool on) uint8 wr_val = 0, rd_val, cmp_val, bmask; int err = 0; int try_cnt = 0; - + if (!bus->dhd->conf->kso_enable) + return 0; KSO_DBG(("%s> op:%s\n", __FUNCTION__, (on ? "KSO_SET" : "KSO_CLR"))); wr_val |= (on << SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT); -- 2.20.1