Lines Matching refs:mvm_sta

115 	struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta);  in iwl_mvm_sta_send_to_fw()  local
117 .sta_id = mvm_sta->sta_id, in iwl_mvm_sta_send_to_fw()
118 .mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color), in iwl_mvm_sta_send_to_fw()
123 .tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg), in iwl_mvm_sta_send_to_fw()
130 add_sta_cmd.station_type = mvm_sta->sta_type; in iwl_mvm_sta_send_to_fw()
137 cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_send_to_fw()
214 if (mvm_sta->sta_state >= IEEE80211_STA_ASSOC) in iwl_mvm_sta_send_to_fw()
259 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_rx_agg_session_expired() local
292 mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_agg_session_expired()
293 ieee80211_rx_ba_timer_expired(mvm_sta->vif, in iwl_mvm_rx_agg_session_expired()
1455 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_realloc_queues_after_restart() local
1457 iwl_mvm_get_wd_timeout(mvm, mvm_sta->vif, false, false); in iwl_mvm_realloc_queues_after_restart()
1460 .sta_id = mvm_sta->sta_id, in iwl_mvm_realloc_queues_after_restart()
1465 if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE) in iwl_mvm_realloc_queues_after_restart()
1466 mvm->queue_info[mvm_sta->reserved_queue].status = in iwl_mvm_realloc_queues_after_restart()
1470 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart()
1482 mvm_sta->sta_id, i); in iwl_mvm_realloc_queues_after_restart()
1483 txq_id = iwl_mvm_tvqm_enable_txq(mvm, mvm_sta->sta_id, in iwl_mvm_realloc_queues_after_restart()
1512 mvm_sta->sta_id, i, txq_id); in iwl_mvm_realloc_queues_after_restart()
1569 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_add_sta() local
1581 sta_id = mvm_sta->sta_id; in iwl_mvm_add_sta()
1586 spin_lock_init(&mvm_sta->lock); in iwl_mvm_add_sta()
1592 .type = mvm_sta->sta_type, in iwl_mvm_add_sta()
1610 mvm_sta->sta_id = sta_id; in iwl_mvm_add_sta()
1611 mvm_sta->mac_id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_add_sta()
1613 mvm_sta->vif = vif; in iwl_mvm_add_sta()
1615 mvm_sta->max_agg_bufsize = LINK_QUAL_AGG_FRAME_LIMIT_DEF; in iwl_mvm_add_sta()
1617 mvm_sta->max_agg_bufsize = LINK_QUAL_AGG_FRAME_LIMIT_GEN2_DEF; in iwl_mvm_add_sta()
1618 mvm_sta->tx_protection = 0; in iwl_mvm_add_sta()
1619 mvm_sta->tt_tx_protection = false; in iwl_mvm_add_sta()
1620 mvm_sta->sta_type = sta->tdls ? IWL_STA_TDLS_LINK : IWL_STA_LINK; in iwl_mvm_add_sta()
1623 mvm_sta->tid_disable_agg = 0xffff; /* No aggs at first */ in iwl_mvm_add_sta()
1624 mvm_sta->tfd_queue_msk = 0; in iwl_mvm_add_sta()
1628 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1629 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1630 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1636 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1648 mvm_sta->agg_tids = 0; in iwl_mvm_add_sta()
1670 mvm_sta->dup_data = dup_data; in iwl_mvm_add_sta()
1685 iwl_mvm_rs_add_sta(mvm, mvm_sta); in iwl_mvm_add_sta()
1687 spin_lock_init(&mvm_sta->lq_sta.rs_drv.pers.lock); in iwl_mvm_add_sta()
1689 iwl_mvm_toggle_tx_ant(mvm, &mvm_sta->tx_ant); in iwl_mvm_add_sta()
1786 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_disable_sta_queues() local
1791 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1792 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1795 iwl_mvm_disable_txq(mvm, sta, mvm_sta->tid_data[i].txq_id, i, in iwl_mvm_disable_sta_queues()
1797 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1809 struct iwl_mvm_sta *mvm_sta) in iwl_mvm_wait_sta_queues_empty() argument
1813 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1817 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_wait_sta_queues_empty()
1818 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
1819 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_wait_sta_queues_empty()
1837 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rm_sta() local
1838 u8 sta_id = mvm_sta->sta_id; in iwl_mvm_rm_sta()
1844 kfree(mvm_sta->dup_data); in iwl_mvm_rm_sta()
1846 ret = iwl_mvm_drain_sta(mvm, mvm_sta, true); in iwl_mvm_rm_sta()
1851 ret = iwl_mvm_flush_sta(mvm, mvm_sta, false, 0); in iwl_mvm_rm_sta()
1855 ret = iwl_mvm_wait_sta_queues_empty(mvm, mvm_sta); in iwl_mvm_rm_sta()
1857 u32 q_mask = mvm_sta->tfd_queue_msk; in iwl_mvm_rm_sta()
1865 ret = iwl_mvm_drain_sta(mvm, mvm_sta, false); in iwl_mvm_rm_sta()
1870 if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE) { in iwl_mvm_rm_sta()
1871 u8 reserved_txq = mvm_sta->reserved_queue; in iwl_mvm_rm_sta()
1912 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_rm_sta()
1913 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_rm_sta()
1915 ret = iwl_mvm_rm_sta_common(mvm, mvm_sta->sta_id); in iwl_mvm_rm_sta()
1916 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[mvm_sta->sta_id], NULL); in iwl_mvm_rm_sta()
2522 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_rx_agg() local
2576 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_rx_agg()
2577 cmd.sta_id = mvm_sta->sta_id; in iwl_mvm_sta_rx_agg()
2637 baid_data->sta_id = mvm_sta->sta_id; in iwl_mvm_sta_rx_agg()
2639 mvm_sta->tid_to_baid[tid] = baid; in iwl_mvm_sta_rx_agg()
2652 mvm_sta->sta_id, tid, baid); in iwl_mvm_sta_rx_agg()
2656 u8 baid = mvm_sta->tid_to_baid[tid]; in iwl_mvm_sta_rx_agg()
2688 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg() local
2696 mvm_sta->tfd_queue_msk |= BIT(queue); in iwl_mvm_sta_tx_agg()
2697 mvm_sta->tid_disable_agg &= ~BIT(tid); in iwl_mvm_sta_tx_agg()
2700 mvm_sta->tid_disable_agg |= BIT(tid); in iwl_mvm_sta_tx_agg()
2703 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_tx_agg()
2704 cmd.sta_id = mvm_sta->sta_id; in iwl_mvm_sta_tx_agg()
2709 cmd.tfd_queue_msk = cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_tx_agg()
2710 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); in iwl_mvm_sta_tx_agg()
3413 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_set_sta_key() local
3415 sta_id = mvm_sta->sta_id; in __iwl_mvm_set_sta_key()
3460 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_set_sta_key() local
3470 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_set_sta_key()
3471 if (!mvm_sta) { in iwl_mvm_set_sta_key()
3475 sta_id = mvm_sta->sta_id; in iwl_mvm_set_sta_key()
3561 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_remove_sta_key() local
3568 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_remove_sta_key()
3569 if (mvm_sta) in iwl_mvm_remove_sta_key()
3570 sta_id = mvm_sta->sta_id; in iwl_mvm_remove_sta_key()
3578 if (mvm_sta && (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC || in iwl_mvm_remove_sta_key()
3596 if (sta && !mvm_sta) { in iwl_mvm_remove_sta_key()
3619 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_update_tkip_key() local
3625 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_update_tkip_key()
3626 if (WARN_ON_ONCE(!mvm_sta)) in iwl_mvm_update_tkip_key()
3628 iwl_mvm_send_sta_key(mvm, mvm_sta->sta_id, keyconf, mcast, in iwl_mvm_update_tkip_key()
3777 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_modify_disable_tx_ap() local
3779 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3781 if (mvm_sta->disable_tx == disable) { in iwl_mvm_sta_modify_disable_tx_ap()
3782 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3786 mvm_sta->disable_tx = disable; in iwl_mvm_sta_modify_disable_tx_ap()
3791 iwl_mvm_sta_modify_disable_tx(mvm, mvm_sta, disable); in iwl_mvm_sta_modify_disable_tx_ap()
3793 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3822 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_modify_all_sta_disable_tx() local
3834 mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_modify_all_sta_disable_tx()
3835 if (mvm_sta->mac_id_n_color != in iwl_mvm_modify_all_sta_disable_tx()