|
@@ -2500,8 +2500,10 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
|
|
}
|
|
}
|
|
|
|
|
|
if (suspend_mode == PMO_SUSPEND_SHUTDOWN) {
|
|
if (suspend_mode == PMO_SUSPEND_SHUTDOWN) {
|
|
|
|
+ if (hdd_ctx->shutdown_in_suspend)
|
|
|
|
+ return -EAGAIN;
|
|
|
|
+
|
|
hdd_info_rl("Shutdown WLAN in Suspend");
|
|
hdd_info_rl("Shutdown WLAN in Suspend");
|
|
- hdd_ctx->shutdown_in_suspend = true;
|
|
|
|
hdd_shutdown_wlan_in_suspend(hdd_ctx);
|
|
hdd_shutdown_wlan_in_suspend(hdd_ctx);
|
|
/* shutdown must be excute in active, so return -EAGAIN
|
|
/* shutdown must be excute in active, so return -EAGAIN
|
|
* to PM to exit and try again
|
|
* to PM to exit and try again
|