iwlwifi: mvm: report FTM start time TSF when applicable
authorAvraham Stern <avraham.stern@intel.com>
Tue, 12 Mar 2019 09:48:56 +0000 (11:48 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 29 Apr 2019 15:42:45 +0000 (18:42 +0300)
commitcec2d4f6b4e3f7dba2f3281464d835d7003aaa6f
treeefec27605e62c1ddb591d70f6c893e9cb01c1ec8
parent0c546fb6f959eb3dc69bfd9ac789f561c75a885b
iwlwifi: mvm: report FTM start time TSF when applicable

When the interface that is requesting an FTM measurement is connected
to a BSS, it is possible that the FTM request was originated by an
RRM request from the AP. In this case the station needs to report
the measurement start time in terms of the TSF of the AP.

Since there is no indication in the FTM request itself if the TSF
is needed, always report the TSF if the station is associated.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c