diff options
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.c')
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index f41594c7ac16..a0cb265e5816 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -1043,6 +1043,12 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message) | |||
1043 | if (priv->psstate != PS_STATE_FULL_POWER) | 1043 | if (priv->psstate != PS_STATE_FULL_POWER) |
1044 | return -1; | 1044 | return -1; |
1045 | 1045 | ||
1046 | if (priv->wol_criteria == EHS_REMOVE_WAKEUP) { | ||
1047 | lbs_pr_info("Suspend attempt without " | ||
1048 | "configuring wake params!\n"); | ||
1049 | return -ENOSYS; | ||
1050 | } | ||
1051 | |||
1046 | ret = lbs_suspend(priv); | 1052 | ret = lbs_suspend(priv); |
1047 | if (ret) | 1053 | if (ret) |
1048 | goto out; | 1054 | goto out; |