diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-12-05 05:33:34 -0500 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-02-14 04:29:43 -0500 |
commit | fc36ffda326706b21f70a4aff0c77d9bc94c4f0a (patch) | |
tree | 601a3694bc8823c55798c9f21c1eac9a31ce4cd0 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c | |
parent | b73f9a4ae77d448eb501f746d3bbe1b737f38681 (diff) |
iwlwifi: mvm: support FTM initiator
Add support for FTM initiator, i.e. peer measurements with FTM
if the firmware supports FTM.
Additionally, add two defines we depend on in
include/linux/ieee80211.h.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index d5644d252fe0..0c276124bf0f 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c | |||
@@ -302,6 +302,12 @@ static const struct iwl_rx_handlers iwl_mvm_rx_handlers[] = { | |||
302 | RX_HANDLER_SYNC), | 302 | RX_HANDLER_SYNC), |
303 | RX_HANDLER_GRP(LOCATION_GROUP, TOF_RESPONDER_STATS, | 303 | RX_HANDLER_GRP(LOCATION_GROUP, TOF_RESPONDER_STATS, |
304 | iwl_mvm_ftm_responder_stats, RX_HANDLER_ASYNC_LOCKED), | 304 | iwl_mvm_ftm_responder_stats, RX_HANDLER_ASYNC_LOCKED), |
305 | |||
306 | RX_HANDLER_GRP(LOCATION_GROUP, TOF_RANGE_RESPONSE_NOTIF, | ||
307 | iwl_mvm_ftm_range_resp, RX_HANDLER_ASYNC_LOCKED), | ||
308 | RX_HANDLER_GRP(LOCATION_GROUP, TOF_LC_NOTIF, | ||
309 | iwl_mvm_ftm_lc_notif, RX_HANDLER_ASYNC_LOCKED), | ||
310 | |||
305 | RX_HANDLER_GRP(DEBUG_GROUP, MFU_ASSERT_DUMP_NTF, | 311 | RX_HANDLER_GRP(DEBUG_GROUP, MFU_ASSERT_DUMP_NTF, |
306 | iwl_mvm_mfu_assert_dump_notif, RX_HANDLER_SYNC), | 312 | iwl_mvm_mfu_assert_dump_notif, RX_HANDLER_SYNC), |
307 | RX_HANDLER_GRP(PROT_OFFLOAD_GROUP, STORED_BEACON_NTF, | 313 | RX_HANDLER_GRP(PROT_OFFLOAD_GROUP, STORED_BEACON_NTF, |
@@ -693,6 +699,7 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, | |||
693 | INIT_LIST_HEAD(&mvm->aux_roc_te_list); | 699 | INIT_LIST_HEAD(&mvm->aux_roc_te_list); |
694 | INIT_LIST_HEAD(&mvm->async_handlers_list); | 700 | INIT_LIST_HEAD(&mvm->async_handlers_list); |
695 | spin_lock_init(&mvm->time_event_lock); | 701 | spin_lock_init(&mvm->time_event_lock); |
702 | INIT_LIST_HEAD(&mvm->ftm_initiator.loc_list); | ||
696 | 703 | ||
697 | INIT_WORK(&mvm->async_handlers_wk, iwl_mvm_async_handlers_wk); | 704 | INIT_WORK(&mvm->async_handlers_wk, iwl_mvm_async_handlers_wk); |
698 | INIT_WORK(&mvm->roc_done_wk, iwl_mvm_roc_done_wk); | 705 | INIT_WORK(&mvm->roc_done_wk, iwl_mvm_roc_done_wk); |