From: Luca Coelho <luciano.coelho@xxxxxxxxx> Hi, Here are some patches that implement time measurement timestamps in cfg80211 and mac80211. Then there is an iwlwifi patch on top that depends on them. Since we have a single tree now, I sent the series with both cfg/mac and iwlwifi patches. Let me know if you prefer to have them separately. As usual, I'm pushing this to a pending branch, for kbuild bot, and I will report if there are any issues. Please review. Cheers, Luca. Avraham Stern (7): nl80211: add RX and TX timestamp attributes cfg80211: add a function for reporting TX status with hardware timestamps cfg80211/nl80211: move rx management data into a struct cfg80211: add hardware timestamps to frame RX info ieee80211: add helper functions for detecting TM/FTM frames mac80211: add hardware timestamps for RX and TX iwlwifi: mvm: report hardware timestamps in RX/TX status .../wireless/intel/iwlwifi/fw/api/commands.h | 20 +- .../wireless/intel/iwlwifi/fw/api/datapath.h | 126 ++++++++++++- .../net/wireless/intel/iwlwifi/mvm/Makefile | 2 +- .../net/wireless/intel/iwlwifi/mvm/mac80211.c | 4 + drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 8 + drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 12 ++ drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 7 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 6 + .../wireless/intel/iwlwifi/mvm/time-sync.c | 172 ++++++++++++++++++ .../wireless/intel/iwlwifi/mvm/time-sync.h | 30 +++ drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 4 +- include/linux/ieee80211.h | 54 ++++++ include/net/cfg80211.h | 111 ++++++++++- include/net/mac80211.h | 30 ++- include/uapi/linux/nl80211.h | 27 ++- net/mac80211/rx.c | 32 +++- net/mac80211/status.c | 40 +++- net/wireless/mlme.c | 21 +-- net/wireless/nl80211.c | 69 ++++--- net/wireless/nl80211.h | 5 +- net/wireless/trace.h | 8 +- 21 files changed, 713 insertions(+), 75 deletions(-) create mode 100644 drivers/net/wireless/intel/iwlwifi/mvm/time-sync.c create mode 100644 drivers/net/wireless/intel/iwlwifi/mvm/time-sync.h -- 2.35.1