diff options
author | Eliad Peller <eliad@wizery.com> | 2011-05-13 10:57:13 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-05-13 13:55:49 +0200 |
commit | 9439064cd9fce8a4db716a748dbf581eb234f9c7 (patch) | |
tree | b1dd09bc0a8a19c9ee1a71299b97ea0df6b4ba6a /drivers/net/wireless/wl12xx/event.c | |
parent | wl12xx_sdio: declare support for NL80211_WOW_TRIGGER_ANYTHING trigger (diff) | |
download | linux-9439064cd9fce8a4db716a748dbf581eb234f9c7.tar.xz linux-9439064cd9fce8a4db716a748dbf581eb234f9c7.zip |
wl12xx: enter/exit psm on wowlan suspend/resume
When operating as station, enter psm before suspending
the device into wowlan state.
Add a new completion event to signal when psm was entered
successfully.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/event.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/event.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c index 1e4bd6a2c396..c3c554cd6580 100644 --- a/drivers/net/wireless/wl12xx/event.c +++ b/drivers/net/wireless/wl12xx/event.c @@ -135,6 +135,13 @@ static int wl1271_event_ps_report(struct wl1271 *wl, /* enable beacon early termination */ ret = wl1271_acx_bet_enable(wl, true); + if (ret < 0) + break; + + if (wl->ps_compl) { + complete(wl->ps_compl); + wl->ps_compl = NULL; + } break; default: break; |