Lines Matching refs:mvmsta
977 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_ampdu_check_trigger() local
978 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_ampdu_check_trigger()
1558 struct iwl_mvm_sta *mvmsta; in iwl_mvm_post_channel_switch() local
1564 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, ap_sta_id); in iwl_mvm_post_channel_switch()
1566 if (WARN_ON(!mvmsta)) { in iwl_mvm_post_channel_switch()
1571 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_post_channel_switch()
3384 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_sta_notify() local
3396 spin_lock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify()
3397 for (tid = 0; tid < ARRAY_SIZE(mvmsta->tid_data); tid++) { in __iwl_mvm_mac_sta_notify()
3398 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in __iwl_mvm_mac_sta_notify()
3425 if (WARN_ON(mvmsta->deflink.sta_id == IWL_MVM_INVALID_STA)) in __iwl_mvm_mac_sta_notify()
3435 spin_unlock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify()
3449 struct iwl_mvm_sta *mvmsta; in iwl_mvm_sta_pm_notif() local
3462 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_pm_notif()
3464 if (!mvmsta->vif || in iwl_mvm_sta_pm_notif()
3465 mvmsta->vif->type != NL80211_IFTYPE_AP) { in iwl_mvm_sta_pm_notif()
3470 if (mvmsta->sleeping != sleeping) { in iwl_mvm_sta_pm_notif()
3471 mvmsta->sleeping = sleeping; in iwl_mvm_sta_pm_notif()
4057 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_state_authorized_to_assoc() local
4061 mvmsta->authorized = false; in iwl_mvm_sta_state_authorized_to_assoc()
4361 struct iwl_mvm_sta *mvmsta = NULL; in __iwl_mvm_mac_set_key() local
4370 mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_set_key()
4481 mvmsta && iwl_mvm_has_new_rx_api(mvm) && in __iwl_mvm_mac_set_key()
4489 WARN_ON(rcu_access_pointer(mvmsta->ptk_pn[keyidx])); in __iwl_mvm_mac_set_key()
4506 rcu_assign_pointer(mvmsta->ptk_pn[keyidx], ptk_pn); in __iwl_mvm_mac_set_key()
4515 if (mvmsta && key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in __iwl_mvm_mac_set_key()
4516 mvmsta->pairwise_cipher = key->cipher; in __iwl_mvm_mac_set_key()
4530 RCU_INIT_POINTER(mvmsta->ptk_pn[keyidx], NULL); in __iwl_mvm_mac_set_key()
4569 if (mvmsta && iwl_mvm_has_new_rx_api(mvm) && in __iwl_mvm_mac_set_key()
4575 mvmsta->ptk_pn[keyidx], in __iwl_mvm_mac_set_key()
4577 RCU_INIT_POINTER(mvmsta->ptk_pn[keyidx], NULL); in __iwl_mvm_mac_set_key()
5874 struct iwl_mvm_sta *mvmsta; in iwl_mvm_mac_flush() local
5909 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_mac_flush()
5910 if (mvmsta->vif != vif) in iwl_mvm_mac_flush()
5920 if (iwl_mvm_flush_sta(mvm, mvmsta->deflink.sta_id, in iwl_mvm_mac_flush()
5921 mvmsta->tfd_queue_msk)) in iwl_mvm_mac_flush()
5925 iwl_mvm_wait_sta_queues_empty(mvm, mvmsta); in iwl_mvm_mac_flush()
5927 msk |= mvmsta->tfd_queue_msk; in iwl_mvm_mac_flush()
5946 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_mac_flush_sta() local
5954 mvm_link_sta = rcu_dereference_protected(mvmsta->link[link_id], in iwl_mvm_mac_flush_sta()
5960 mvmsta->tfd_queue_msk)) in iwl_mvm_mac_flush_sta()
6226 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_mac_sta_statistics() local
6229 if (mvmsta->deflink.avg_energy) { in iwl_mvm_mac_sta_statistics()
6230 sinfo->signal_avg = -(s8)mvmsta->deflink.avg_energy; in iwl_mvm_mac_sta_statistics()
6235 struct iwl_lq_sta_rs_fw *lq_sta = &mvmsta->deflink.lq_sta.rs_fw; in iwl_mvm_mac_sta_statistics()
6250 if (mvmvif->deflink.ap_sta_id != mvmsta->deflink.sta_id) in iwl_mvm_mac_sta_statistics()