summaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg2016-02-23 22:05:06 +0100
committerJohannes Berg2016-04-05 10:48:55 +0200
commit162dd6a7253ab009c6335c21ce6b80cf227ddda4 (patch)
tree7728515321dbf40d62ce7cd7f36a20caf8635084 /include/net/mac80211.h
parentmac80211: parse VHT info in injected frames (diff)
downloadkernel-qcow2-linux-162dd6a7253ab009c6335c21ce6b80cf227ddda4.tar.gz
kernel-qcow2-linux-162dd6a7253ab009c6335c21ce6b80cf227ddda4.tar.xz
kernel-qcow2-linux-162dd6a7253ab009c6335c21ce6b80cf227ddda4.zip
mac80211: allow drivers to report CLOCK_BOOTTIME for scan results
This was requested by Android, and the appropriate cfg80211 API had been added by Dmitry. Support it in mac80211, allowing drivers to provide the timestamp. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 0c09da34b67a..1b9f729bb074 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1120,6 +1120,8 @@ enum mac80211_rx_vht_flags {
*
* @mactime: value in microseconds of the 64-bit Time Synchronization Function
* (TSF) timer when the first data symbol (MPDU) arrived at the hardware.
+ * @boottime_ns: CLOCK_BOOTTIME timestamp the frame was received at, this is
+ * needed only for beacons and probe responses that update the scan cache.
* @device_timestamp: arbitrary timestamp for the device, mac80211 doesn't use
* it but can store it and pass it back to the driver for synchronisation
* @band: the active band when this frame was received
@@ -1146,6 +1148,7 @@ enum mac80211_rx_vht_flags {
*/
struct ieee80211_rx_status {
u64 mactime;
+ u64 boottime_ns;
u32 device_timestamp;
u32 ampdu_reference;
u32 flag;