Lines Matching refs:mvm_sta
437 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
443 .station_type = cpu_to_le32(mvm_sta->sta_type),
456 if (mvm_sta->sta_state >= IEEE80211_STA_ASSOC)
461 (sta->mfp || mvm_sta->sta_state < IEEE80211_STA_AUTHORIZED))
519 struct iwl_mvm_sta *mvm_sta,
527 RCU_INIT_POINTER(mvm_sta->link[link_id], NULL);
529 if (mvm_sta_link != &mvm_sta->deflink)
534 struct iwl_mvm_sta *mvm_sta)
538 for (link_id = 0; link_id < ARRAY_SIZE(mvm_sta->link); link_id++) {
540 rcu_dereference_protected(mvm_sta->link[link_id],
546 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, link, link_id, false);
557 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
566 link = &mvm_sta->deflink;
574 rcu_assign_pointer(mvm_sta->link[link_id], link);
587 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
595 if (WARN_ON(mvm_sta->link[link_id]))
606 iwl_mvm_mld_sta_rm_all_sta_links(mvm, mvm_sta);
626 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
643 rcu_dereference_protected(mvm_sta->link[link_id],
674 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
687 spin_lock_init(&mvm_sta->lock);
707 rcu_dereference_protected(mvm_sta->link[link_id],
733 rcu_dereference_protected(mvm_sta->link[link_id],
740 iwl_mvm_mld_sta_rm_all_sta_links(mvm, mvm_sta);
747 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
758 rcu_dereference_protected(mvm_sta->link[link_id],
780 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
786 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) {
787 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE)
791 &mvm_sta->tid_data[i].txq_id, i);
792 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE;
806 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
813 /* flush its queues here since we are freeing mvm_sta */
816 rcu_dereference_protected(mvm_sta->link[link_id],
828 ret = iwl_mvm_wait_sta_queues_empty(mvm, mvm_sta);
836 rcu_dereference_protected(mvm_sta->link[link_id],
848 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_link_sta,
851 kfree(mvm_sta->mpdu_counters);
852 mvm_sta->mpdu_counters = NULL;
899 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
901 spin_lock_bh(&mvm_sta->lock);
903 if (mvm_sta->disable_tx == disable) {
904 spin_unlock_bh(&mvm_sta->lock);
908 iwl_mvm_mld_sta_modify_disable_tx(mvm, mvm_sta, disable);
910 spin_unlock_bh(&mvm_sta->lock);
918 struct iwl_mvm_sta *mvm_sta;
929 mvm_sta = iwl_mvm_sta_from_mac80211(sta);
930 if (mvm_sta->mac_id_n_color !=
934 iwl_mvm_mld_sta_modify_disable_tx(mvm, mvm_sta, disable);
945 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
962 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[tid];
1055 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);
1072 rcu_dereference_protected(mvm_sta->link[link_id],
1098 rcu_dereference_protected(mvm_sta->link[link_id],
1114 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_sta_link, link_id,
1132 rcu_dereference_protected(mvm_sta->link[link_id],
1147 if (WARN_ON(mvm_sta->link[link_id])) {
1161 rcu_dereference_protected(mvm_sta->link[link_id],
1203 rcu_dereference_protected(mvm_sta->link[link_id],
1213 rcu_dereference_protected(mvm_sta->link[link_id],
1216 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_sta_link, link_id,