From 9eb169172a8140fd6a0bc2dc79a21c4f7ce0185b Mon Sep 17 00:00:00 2001 From: gwl Date: Mon, 31 Mar 2014 09:47:24 +0800 Subject: [PATCH] Wifi: fix wifi disconnect when suspended. add keep-power-in-suspend to sdio cap. --- arch/arm/boot/dts/rk3288-tb.dts | 1 + net/wireless/sysfs.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk3288-tb.dts b/arch/arm/boot/dts/rk3288-tb.dts index 1acfe75a5f32..777321b2fc28 100755 --- a/arch/arm/boot/dts/rk3288-tb.dts +++ b/arch/arm/boot/dts/rk3288-tb.dts @@ -219,6 +219,7 @@ clock-freq-min-max = <200000 50000000>; supports-highspeed; supports-sdio; + keep-power-in-suspend; //cap-sdio-irq; status = "okay"; }; diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 8f28b9f798d8..ae7f1ae44fd2 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c @@ -100,8 +100,9 @@ static int wiphy_suspend(struct device *dev, pm_message_t state) rtnl_lock(); if (rdev->wiphy.registered) { - if (!rdev->wowlan) - cfg80211_leave_all(rdev); + //modify to fix wifi disconnet when suspended.(gwl) + //if (!rdev->wowlan) + // cfg80211_leave_all(rdev); if (rdev->ops->suspend) ret = rdev_suspend(rdev, rdev->wowlan); if (ret == 1) { -- 2.34.1