| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| 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 | tx.c | 258 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_tx_ant() local 260 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant() 424 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local 426 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate() 515 struct iwl_mvm_sta *mvmsta, in iwl_mvm_use_host_rate() argument 519 if (unlikely(!mvmsta)) in iwl_mvm_use_host_rate() 526 mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED)) in iwl_mvm_use_host_rate() 572 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local 591 if (unlikely(iwl_mvm_use_host_rate(mvm, mvmsta, hdr, info))) { in iwl_mvm_set_tx_params() 597 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params() [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 | 583 static void rs_tl_turn_on_agg(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_tl_turn_on_agg() argument 601 tid_data = &mvmsta->tid_data[tid]; in rs_tl_turn_on_agg() 602 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED && in rs_tl_turn_on_agg() 718 struct iwl_mvm_sta *mvmsta, in rs_update_tid_tpt_stats() argument 726 tid_data = &mvmsta->tid_data[tid]; in rs_update_tid_tpt_stats() 748 struct iwl_mvm_sta *mvmsta, u8 tid, in rs_collect_tlc_data() argument 758 struct lq_sta_pers *pers = &mvmsta->deflink.lq_sta.rs_drv.pers; in rs_collect_tlc_data() 764 rs_update_tid_tpt_stats(mvm, mvmsta, tid, successes); in rs_collect_tlc_data() 1171 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_mac80211_tx_status() local 1173 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() 445 mvm_link_sta = rcu_dereference(mvmsta->link[link_sta->link_id]); in iwl_mvm_tlc_update_notif() 484 mvmsta->amsdu_enabled = enabled; in iwl_mvm_tlc_update_notif() 485 mvmsta->max_amsdu_len = size; in iwl_mvm_tlc_update_notif() 486 link_sta->agg.max_rc_amsdu_len = mvmsta->max_amsdu_len; in iwl_mvm_tlc_update_notif() 489 if (mvmsta->amsdu_enabled & BIT(i)) in iwl_mvm_tlc_update_notif() 505 mvmsta->amsdu_enabled); in iwl_mvm_tlc_update_notif() 576 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_fw_rate_init() local 587 .max_ch_width = mvmsta->authorized ? in iwl_mvm_rs_fw_rate_init() [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() 592 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_coex_agg_time_limit() local 593 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 604 lut_type = iwl_get_coex_type(mvm, mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 616 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_coex_is_mimo_allowed() 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 | mac80211.c | 981 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_ampdu_check_trigger() local 982 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_ampdu_check_trigger() 1526 struct iwl_mvm_sta *mvmsta; in iwl_mvm_post_channel_switch() local 1532 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, ap_sta_id); in iwl_mvm_post_channel_switch() 1534 if (WARN_ON(!mvmsta)) { in iwl_mvm_post_channel_switch() 1539 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_post_channel_switch() 3259 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_sta_notify() local 3271 spin_lock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify() 3272 for (tid = 0; tid < ARRAY_SIZE(mvmsta->tid_data); tid++) { in __iwl_mvm_mac_sta_notify() 3273 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in __iwl_mvm_mac_sta_notify() [all …]
|
| H A D | tt.c | 345 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tt_tx_protection() local 349 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, i); in iwl_mvm_tt_tx_protection() 350 if (!mvmsta) in iwl_mvm_tt_tx_protection() 353 if (enable == mvmsta->tt_tx_protection) in iwl_mvm_tt_tx_protection() 355 err = iwl_mvm_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tt_tx_protection() 362 mvmsta->tt_tx_protection = enable; in iwl_mvm_tt_tx_protection()
|
| H A D | rs.h | 428 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 437 void iwl_mvm_rs_add_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta); 447 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() 329 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_mgmt_prot() local 354 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_mgmt_prot() 355 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 407 wdev = ieee80211_vif_to_wdev(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 529 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 535 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 1957 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_get_sta_block_tx() local [all …]
|
| H A D | debugfs.c | 405 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_rs_data_read() argument 448 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_amsdu_len_write() argument 480 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_amsdu_len_read() argument 1529 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(link_sta->sta); in _iwl_dbgfs_link_sta_wrap_write() local 1530 struct iwl_mvm *mvm = iwl_mvm_vif_from_mac80211(mvmsta->vif)->mvm; in _iwl_dbgfs_link_sta_wrap_write() 1536 mvm_link_sta = rcu_dereference_protected(mvmsta->link[link_sta->link_id], in _iwl_dbgfs_link_sta_wrap_write() 1543 ret = real(link_sta, mvmsta, mvm, mvm_link_sta, buf, buf_size, ppos); in _iwl_dbgfs_link_sta_wrap_write() 1561 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(link_sta->sta); in _iwl_dbgfs_link_sta_wrap_read() local 1562 struct iwl_mvm *mvm = iwl_mvm_vif_from_mac80211(mvmsta->vif)->mvm; in _iwl_dbgfs_link_sta_wrap_read() 1568 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 | 560 int iwl_mvm_drain_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 563 struct iwl_mvm_sta *mvmsta, bool disable);
|
| H A D | mld-sta.c | 12 struct iwl_mvm_sta *mvmsta; in iwl_mvm_sta_fw_id_mask() local 17 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_fw_id_mask() 19 return BIT(mvmsta->deflink.sta_id); in iwl_mvm_sta_fw_id_mask() 851 struct iwl_mvm_sta *mvmsta, in iwl_mvm_mld_sta_modify_disable_tx() argument 857 cmd.sta_id = cpu_to_le32(mvmsta->deflink.sta_id); in iwl_mvm_mld_sta_modify_disable_tx()
|
| H A D | time-event.c | 201 struct iwl_mvm_sta *mvmsta; in iwl_mvm_te_check_disconnect() local 204 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, in iwl_mvm_te_check_disconnect() 206 if (!WARN_ON(!mvmsta)) in iwl_mvm_te_check_disconnect() 207 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_te_check_disconnect()
|
| H A D | d3.c | 288 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_get_rsc_tsc_data() local 292 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_get_rsc_tsc_data() 294 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_tsc_data() 409 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_get_rsc_v5_data() local 413 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_get_rsc_v5_data() 415 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_v5_data() 1630 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_aes_ptk_rx_seq() local 1641 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_set_aes_ptk_rx_seq()
|
| H A D | ops.c | 1826 struct iwl_mvm_sta *mvmsta; in iwl_mvm_queue_state_change() local 1841 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_queue_state_change() 1846 else if (mvmsta->sta_state != IEEE80211_STA_NOTEXIST) in iwl_mvm_queue_state_change() 1873 if (start && mvmsta->sta_state != IEEE80211_STA_NOTEXIST) { in iwl_mvm_queue_state_change()
|
| H A D | mvm.h | 2097 struct iwl_mvm_sta *mvmsta,
|