/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | tx.c | 257 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_tx_ant() local 259 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant() 432 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local 434 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate() 524 struct iwl_mvm_sta *mvmsta, in iwl_mvm_use_host_rate() argument 528 if (unlikely(!mvmsta)) in iwl_mvm_use_host_rate() 535 mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED)) in iwl_mvm_use_host_rate() 581 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local 600 if (unlikely(iwl_mvm_use_host_rate(mvm, mvmsta, hdr, info))) { in iwl_mvm_set_tx_params() 606 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params() [all …]
|
H A D | sta.c | 309 struct iwl_mvm_sta *mvmsta; in iwl_mvm_invalidate_sta_queue() local 327 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_invalidate_sta_queue() 329 mvmsta->tid_disable_agg |= disable_agg_tids; in iwl_mvm_invalidate_sta_queue() 331 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_invalidate_sta_queue() 332 cmd.sta_id = mvmsta->deflink.sta_id; in iwl_mvm_invalidate_sta_queue() 339 cmd.tfd_queue_msk = cpu_to_le32(mvmsta->tfd_queue_msk); in iwl_mvm_invalidate_sta_queue() 340 cmd.tid_disable_tx = cpu_to_le16(mvmsta->tid_disable_agg); in iwl_mvm_invalidate_sta_queue() 447 struct iwl_mvm_sta *mvmsta; in iwl_mvm_get_queue_agg_tids() local 467 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_queue_agg_tids() 469 spin_lock_bh(&mvmsta->lock); in iwl_mvm_get_queue_agg_tids() [all …]
|
H A D | tdls.c | 19 struct iwl_mvm_sta *mvmsta; in iwl_mvm_teardown_tdls_peers() local 30 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_teardown_tdls_peers() 31 ieee80211_tdls_oper_request(mvmsta->vif, sta->addr, in iwl_mvm_teardown_tdls_peers() 41 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tdls_sta_count() local 54 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_sta_count() 55 if (mvmsta->vif != vif) in iwl_mvm_tdls_sta_count() 208 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tdls_notif() local 229 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tdls_notif() 230 vif = mvmsta->vif; in iwl_mvm_rx_tdls_notif() 338 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tdls_config_channel_switch() local [all …]
|
H A D | rs.c | 582 static void rs_tl_turn_on_agg(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_tl_turn_on_agg() argument 600 tid_data = &mvmsta->tid_data[tid]; in rs_tl_turn_on_agg() 601 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED && in rs_tl_turn_on_agg() 717 struct iwl_mvm_sta *mvmsta, in rs_update_tid_tpt_stats() argument 725 tid_data = &mvmsta->tid_data[tid]; in rs_update_tid_tpt_stats() 747 struct iwl_mvm_sta *mvmsta, u8 tid, in rs_collect_tlc_data() argument 757 struct lq_sta_pers *pers = &mvmsta->deflink.lq_sta.rs_drv.pers; in rs_collect_tlc_data() 763 rs_update_tid_tpt_stats(mvm, mvmsta, tid, successes); in rs_collect_tlc_data() 1170 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_mac80211_tx_status() local 1172 if (!mvmsta->vif) in rs_drv_mac80211_tx_status() [all …]
|
H A D | rs-fw.c | 421 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tlc_update_notif() local 441 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tlc_update_notif() 443 if (!mvmsta) { in iwl_mvm_tlc_update_notif() 451 mvm_link_sta = rcu_dereference(mvmsta->link[link_sta->link_id]); in iwl_mvm_tlc_update_notif() 501 mvmsta->amsdu_enabled = enabled; in iwl_mvm_tlc_update_notif() 502 mvmsta->max_amsdu_len = size; in iwl_mvm_tlc_update_notif() 503 link_sta->agg.max_rc_amsdu_len = mvmsta->max_amsdu_len; in iwl_mvm_tlc_update_notif() 506 if (mvmsta->amsdu_enabled & BIT(i)) in iwl_mvm_tlc_update_notif() 522 mvmsta->amsdu_enabled); in iwl_mvm_tlc_update_notif() 593 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_fw_rate_init() local [all …]
|
H A D | rx.c | 205 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_handle_tcm() local 223 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_handle_tcm() 224 mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_rx_handle_tcm() 240 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_handle_tcm() 248 mvmsta->deflink.sta_id != mvmvif->deflink.ap_sta_id) in iwl_mvm_rx_handle_tcm() 274 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 275 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 382 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_rx_mpdu() local 383 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_rx_rx_mpdu() 414 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_rx_mpdu() local [all …]
|
H A D | coex.c | 181 struct iwl_mvm_sta *mvmsta; in iwl_mvm_bt_coex_reduced_txp() local 187 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, sta_id); in iwl_mvm_bt_coex_reduced_txp() 188 if (!mvmsta) in iwl_mvm_bt_coex_reduced_txp() 192 if (mvmsta->bt_reduced_txpower == enable) in iwl_mvm_bt_coex_reduced_txp() 195 value = mvmsta->deflink.sta_id; in iwl_mvm_bt_coex_reduced_txp() 204 mvmsta->bt_reduced_txpower = enable; in iwl_mvm_bt_coex_reduced_txp() 726 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_coex_agg_time_limit() local 727 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 738 lut_type = iwl_get_coex_type(mvm, mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 750 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_coex_is_mimo_allowed() local [all …]
|
H A D | tt.c | 342 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tt_tx_protection() local 346 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, i); in iwl_mvm_tt_tx_protection() 347 if (!mvmsta) in iwl_mvm_tt_tx_protection() 350 if (enable == mvmsta->tt_tx_protection) in iwl_mvm_tt_tx_protection() 352 err = iwl_mvm_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tt_tx_protection() 359 mvmsta->tt_tx_protection = enable; in iwl_mvm_tt_tx_protection()
|
H A D | mac80211.c | 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() [all …]
|
H A D | rs.h | 427 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 436 void iwl_mvm_rs_add_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta); 446 int rs_fw_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta,
|
H A D | rxmq.c | 17 struct iwl_mvm_sta *mvmsta; in iwl_mvm_check_pn() local 52 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_pn() 57 ptk_pn = rcu_dereference(mvmsta->ptk_pn[keyidx]); in iwl_mvm_check_pn() 278 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_mgmt_prot() local 302 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_mgmt_prot() 303 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 351 wdev = ieee80211_vif_to_wdev(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 473 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 479 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 1896 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_get_sta_block_tx() local [all …]
|
H A D | mld-sta.c | 13 struct iwl_mvm_sta *mvmsta; in iwl_mvm_sta_fw_id_mask() local 21 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_fw_id_mask() 22 vif = mvmsta->vif; in iwl_mvm_sta_fw_id_mask() 26 return BIT(mvmsta->deflink.sta_id); in iwl_mvm_sta_fw_id_mask() 37 rcu_dereference_check(mvmsta->link[link_id], in iwl_mvm_sta_fw_id_mask() 874 struct iwl_mvm_sta *mvmsta, in iwl_mvm_mld_sta_modify_disable_tx() argument 880 cmd.sta_id = cpu_to_le32(mvmsta->deflink.sta_id); in iwl_mvm_mld_sta_modify_disable_tx()
|
H A D | mld-mac80211.c | 215 struct iwl_mvm_sta *mvmsta; in iwl_mvm_restart_mpdu_count() local 222 mvmsta = iwl_mvm_sta_from_mac80211(ap_sta); in iwl_mvm_restart_mpdu_count() 223 if (!mvmsta->mpdu_counters) in iwl_mvm_restart_mpdu_count() 227 spin_lock_bh(&mvmsta->mpdu_counters[q].lock); in iwl_mvm_restart_mpdu_count() 228 memset(mvmsta->mpdu_counters[q].per_link, 0, in iwl_mvm_restart_mpdu_count() 229 sizeof(mvmsta->mpdu_counters[q].per_link)); in iwl_mvm_restart_mpdu_count() 230 mvmsta->mpdu_counters[q].window_start = jiffies; in iwl_mvm_restart_mpdu_count() 231 spin_unlock_bh(&mvmsta->mpdu_counters[q].lock); in iwl_mvm_restart_mpdu_count()
|
H A D | debugfs.c | 403 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_rs_data_read() argument 446 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_amsdu_len_write() argument 479 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_amsdu_len_read() argument 1568 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(link_sta->sta); in _iwl_dbgfs_link_sta_wrap_write() local 1569 struct iwl_mvm *mvm = iwl_mvm_vif_from_mac80211(mvmsta->vif)->mvm; in _iwl_dbgfs_link_sta_wrap_write() 1575 mvm_link_sta = rcu_dereference_protected(mvmsta->link[link_sta->link_id], in _iwl_dbgfs_link_sta_wrap_write() 1582 ret = real(link_sta, mvmsta, mvm, mvm_link_sta, buf, buf_size, ppos); in _iwl_dbgfs_link_sta_wrap_write() 1600 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(link_sta->sta); in _iwl_dbgfs_link_sta_wrap_read() local 1601 struct iwl_mvm *mvm = iwl_mvm_vif_from_mac80211(mvmsta->vif)->mvm; in _iwl_dbgfs_link_sta_wrap_read() 1607 mvm_link_sta = rcu_dereference_protected(mvmsta->link[link_sta->link_id], in _iwl_dbgfs_link_sta_wrap_read() [all …]
|
H A D | sta.h | 586 int iwl_mvm_drain_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 589 struct iwl_mvm_sta *mvmsta, bool disable);
|
H A D | time-event.c | 205 struct iwl_mvm_sta *mvmsta; in iwl_mvm_te_check_disconnect() local 208 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, in iwl_mvm_te_check_disconnect() 210 if (!WARN_ON(!mvmsta)) in iwl_mvm_te_check_disconnect() 211 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_te_check_disconnect()
|
H A D | d3.c | 289 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_get_rsc_tsc_data() local 293 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_get_rsc_tsc_data() 295 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_tsc_data() 410 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_get_rsc_v5_data() local 414 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_get_rsc_v5_data() 416 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_v5_data() 1657 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_aes_ptk_rx_seq() local 1668 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_set_aes_ptk_rx_seq()
|
H A D | ops.c | 1870 struct iwl_mvm_sta *mvmsta; in iwl_mvm_queue_state_change() local 1885 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_queue_state_change() 1890 else if (mvmsta->sta_state != IEEE80211_STA_NOTEXIST) in iwl_mvm_queue_state_change() 1917 if (start && mvmsta->sta_state != IEEE80211_STA_NOTEXIST) { in iwl_mvm_queue_state_change()
|
H A D | mvm.h | 2265 struct iwl_mvm_sta *mvmsta,
|