diff options
author | Dan Williams <dcbw@redhat.com> | 2009-02-11 17:14:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:40 -0500 |
commit | cb3a8eec0e66edfe8db7d3b3bf19d25745bae3c3 (patch) | |
tree | b4eacfc01470617fca40779bccdca6625dba7716 /net/wireless/core.h | |
parent | abd2fdb4c606f0e5cfec3647d57ebd20f03caafd (diff) | |
download | kernel-common-cb3a8eec0e66edfe8db7d3b3bf19d25745bae3c3.tar.gz kernel-common-cb3a8eec0e66edfe8db7d3b3bf19d25745bae3c3.tar.bz2 kernel-common-cb3a8eec0e66edfe8db7d3b3bf19d25745bae3c3.zip |
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>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r-- | net/wireless/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index e29ad4cd464f..5d0c682d737a 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h @@ -49,6 +49,7 @@ struct cfg80211_registered_device { struct rb_root bss_tree; u32 bss_generation; struct cfg80211_scan_request *scan_req; /* protected by RTNL */ + unsigned long suspend_at; /* must be last because of the way we do wiphy_priv(), * and it should at least be aligned to NETDEV_ALIGN */ @@ -113,5 +114,7 @@ void ieee80211_set_bitrate_flags(struct wiphy *wiphy); void wiphy_update_regulatory(struct wiphy *wiphy, enum reg_set_by setby); void cfg80211_bss_expire(struct cfg80211_registered_device *dev); +void cfg80211_bss_age(struct cfg80211_registered_device *dev, + unsigned long age_secs); #endif /* __NET_WIRELESS_CORE_H */ |