Lines Matching refs:mvmsta
902 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_ampdu_check_trigger() local
903 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_ampdu_check_trigger()
1412 struct iwl_mvm_sta *mvmsta; in iwl_mvm_post_channel_switch() local
1415 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, in iwl_mvm_post_channel_switch()
1418 if (WARN_ON(!mvmsta)) { in iwl_mvm_post_channel_switch()
1423 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_post_channel_switch()
3194 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_sta_notify() local
3206 spin_lock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify()
3207 for (tid = 0; tid < ARRAY_SIZE(mvmsta->tid_data); tid++) { in __iwl_mvm_mac_sta_notify()
3208 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in __iwl_mvm_mac_sta_notify()
3235 if (WARN_ON(mvmsta->deflink.sta_id == IWL_MVM_INVALID_STA)) in __iwl_mvm_mac_sta_notify()
3245 spin_unlock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify()
3259 struct iwl_mvm_sta *mvmsta; in iwl_mvm_sta_pm_notif() local
3272 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_pm_notif()
3274 if (!mvmsta->vif || in iwl_mvm_sta_pm_notif()
3275 mvmsta->vif->type != NL80211_IFTYPE_AP) { in iwl_mvm_sta_pm_notif()
3280 if (mvmsta->sleeping != sleeping) { in iwl_mvm_sta_pm_notif()
3281 mvmsta->sleeping = sleeping; in iwl_mvm_sta_pm_notif()
3851 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_state_authorized_to_assoc() local
3855 mvmsta->authorized = false; in iwl_mvm_sta_state_authorized_to_assoc()
4151 struct iwl_mvm_sta *mvmsta = NULL; in __iwl_mvm_mac_set_key() local
4160 mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_set_key()
4262 mvmsta && iwl_mvm_has_new_rx_api(mvm) && in __iwl_mvm_mac_set_key()
4270 WARN_ON(rcu_access_pointer(mvmsta->ptk_pn[keyidx])); in __iwl_mvm_mac_set_key()
4287 rcu_assign_pointer(mvmsta->ptk_pn[keyidx], ptk_pn); in __iwl_mvm_mac_set_key()
4296 if (mvmsta && key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in __iwl_mvm_mac_set_key()
4297 mvmsta->pairwise_cipher = key->cipher; in __iwl_mvm_mac_set_key()
4311 RCU_INIT_POINTER(mvmsta->ptk_pn[keyidx], NULL); in __iwl_mvm_mac_set_key()
4350 if (mvmsta && iwl_mvm_has_new_rx_api(mvm) && in __iwl_mvm_mac_set_key()
4356 mvmsta->ptk_pn[keyidx], in __iwl_mvm_mac_set_key()
4358 RCU_INIT_POINTER(mvmsta->ptk_pn[keyidx], NULL); in __iwl_mvm_mac_set_key()
5620 struct iwl_mvm_sta *mvmsta; in iwl_mvm_mac_flush() local
5644 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_mac_flush()
5645 if (mvmsta->vif != vif) in iwl_mvm_mac_flush()
5655 if (iwl_mvm_flush_sta(mvm, mvmsta->deflink.sta_id, in iwl_mvm_mac_flush()
5656 mvmsta->tfd_queue_msk)) in iwl_mvm_mac_flush()
5660 iwl_mvm_wait_sta_queues_empty(mvm, mvmsta); in iwl_mvm_mac_flush()
5662 msk |= mvmsta->tfd_queue_msk; in iwl_mvm_mac_flush()
5681 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_mac_flush_sta() local
5689 mvm_link_sta = rcu_dereference_protected(mvmsta->link[link_id], in iwl_mvm_mac_flush_sta()
5695 mvmsta->tfd_queue_msk)) in iwl_mvm_mac_flush_sta()
5893 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_mac_sta_statistics() local
5895 if (mvmsta->deflink.avg_energy) { in iwl_mvm_mac_sta_statistics()
5896 sinfo->signal_avg = -(s8)mvmsta->deflink.avg_energy; in iwl_mvm_mac_sta_statistics()
5901 struct iwl_lq_sta_rs_fw *lq_sta = &mvmsta->deflink.lq_sta.rs_fw; in iwl_mvm_mac_sta_statistics()
5916 if (mvmvif->deflink.ap_sta_id != mvmsta->deflink.sta_id) in iwl_mvm_mac_sta_statistics()