summaryrefslogtreecommitdiff
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-08-29 23:25:17 +0300
committerJohannes Berg <johannes.berg@intel.com>2016-09-12 11:45:45 +0200
commit99ee7cae3bf3ce04e90d7b193d9f4f59a7044d91 (patch)
treec35374d19762723488b7ba34f37353143091856b /net/mac80211/main.c
parent42bd20d99857e69e368d5421ea402127d5835cd3 (diff)
downloadlinux-99ee7cae3bf3ce04e90d7b193d9f4f59a7044d91.tar.gz
mac80211: add support for radiotap timestamp field
Use the existing device timestamp from the RX status information to add support for the new radiotap timestamp field. Currently only 32-bit counters are supported, but we also add the radiotap mactime where applicable. This new field allows more flexibility in where the timestamp is taken etc. The non-timestamp data in the field is taken from a new field in the hw struct. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index d00ea9b13f49..ac053a9df36d 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -660,6 +660,9 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len,
ieee80211_roc_setup(local);
+ local->hw.radiotap_timestamp.units_pos = -1;
+ local->hw.radiotap_timestamp.accuracy = -1;
+
return &local->hw;
err_free:
wiphy_free(wiphy);