]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit066d59152299911cd5c6a2ce1bdfe60ba0133b28
treeb4eacfc01470617fca40779bccdca6625dba7716
parentb9c7713cf2d7506cde82252877b7859c239d7e45
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