mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
42bd20d998
commit
99ee7cae3b
4 changed files with 66 additions and 0 deletions
|
@ -2145,6 +2145,14 @@ enum ieee80211_hw_flags {
|
|||
* the default is _GI | _BANDWIDTH.
|
||||
* Use the %IEEE80211_RADIOTAP_VHT_KNOWN_* values.
|
||||
*
|
||||
* @radiotap_timestamp: Information for the radiotap timestamp field; if the
|
||||
* 'units_pos' member is set to a non-negative value it must be set to
|
||||
* a combination of a IEEE80211_RADIOTAP_TIMESTAMP_UNIT_* and a
|
||||
* IEEE80211_RADIOTAP_TIMESTAMP_SPOS_* value, and then the timestamp
|
||||
* field will be added and populated from the &struct ieee80211_rx_status
|
||||
* device_timestamp. If the 'accuracy' member is non-negative, it's put
|
||||
* into the accuracy radiotap field and the accuracy known flag is set.
|
||||
*
|
||||
* @netdev_features: netdev features to be set in each netdev created
|
||||
* from this HW. Note that not all features are usable with mac80211,
|
||||
* other features will be rejected during HW registration.
|
||||
|
@ -2188,6 +2196,10 @@ struct ieee80211_hw {
|
|||
u8 offchannel_tx_hw_queue;
|
||||
u8 radiotap_mcs_details;
|
||||
u16 radiotap_vht_details;
|
||||
struct {
|
||||
int units_pos;
|
||||
s16 accuracy;
|
||||
} radiotap_timestamp;
|
||||
netdev_features_t netdev_features;
|
||||
u8 uapsd_queues;
|
||||
u8 uapsd_max_sp_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue