cfg80211: age scan results on resume
authorDan Williams <dcbw@redhat.com>
Wed, 11 Feb 2009 22:14:43 +0000 (17:14 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:40 +0000 (14:52 -0500)
commitcb3a8eec0e66edfe8db7d3b3bf19d25745bae3c3
treeb4eacfc01470617fca40779bccdca6625dba7716
parentabd2fdb4c606f0e5cfec3647d57ebd20f03caafd
cfg80211: 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>
net/wireless/core.h
net/wireless/scan.c
net/wireless/sysfs.c