Path: blob/main/sys/contrib/dev/iwlwifi/mvm/time-sync.h
48287 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/*2* Copyright (C) 2022 Intel Corporation3*/4#ifndef __TIME_SYNC_H__5#define __TIME_SYNC_H__67#include "mvm.h"8#include <linux/ieee80211.h>910void iwl_mvm_init_time_sync(struct iwl_time_sync_data *data);11void iwl_mvm_time_sync_msmt_event(struct iwl_mvm *mvm,12struct iwl_rx_cmd_buffer *rxb);13void iwl_mvm_time_sync_msmt_confirm_event(struct iwl_mvm *mvm,14struct iwl_rx_cmd_buffer *rxb);15int iwl_mvm_time_sync_config(struct iwl_mvm *mvm, const u8 *addr,16u32 protocols);1718static inline19bool iwl_mvm_time_sync_frame(struct iwl_mvm *mvm, struct sk_buff *skb, u8 *addr)20{21if (ether_addr_equal(mvm->time_sync.peer_addr, addr) &&22(ieee80211_is_timing_measurement(skb) || ieee80211_is_ftm(skb))) {23skb_queue_tail(&mvm->time_sync.frame_list, skb);24return true;25}2627return false;28}29#endif303132