Lines Matching refs:mvm_sta
113 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_send_to_fw() local
115 .sta_id = mvm_sta->sta_id, in iwl_mvm_sta_send_to_fw()
116 .mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color), in iwl_mvm_sta_send_to_fw()
121 .tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg), in iwl_mvm_sta_send_to_fw()
128 add_sta_cmd.station_type = mvm_sta->sta_type; in iwl_mvm_sta_send_to_fw()
135 cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_send_to_fw()
230 if (mvm_sta->sta_state >= IEEE80211_STA_ASSOC) in iwl_mvm_sta_send_to_fw()
275 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_rx_agg_session_expired() local
308 mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_agg_session_expired()
309 ieee80211_rx_ba_timer_expired(mvm_sta->vif, in iwl_mvm_rx_agg_session_expired()
1481 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_realloc_queues_after_restart() local
1483 iwl_mvm_get_wd_timeout(mvm, mvm_sta->vif, false, false); in iwl_mvm_realloc_queues_after_restart()
1486 .sta_id = mvm_sta->sta_id, in iwl_mvm_realloc_queues_after_restart()
1491 if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE) in iwl_mvm_realloc_queues_after_restart()
1492 mvm->queue_info[mvm_sta->reserved_queue].status = in iwl_mvm_realloc_queues_after_restart()
1496 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart()
1508 mvm_sta->sta_id, i); in iwl_mvm_realloc_queues_after_restart()
1509 txq_id = iwl_mvm_tvqm_enable_txq(mvm, mvm_sta->sta_id, in iwl_mvm_realloc_queues_after_restart()
1538 mvm_sta->sta_id, i, txq_id); in iwl_mvm_realloc_queues_after_restart()
1602 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_add_sta() local
1614 sta_id = mvm_sta->sta_id; in iwl_mvm_add_sta()
1619 spin_lock_init(&mvm_sta->lock); in iwl_mvm_add_sta()
1625 .type = mvm_sta->sta_type, in iwl_mvm_add_sta()
1643 mvm_sta->sta_id = sta_id; in iwl_mvm_add_sta()
1644 mvm_sta->mac_id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_add_sta()
1646 mvm_sta->vif = vif; in iwl_mvm_add_sta()
1648 mvm_sta->max_agg_bufsize = LINK_QUAL_AGG_FRAME_LIMIT_DEF; in iwl_mvm_add_sta()
1650 mvm_sta->max_agg_bufsize = LINK_QUAL_AGG_FRAME_LIMIT_GEN2_DEF; in iwl_mvm_add_sta()
1651 mvm_sta->tx_protection = 0; in iwl_mvm_add_sta()
1652 mvm_sta->tt_tx_protection = false; in iwl_mvm_add_sta()
1653 mvm_sta->sta_type = sta->tdls ? IWL_STA_TDLS_LINK : IWL_STA_LINK; in iwl_mvm_add_sta()
1656 mvm_sta->tid_disable_agg = 0xffff; /* No aggs at first */ in iwl_mvm_add_sta()
1657 mvm_sta->tfd_queue_msk = 0; in iwl_mvm_add_sta()
1661 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1662 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1663 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1669 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1681 mvm_sta->agg_tids = 0; in iwl_mvm_add_sta()
1703 mvm_sta->dup_data = dup_data; in iwl_mvm_add_sta()
1718 iwl_mvm_rs_add_sta(mvm, mvm_sta); in iwl_mvm_add_sta()
1720 spin_lock_init(&mvm_sta->lq_sta.rs_drv.pers.lock); in iwl_mvm_add_sta()
1722 iwl_mvm_toggle_tx_ant(mvm, &mvm_sta->tx_ant); in iwl_mvm_add_sta()
1819 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_disable_sta_queues() local
1824 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1825 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1828 iwl_mvm_disable_txq(mvm, sta, mvm_sta->tid_data[i].txq_id, i, in iwl_mvm_disable_sta_queues()
1830 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1842 struct iwl_mvm_sta *mvm_sta) in iwl_mvm_wait_sta_queues_empty() argument
1846 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1850 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_wait_sta_queues_empty()
1851 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
1852 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_wait_sta_queues_empty()
1870 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rm_sta() local
1871 u8 sta_id = mvm_sta->sta_id; in iwl_mvm_rm_sta()
1877 kfree(mvm_sta->dup_data); in iwl_mvm_rm_sta()
1879 ret = iwl_mvm_drain_sta(mvm, mvm_sta, true); in iwl_mvm_rm_sta()
1884 ret = iwl_mvm_flush_sta(mvm, mvm_sta, false); in iwl_mvm_rm_sta()
1888 ret = iwl_mvm_wait_sta_queues_empty(mvm, mvm_sta); in iwl_mvm_rm_sta()
1890 u32 q_mask = mvm_sta->tfd_queue_msk; in iwl_mvm_rm_sta()
1898 ret = iwl_mvm_drain_sta(mvm, mvm_sta, false); in iwl_mvm_rm_sta()
1903 if (mvm_sta->reserved_queue != IEEE80211_INVAL_HW_QUEUE) { in iwl_mvm_rm_sta()
1904 u8 reserved_txq = mvm_sta->reserved_queue; in iwl_mvm_rm_sta()
1945 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_rm_sta()
1946 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_rm_sta()
1948 ret = iwl_mvm_rm_sta_common(mvm, mvm_sta->sta_id); in iwl_mvm_rm_sta()
1949 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[mvm_sta->sta_id], NULL); in iwl_mvm_rm_sta()
2566 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_rx_agg() local
2620 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_rx_agg()
2621 cmd.sta_id = mvm_sta->sta_id; in iwl_mvm_sta_rx_agg()
2681 baid_data->sta_id = mvm_sta->sta_id; in iwl_mvm_sta_rx_agg()
2683 mvm_sta->tid_to_baid[tid] = baid; in iwl_mvm_sta_rx_agg()
2696 mvm_sta->sta_id, tid, baid); in iwl_mvm_sta_rx_agg()
2700 u8 baid = mvm_sta->tid_to_baid[tid]; in iwl_mvm_sta_rx_agg()
2732 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg() local
2740 mvm_sta->tfd_queue_msk |= BIT(queue); in iwl_mvm_sta_tx_agg()
2741 mvm_sta->tid_disable_agg &= ~BIT(tid); in iwl_mvm_sta_tx_agg()
2744 mvm_sta->tid_disable_agg |= BIT(tid); in iwl_mvm_sta_tx_agg()
2747 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_tx_agg()
2748 cmd.sta_id = mvm_sta->sta_id; in iwl_mvm_sta_tx_agg()
2753 cmd.tfd_queue_msk = cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_tx_agg()
2754 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); in iwl_mvm_sta_tx_agg()
3460 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_set_sta_key() local
3462 sta_id = mvm_sta->sta_id; in __iwl_mvm_set_sta_key()
3507 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_set_sta_key() local
3517 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_set_sta_key()
3518 if (!mvm_sta) { in iwl_mvm_set_sta_key()
3522 sta_id = mvm_sta->sta_id; in iwl_mvm_set_sta_key()
3608 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_remove_sta_key() local
3615 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_remove_sta_key()
3616 if (mvm_sta) in iwl_mvm_remove_sta_key()
3617 sta_id = mvm_sta->sta_id; in iwl_mvm_remove_sta_key()
3643 if (sta && !mvm_sta) { in iwl_mvm_remove_sta_key()
3666 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_update_tkip_key() local
3672 mvm_sta = iwl_mvm_get_key_sta(mvm, vif, sta); in iwl_mvm_update_tkip_key()
3673 if (WARN_ON_ONCE(!mvm_sta)) in iwl_mvm_update_tkip_key()
3675 iwl_mvm_send_sta_key(mvm, mvm_sta->sta_id, keyconf, mcast, in iwl_mvm_update_tkip_key()
3824 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_modify_disable_tx_ap() local
3826 spin_lock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3828 if (mvm_sta->disable_tx == disable) { in iwl_mvm_sta_modify_disable_tx_ap()
3829 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3833 mvm_sta->disable_tx = disable; in iwl_mvm_sta_modify_disable_tx_ap()
3838 iwl_mvm_sta_modify_disable_tx(mvm, mvm_sta, disable); in iwl_mvm_sta_modify_disable_tx_ap()
3840 spin_unlock_bh(&mvm_sta->lock); in iwl_mvm_sta_modify_disable_tx_ap()
3869 struct iwl_mvm_sta *mvm_sta; in iwl_mvm_modify_all_sta_disable_tx() local
3881 mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_modify_all_sta_disable_tx()
3882 if (mvm_sta->mac_id_n_color != in iwl_mvm_modify_all_sta_disable_tx()