Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256334
b: refs/heads/master
c: e85d162
h: refs/heads/master
v: v3
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Jul 5, 2011
1 parent 52e254c commit 6c50b96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5d6e5f66304bddc2b5bc7222e993dfeb629ef0c
refs/heads/master: e85d1629c69f99e91598039e5c05f1608ad19c9f
10 changes: 8 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1610,10 +1610,13 @@ static struct notifier_block wl1271_dev_notifier = {
#ifdef CONFIG_PM
static int wl1271_configure_suspend_sta(struct wl1271 *wl)
{
int ret;
int ret = 0;

mutex_lock(&wl->mutex);

if (!test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags))
goto out_unlock;

ret = wl1271_ps_elp_wakeup(wl);
if (ret < 0)
goto out_unlock;
Expand Down Expand Up @@ -1658,10 +1661,13 @@ static int wl1271_configure_suspend_sta(struct wl1271 *wl)

static int wl1271_configure_suspend_ap(struct wl1271 *wl)
{
int ret;
int ret = 0;

mutex_lock(&wl->mutex);

if (!test_bit(WL1271_FLAG_AP_STARTED, &wl->flags))
goto out_unlock;

ret = wl1271_ps_elp_wakeup(wl);
if (ret < 0)
goto out_unlock;
Expand Down

0 comments on commit 6c50b96

Please sign in to comment.