aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/device.h
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-09-27 09:17:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-29 04:19:53 +0200
commit43c93d9bf5e2b195c38de99024d8d9e545a5aae5 (patch)
treece08d956515493d368f6513b3e62b4fb9c842343 /drivers/staging/vt6656/device.h
parentstaging: vt6656: implement TSF counter (diff)
downloadlinux-dev-43c93d9bf5e2b195c38de99024d8d9e545a5aae5.tar.xz
linux-dev-43c93d9bf5e2b195c38de99024d8d9e545a5aae5.zip
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/device.h')
-rw-r--r--drivers/staging/vt6656/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h
index 635d931de409..dec36f296f3d 100644
--- a/drivers/staging/vt6656/device.h
+++ b/drivers/staging/vt6656/device.h
@@ -389,6 +389,8 @@ struct vnt_private {
u8 bb_pre_ed_rssi;
u8 bb_pre_ed_index;
+ u16 wake_up_count;
+
/* command timer */
struct delayed_work run_command_work;