| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | tx.c | 316 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_tx_ant() local 318 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant() 399 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local 401 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate() 513 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local 540 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params() 792 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_max_amsdu_size() local 793 enum nl80211_band band = mvmsta->vif->bss_conf.chandef.chan->band; in iwl_mvm_max_amsdu_size() 810 return min_t(unsigned int, mvmsta->max_amsdu_len, in iwl_mvm_max_amsdu_size() 887 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_tso() local [all …]
|
| H A D | sta.c | 322 struct iwl_mvm_sta *mvmsta; in iwl_mvm_invalidate_sta_queue() local 340 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_invalidate_sta_queue() 342 mvmsta->tid_disable_agg |= disable_agg_tids; in iwl_mvm_invalidate_sta_queue() 344 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_invalidate_sta_queue() 345 cmd.sta_id = mvmsta->sta_id; in iwl_mvm_invalidate_sta_queue() 352 cmd.tfd_queue_msk = cpu_to_le32(mvmsta->tfd_queue_msk); in iwl_mvm_invalidate_sta_queue() 353 cmd.tid_disable_tx = cpu_to_le16(mvmsta->tid_disable_agg); in iwl_mvm_invalidate_sta_queue() 434 struct iwl_mvm_sta *mvmsta; in iwl_mvm_get_queue_agg_tids() local 454 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_queue_agg_tids() 456 spin_lock_bh(&mvmsta->lock); in iwl_mvm_get_queue_agg_tids() [all …]
|
| H A D | rs-fw.c | 348 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tlc_update_notif() local 362 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tlc_update_notif() 364 if (!mvmsta) { in iwl_mvm_tlc_update_notif() 372 lq_sta = &mvmsta->lq_sta.rs_fw; in iwl_mvm_tlc_update_notif() 382 if (flags & IWL_TLC_NOTIF_FLAG_AMSDU && !mvmsta->orig_amsdu_len) { in iwl_mvm_tlc_update_notif() 392 WARN_ON(mvmsta->orig_amsdu_len < size); in iwl_mvm_tlc_update_notif() 396 mvmsta->amsdu_enabled = le32_to_cpu(notif->amsdu_enabled); in iwl_mvm_tlc_update_notif() 397 mvmsta->max_amsdu_len = size; in iwl_mvm_tlc_update_notif() 398 sta->max_rc_amsdu_len = mvmsta->max_amsdu_len; in iwl_mvm_tlc_update_notif() 401 if (mvmsta->amsdu_enabled & BIT(i)) in iwl_mvm_tlc_update_notif() [all …]
|
| H A D | tdls.c | 75 struct iwl_mvm_sta *mvmsta; in iwl_mvm_teardown_tdls_peers() local 86 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_teardown_tdls_peers() 87 ieee80211_tdls_oper_request(mvmsta->vif, sta->addr, in iwl_mvm_teardown_tdls_peers() 97 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tdls_sta_count() local 110 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_sta_count() 111 if (mvmsta->vif != vif) in iwl_mvm_tdls_sta_count() 264 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tdls_notif() local 285 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tdls_notif() 286 vif = mvmsta->vif; in iwl_mvm_rx_tdls_notif() 394 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tdls_config_channel_switch() local [all …]
|
| H A D | rs.c | 626 static void rs_tl_turn_on_agg(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_tl_turn_on_agg() argument 644 tid_data = &mvmsta->tid_data[tid]; in rs_tl_turn_on_agg() 645 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED && in rs_tl_turn_on_agg() 762 struct iwl_mvm_sta *mvmsta, in rs_update_tid_tpt_stats() argument 770 tid_data = &mvmsta->tid_data[tid]; in rs_update_tid_tpt_stats() 792 struct iwl_mvm_sta *mvmsta, u8 tid, in rs_collect_tlc_data() argument 802 struct lq_sta_pers *pers = &mvmsta->lq_sta.rs_drv.pers; in rs_collect_tlc_data() 808 rs_update_tid_tpt_stats(mvm, mvmsta, tid, successes); in rs_collect_tlc_data() 1217 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_mac80211_tx_status() local 1219 if (!mvmsta->vif) in rs_drv_mac80211_tx_status() [all …]
|
| H A D | coex.c | 241 struct iwl_mvm_sta *mvmsta; in iwl_mvm_bt_coex_reduced_txp() local 244 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, sta_id); in iwl_mvm_bt_coex_reduced_txp() 245 if (!mvmsta) in iwl_mvm_bt_coex_reduced_txp() 249 if (mvmsta->bt_reduced_txpower == enable) in iwl_mvm_bt_coex_reduced_txp() 252 value = mvmsta->sta_id; in iwl_mvm_bt_coex_reduced_txp() 261 mvmsta->bt_reduced_txpower = enable; in iwl_mvm_bt_coex_reduced_txp() 610 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_coex_agg_time_limit() local 611 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 622 lut_type = iwl_get_coex_type(mvm, mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 634 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 | 262 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_handle_tcm() local 276 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_handle_tcm() 277 mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_rx_handle_tcm() 293 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_handle_tcm() 301 mvmsta->sta_id != mvmvif->ap_sta_id) in iwl_mvm_rx_handle_tcm() 328 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 329 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 436 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_rx_mpdu() local 440 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_rx_rx_mpdu() 455 rs_update_last_rssi(mvm, mvmsta, rx_status); in iwl_mvm_rx_rx_mpdu()
|
| H A D | mac80211.c | 959 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_ampdu_check_trigger() local 960 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_ampdu_check_trigger() 1384 struct iwl_mvm_sta *mvmsta; in iwl_mvm_post_channel_switch() local 1387 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, in iwl_mvm_post_channel_switch() 1390 if (WARN_ON(!mvmsta)) { in iwl_mvm_post_channel_switch() 1395 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_post_channel_switch() 2859 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_sta_notify() local 2871 spin_lock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify() 2872 for (tid = 0; tid < ARRAY_SIZE(mvmsta->tid_data); tid++) { in __iwl_mvm_mac_sta_notify() 2873 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in __iwl_mvm_mac_sta_notify() [all …]
|
| H A D | tt.c | 401 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tt_tx_protection() local 405 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, i); in iwl_mvm_tt_tx_protection() 406 if (!mvmsta) in iwl_mvm_tt_tx_protection() 409 if (enable == mvmsta->tt_tx_protection) in iwl_mvm_tt_tx_protection() 411 err = iwl_mvm_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tt_tx_protection() 418 mvmsta->tt_tx_protection = enable; in iwl_mvm_tt_tx_protection()
|
| H A D | rs.h | 441 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 448 void iwl_mvm_rs_add_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta); 451 int rs_fw_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta,
|
| H A D | rxmq.c | 98 struct iwl_mvm_sta *mvmsta; in iwl_mvm_check_pn() local 133 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_pn() 138 ptk_pn = rcu_dereference(mvmsta->ptk_pn[keyidx]); in iwl_mvm_check_pn() 463 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 469 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 715 struct iwl_mvm_sta *mvmsta; in iwl_mvm_reorder_timer_expired() local 720 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_reorder_timer_expired() 726 iwl_mvm_event_frame_timeout_callback(buf->mvm, mvmsta->vif, in iwl_mvm_reorder_timer_expired() 866 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_oldsn_workaround() local 904 ieee80211_stop_rx_ba_session(mvmsta->vif, BIT(tid), sta->addr); in iwl_mvm_oldsn_workaround() [all …]
|
| H A D | debugfs.c | 168 struct iwl_mvm_sta *mvmsta; in iwl_dbgfs_sta_drain_write() local 184 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, sta_id); in iwl_dbgfs_sta_drain_write() 186 if (!mvmsta) in iwl_dbgfs_sta_drain_write() 189 ret = iwl_mvm_drain_sta(mvm, mvmsta, drain) ? : count; in iwl_dbgfs_sta_drain_write() 429 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_dbgfs_rs_data_read() local 430 struct iwl_lq_sta_rs_fw *lq_sta = &mvmsta->lq_sta.rs_fw; in iwl_dbgfs_rs_data_read() 475 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_dbgfs_amsdu_len_write() local 483 if ((amsdu_len && mvmsta->orig_amsdu_len) || in iwl_dbgfs_amsdu_len_write() 484 (!!amsdu_len && mvmsta->orig_amsdu_len)) in iwl_dbgfs_amsdu_len_write() 488 mvmsta->orig_amsdu_len = sta->max_amsdu_len; in iwl_dbgfs_amsdu_len_write() [all …]
|
| H A D | sta.h | 570 int iwl_mvm_drain_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 573 struct iwl_mvm_sta *mvmsta, bool disable);
|
| H A D | ops.c | 1133 struct iwl_mvm_sta *mvmsta; in iwl_mvm_queue_state_change() local 1148 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_queue_state_change() 1153 else if (mvmsta->sta_state != IEEE80211_STA_NOTEXIST) in iwl_mvm_queue_state_change() 1177 if (start && mvmsta->sta_state != IEEE80211_STA_NOTEXIST) in iwl_mvm_queue_state_change()
|
| H A D | d3.c | 342 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_program_keys() local 346 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_program_keys() 348 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_program_keys() 1364 struct iwl_mvm_sta *mvmsta; in iwl_mvm_set_aes_rx_seq() local 1367 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_aes_rx_seq() 1370 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_set_aes_rx_seq()
|
| H A D | mac-ctxt.c | 673 struct iwl_mvm_sta *mvmsta = in iwl_mvm_mac_ctxt_cmd_sta() local 676 if (mvmsta->sta_state == in iwl_mvm_mac_ctxt_cmd_sta()
|
| H A D | mvm.h | 1776 struct iwl_mvm_sta *mvmsta,
|