diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2015-10-07 12:32:53 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-10-13 11:32:17 +0300 |
commit | 6e19bc4b7091ffd26586100eee78232b44427ec7 (patch) | |
tree | 59d7cf810ede8dcf6ab66674c296738f35ae8bc7 /net/wireless/core.h | |
parent | 93f0490e5deb9445737cabf0e436f3288a4042b7 (diff) | |
download | linux-6e19bc4b7091ffd26586100eee78232b44427ec7.tar.xz |
nl80211: allow BSS data to include CLOCK_BOOTTIME timestamp
For location and connectivity services, userspace would often like
to know the time when the BSS was last seen. The current "last seen"
value is calculated in a way that makes it less useful, especially
if the system suspended in the meantime.
Add the ability for the driver to report a real CLOCK_BOOTTIME stamp
that can then be reported to userspace (if present).
Drivers wishing to use this must be converted to the new API to call
cfg80211_inform_bss_data() or cfg80211_inform_bss_frame_data(). They
need to ensure the reported value is accurate enough even when the
frame might have been buffered in the device (e.g. firmware.)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
[modified to use struct, inlines]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r-- | net/wireless/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index b9d5bc8c148d..a618b4b86fa4 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h @@ -137,6 +137,7 @@ struct cfg80211_internal_bss { struct list_head list; struct list_head hidden_list; struct rb_node rbn; + u64 ts_boottime; unsigned long ts; unsigned long refcount; atomic_t hold; |