From: gwl Date: Mon, 31 Mar 2014 01:47:24 +0000 (+0800) Subject: Wifi: fix wifi disconnect when suspended. add keep-power-in-suspend to sdio cap. X-Git-Tag: firefly_0821_release~5707 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9eb169172a8140fd6a0bc2dc79a21c4f7ce0185b;p=firefly-linux-kernel-4.4.55.git Wifi: fix wifi disconnect when suspended. add keep-power-in-suspend to sdio cap. --- 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) {