diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2015-09-27 09:17:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 04:19:53 +0200 |
commit | 43c93d9bf5e2b195c38de99024d8d9e545a5aae5 (patch) | |
tree | ce08d956515493d368f6513b3e62b4fb9c842343 /drivers/staging/vt6656/power.c | |
parent | c15158797df6c36780bd07252eb079ff4c9d1706 (diff) |
staging: vt6656: implement power saving code.
The device should ready to listen to next beacon so on count down of
wake_up_count == 1.
schedule command WLAN_CMD_TBTT_WAKEUP which calls vnt_next_tbtt_wakeup which
wakes the device.
This restores this back to vendors code with a slight difference the
count down is in the interrupt handler.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/power.c')
-rw-r--r-- | drivers/staging/vt6656/power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/power.c b/drivers/staging/vt6656/power.c index 0ffbaed5d774..d5912d23aa0d 100644 --- a/drivers/staging/vt6656/power.c +++ b/drivers/staging/vt6656/power.c @@ -134,7 +134,7 @@ int vnt_next_tbtt_wakeup(struct vnt_private *priv) struct ieee80211_conf *conf = &hw->conf; int wake_up = false; - if (conf->listen_interval == 1) { + if (conf->listen_interval > 1) { /* Turn on wake up to listen next beacon */ vnt_mac_reg_bits_on(priv, MAC_REG_PSCTL, PSCTL_LNBCN); wake_up = true; |