diff options
Diffstat (limited to 'sys/contrib/dev/iwlwifi/mvm/sta.h')
| -rw-r--r-- | sys/contrib/dev/iwlwifi/mvm/sta.h | 29 | 
1 files changed, 10 insertions, 19 deletions
| diff --git a/sys/contrib/dev/iwlwifi/mvm/sta.h b/sys/contrib/dev/iwlwifi/mvm/sta.h index c1050fed0cc6..f6906061510b 100644 --- a/sys/contrib/dev/iwlwifi/mvm/sta.h +++ b/sys/contrib/dev/iwlwifi/mvm/sta.h @@ -1,6 +1,6 @@  /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */  /* - * Copyright (C) 2012-2014, 2018-2024 Intel Corporation + * Copyright (C) 2012-2014, 2018-2025 Intel Corporation   * Copyright (C) 2013-2014 Intel Mobile Communications GmbH   * Copyright (C) 2015-2016 Intel Deutschland GmbH   */ @@ -12,7 +12,7 @@  #include <linux/wait.h>  #include "iwl-trans.h" /* for IWL_MAX_TID_COUNT */ -#include "fw-api.h" /* IWL_MVM_STATION_COUNT_MAX */ +#include "fw-api.h" /* IWL_STATION_COUNT_MAX */  #include "rs.h"  struct iwl_mvm; @@ -133,7 +133,7 @@ struct iwl_mvm_vif;   * and no TID data as this is also not needed.   * One thing to note, is that these stations have an ID in the fw, but not   * in mac80211. In order to "reserve" them a sta_id in %fw_id_to_mac_id - * we fill ERR_PTR(EINVAL) in this mapping and all other dereferencing of + * we fill ERR_PTR(-EINVAL) in this mapping and all other dereferencing of   * pointers from this mapping need to check that the value is not error   * or NULL.   * @@ -214,7 +214,7 @@ struct iwl_mvm_vif;   */  /** - * enum iwl_mvm_agg_state + * enum iwl_mvm_agg_state - aggregation session state   *   * The state machine of the BA agreement establishment / tear down.   * These states relate to a specific RA / TID. @@ -225,8 +225,6 @@ struct iwl_mvm_vif;   * @IWL_AGG_ON: aggregation session is up   * @IWL_EMPTYING_HW_QUEUE_ADDBA: establishing a BA session - waiting for the   *	HW queue to be empty from packets for this RA /TID. - * @IWL_EMPTYING_HW_QUEUE_DELBA: tearing down a BA session - waiting for the - *	HW queue to be empty from packets for this RA /TID.   */  enum iwl_mvm_agg_state {  	IWL_AGG_OFF = 0, @@ -234,7 +232,6 @@ enum iwl_mvm_agg_state {  	IWL_AGG_STARTING,  	IWL_AGG_ON,  	IWL_EMPTYING_HW_QUEUE_ADDBA, -	IWL_EMPTYING_HW_QUEUE_DELBA,  };  /** @@ -262,7 +259,7 @@ struct iwl_mvm_tid_data {  	u16 seq_number;  	u16 next_reclaimed;  	/* The rest is Tx AGG related */ -	u32 rate_n_flags; +	__le32 rate_n_flags;  	u8 lq_color;  	bool amsdu_in_ampdu_allowed;  	enum iwl_mvm_agg_state state; @@ -361,7 +358,7 @@ struct iwl_mvm_mpdu_counter {   */  struct iwl_mvm_tpt_counter {  	spinlock_t lock; -	struct iwl_mvm_mpdu_counter per_link[IWL_MVM_FW_MAX_LINK_ID]; +	struct iwl_mvm_mpdu_counter per_link[IWL_FW_MAX_LINK_ID];  	unsigned long window_start;  } ____cacheline_aligned_in_smp; @@ -486,6 +483,7 @@ struct iwl_mvm_int_sta {   *	about. Otherwise (if this is a new STA), this should be false.   * @flags: if update==true, this marks what is being changed via ORs of values   *	from enum iwl_sta_modify_flag. Otherwise, this is ignored. + * Return: negative error code or 0 on success   */  int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta,  			   bool update, unsigned int flags); @@ -507,9 +505,9 @@ void iwl_mvm_realloc_queues_after_restart(struct iwl_mvm *mvm,  					  struct ieee80211_sta *sta);  int iwl_mvm_wait_sta_queues_empty(struct iwl_mvm *mvm,  				  struct iwl_mvm_sta *mvm_sta); -bool iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif, +void iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif,  		     struct ieee80211_sta *sta, -		     struct ieee80211_link_sta *link_sta, int *ret); +		     struct ieee80211_link_sta *link_sta);  int iwl_mvm_rm_sta(struct iwl_mvm *mvm,  		   struct ieee80211_vif *vif,  		   struct ieee80211_sta *sta); @@ -597,12 +595,6 @@ void iwl_mvm_modify_all_sta_disable_tx(struct iwl_mvm *mvm,  void iwl_mvm_csa_client_absent(struct iwl_mvm *mvm, struct ieee80211_vif *vif);  int iwl_mvm_sta_ensure_queue(struct iwl_mvm *mvm, struct ieee80211_txq *txq);  void iwl_mvm_add_new_dqa_stream_wk(struct work_struct *wk); -#if defined(__linux__) -int iwl_mvm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, -			 struct iwl_mvm_int_sta *sta, u8 *addr, u32 cipher, -			 u8 *key, u32 key_len, -			 struct ieee80211_key_conf *key_conf_out); -#endif  void iwl_mvm_cancel_channel_switch(struct iwl_mvm *mvm,  				   struct ieee80211_vif *vif,  				   u32 id); @@ -667,8 +659,7 @@ int iwl_mvm_mld_rm_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,  void iwl_mvm_mld_free_sta_link(struct iwl_mvm *mvm,  			       struct iwl_mvm_sta *mvm_sta,  			       struct iwl_mvm_link_sta *mvm_sta_link, -			       unsigned int link_id, -			       bool is_in_fw); +			       unsigned int link_id);  int iwl_mvm_mld_rm_sta_id(struct iwl_mvm *mvm, u8 sta_id);  int iwl_mvm_mld_update_sta_links(struct iwl_mvm *mvm,  				 struct ieee80211_vif *vif, | 
