Lines Matching refs:mvm_sta
58 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_send_to_fw() local
60 .sta_id = mvm_sta->sta_id, in iwl_mvm_sta_send_to_fw()
61 .mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color), in iwl_mvm_sta_send_to_fw()
66 .tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg), in iwl_mvm_sta_send_to_fw()
73 add_sta_cmd.station_type = mvm_sta->sta_type; in iwl_mvm_sta_send_to_fw()
80 cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_send_to_fw()
144 if (mvm_sta->vif->bss_conf.chandef.chan->band == NL80211_BAND_6GHZ) { in iwl_mvm_sta_send_to_fw()
184 if (mvm_sta->sta_state >= IEEE80211_STA_ASSOC) in iwl_mvm_sta_send_to_fw()
229 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_rx_agg_session_expired() local
262 mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_agg_session_expired()
263 ieee80211_rx_ba_timer_expired(mvm_sta->vif, in iwl_mvm_rx_agg_session_expired()
1440 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_realloc_queues_after_restart() local
1442 iwl_mvm_get_wd_timeout(mvm, mvm_sta->vif, false, false); in iwl_mvm_realloc_queues_after_restart()
1445 .sta_id = mvm_sta->sta_id, in iwl_mvm_realloc_queues_after_restart()
1450 if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE) in iwl_mvm_realloc_queues_after_restart()
1451 mvm->queue_info[mvm_sta->reserved_queue].status = in iwl_mvm_realloc_queues_after_restart()
1455 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart()
1467 mvm_sta->sta_id, i); in iwl_mvm_realloc_queues_after_restart()
1468 txq_id = iwl_mvm_tvqm_enable_txq(mvm, mvm_sta->sta_id, in iwl_mvm_realloc_queues_after_restart()
1497 mvm_sta->sta_id, i, txq_id); in iwl_mvm_realloc_queues_after_restart()
1561 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_add_sta() local
1573 sta_id = mvm_sta->sta_id; in iwl_mvm_add_sta()
1578 spin_lock_init(&mvm_sta->lock); in iwl_mvm_add_sta()
1584 .type = mvm_sta->sta_type, in iwl_mvm_add_sta()
1602 mvm_sta->sta_id = sta_id; in iwl_mvm_add_sta()
1603 mvm_sta->mac_id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_add_sta()
1605 mvm_sta->vif = vif; in iwl_mvm_add_sta()
1607 mvm_sta->max_agg_bufsize = LINK_QUAL_AGG_FRAME_LIMIT_DEF; in iwl_mvm_add_sta()
1609 mvm_sta->max_agg_bufsize = LINK_QUAL_AGG_FRAME_LIMIT_GEN2_DEF; in iwl_mvm_add_sta()
1610 mvm_sta->tx_protection = 0; in iwl_mvm_add_sta()
1611 mvm_sta->tt_tx_protection = false; in iwl_mvm_add_sta()
1612 mvm_sta->sta_type = sta->tdls ? IWL_STA_TDLS_LINK : IWL_STA_LINK; in iwl_mvm_add_sta()
1615 mvm_sta->tid_disable_agg = 0xffff; /* No aggs at first */ in iwl_mvm_add_sta()
1616 mvm_sta->tfd_queue_msk = 0; in iwl_mvm_add_sta()
1620 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1621 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1622 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1628 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1640 mvm_sta->agg_tids = 0; in iwl_mvm_add_sta()
1662 mvm_sta->dup_data = dup_data; in iwl_mvm_add_sta()
1677 iwl_mvm_rs_add_sta(mvm, mvm_sta); in iwl_mvm_add_sta()
1679 spin_lock_init(&mvm_sta->lq_sta.rs_drv.pers.lock); in iwl_mvm_add_sta()
1681 iwl_mvm_toggle_tx_ant(mvm, &mvm_sta->tx_ant); in iwl_mvm_add_sta()
1778 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_disable_sta_queues() local
1783 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1784 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1787 iwl_mvm_disable_txq(mvm, sta, &mvm_sta->tid_data[i].txq_id, i, in iwl_mvm_disable_sta_queues()
1789 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1801 struct iwl_mvm_sta *mvm_sta) in iwl_mvm_wait_sta_queues_empty() argument
1805 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1809 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_wait_sta_queues_empty()
1810 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
1811 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_wait_sta_queues_empty()
1829 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rm_sta() local
1830 u8 sta_id = mvm_sta->sta_id; in iwl_mvm_rm_sta()
1836 kfree(mvm_sta->dup_data); in iwl_mvm_rm_sta()
1838 ret = iwl_mvm_drain_sta(mvm, mvm_sta, true); in iwl_mvm_rm_sta()
1843 ret = iwl_mvm_flush_sta(mvm, mvm_sta, false); in iwl_mvm_rm_sta()
1847 ret = iwl_mvm_wait_sta_queues_empty(mvm, mvm_sta); in iwl_mvm_rm_sta()
1849 u32 q_mask = mvm_sta->tfd_queue_msk; in iwl_mvm_rm_sta()
1857 ret = iwl_mvm_drain_sta(mvm, mvm_sta, false); in iwl_mvm_rm_sta()
1862 if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE) { in iwl_mvm_rm_sta()
1863 u8 reserved_txq = mvm_sta->reserved_queue; in iwl_mvm_rm_sta()
1904 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_rm_sta()
1905 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_rm_sta()
1907 ret = iwl_mvm_rm_sta_common(mvm, mvm_sta->sta_id); in iwl_mvm_rm_sta()
1908 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[mvm_sta->sta_id], NULL); in iwl_mvm_rm_sta()
2532 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_rx_agg() local
2586 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_rx_agg()
2587 cmd.sta_id = mvm_sta->sta_id; in iwl_mvm_sta_rx_agg()
2647 baid_data->sta_id = mvm_sta->sta_id; in iwl_mvm_sta_rx_agg()
2649 mvm_sta->tid_to_baid[tid] = baid; in iwl_mvm_sta_rx_agg()
2662 mvm_sta->sta_id, tid, baid); in iwl_mvm_sta_rx_agg()
2666 u8 baid = mvm_sta->tid_to_baid[tid]; in iwl_mvm_sta_rx_agg()
2698 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg() local
2706 mvm_sta->tfd_queue_msk |= BIT(queue); in iwl_mvm_sta_tx_agg()
2707 mvm_sta->tid_disable_agg &= ~BIT(tid); in iwl_mvm_sta_tx_agg()
2710 mvm_sta->tid_disable_agg |= BIT(tid); in iwl_mvm_sta_tx_agg()
2713 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_tx_agg()
2714 cmd.sta_id = mvm_sta->sta_id; in iwl_mvm_sta_tx_agg()
2719 cmd.tfd_queue_msk = cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_tx_agg()
2720 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); in iwl_mvm_sta_tx_agg()
3483 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_set_sta_key() local
3485 sta_id = mvm_sta->sta_id; in __iwl_mvm_set_sta_key()
3519 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_set_sta_key() local
3529 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_set_sta_key()
3530 if (!mvm_sta) { in iwl_mvm_set_sta_key()
3534 sta_id = mvm_sta->sta_id; in iwl_mvm_set_sta_key()
3620 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_remove_sta_key() local
3627 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_remove_sta_key()
3628 if (mvm_sta) in iwl_mvm_remove_sta_key()
3629 sta_id = mvm_sta->sta_id; in iwl_mvm_remove_sta_key()
3655 if (sta && !mvm_sta) { in iwl_mvm_remove_sta_key()
3678 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_update_tkip_key() local
3684 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_update_tkip_key()
3685 if (WARN_ON_ONCE(!mvm_sta)) in iwl_mvm_update_tkip_key()
3687 iwl_mvm_send_sta_key(mvm, mvm_sta->sta_id, keyconf, mcast, in iwl_mvm_update_tkip_key()
3836 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_modify_disable_tx_ap() local
3838 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3840 if (mvm_sta->disable_tx == disable) { in iwl_mvm_sta_modify_disable_tx_ap()
3841 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3845 mvm_sta->disable_tx = disable; in iwl_mvm_sta_modify_disable_tx_ap()
3854 iwl_mvm_sta_modify_disable_tx(mvm, mvm_sta, disable); in iwl_mvm_sta_modify_disable_tx_ap()
3856 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3885 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_modify_all_sta_disable_tx() local
3896 mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_modify_all_sta_disable_tx()
3897 if (mvm_sta->mac_id_n_color != in iwl_mvm_modify_all_sta_disable_tx()