summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ipw2x00/ipw2200.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-02-11 18:26:06 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 19:52:43 (GMT)
commitc3d72b968129ad4aec86c5fc8d2380f01ebebc53 (patch)
treebb1d4054bba06cab388b6ecfee6d2dddef4e7108 /drivers/net/wireless/ipw2x00/ipw2200.h
parentbc8263f1d86946ffe97eb249fc1d6660da1e1055 (diff)
downloadlinux-c3d72b968129ad4aec86c5fc8d2380f01ebebc53.tar.xz
ipw2x00: age scan results on resume
Scanned BSS entries are timestamped with jiffies, which doesn't increment across suspend and hibernate. On resume, every BSS in the scan list looks like it was scanned within the last 10 seconds, irregardless of how long the machine was actually asleep. Age scan results on resume with the time spent during sleep so userspace has a clue how old they really are. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00/ipw2200.h')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.h b/drivers/net/wireless/ipw2x00/ipw2200.h
index 3e66c99..05e8ccf 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.h
+++ b/drivers/net/wireless/ipw2x00/ipw2200.h
@@ -1347,6 +1347,10 @@ struct ipw_priv {
s8 tx_power;
+ /* Track time in suspend */
+ unsigned long suspend_at;
+ unsigned long suspend_time;
+
#ifdef CONFIG_PM
u32 pm_state[16];
#endif