nl80211: allow BSS data to include CLOCK_BOOTTIME timestamp
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 7 Oct 2015 09:32:53 +0000 (11:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Oct 2015 08:32:17 +0000 (10:32 +0200)
commit6e19bc4b7091ffd26586100eee78232b44427ec7
tree59d7cf810ede8dcf6ab66674c296738f35ae8bc7
parent93f0490e5deb9445737cabf0e436f3288a4042b7
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>
Documentation/DocBook/80211.tmpl
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/core.h
net/wireless/nl80211.c
net/wireless/scan.c
net/wireless/trace.h