Lines Matching refs:sta
18 struct ieee80211_sta *sta; in iwl_mvm_teardown_tdls_peers() local
25 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_teardown_tdls_peers()
27 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_teardown_tdls_peers()
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()
40 struct ieee80211_sta *sta; in iwl_mvm_tdls_sta_count() local
48 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_tdls_sta_count()
50 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_tdls_sta_count()
54 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_sta_count()
76 struct ieee80211_sta *sta; in iwl_mvm_tdls_config() local
92 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_tdls_config()
94 if (IS_ERR_OR_NULL(sta) || !sta->tdls) in iwl_mvm_tdls_config()
102 cpu_to_le32(sta->tdls_initiator ? 1 : 0); in iwl_mvm_tdls_config()
206 struct ieee80211_sta *sta; in iwl_mvm_rx_tdls_notif() local
223 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_rx_tdls_notif()
226 if (IS_ERR_OR_NULL(sta) || WARN_ON(!sta->tdls)) in iwl_mvm_rx_tdls_notif()
229 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tdls_notif()
254 struct ieee80211_sta *sta = rcu_dereference_protected( in iwl_mvm_tdls_check_action() local
257 if (!IS_ERR_OR_NULL(sta)) in iwl_mvm_tdls_check_action()
258 same_peer = ether_addr_equal(peer, sta->addr); in iwl_mvm_tdls_check_action()
337 struct ieee80211_sta *sta; in iwl_mvm_tdls_config_channel_switch() local
365 sta = ieee80211_find_sta(vif, peer); in iwl_mvm_tdls_config_channel_switch()
366 if (!sta) { in iwl_mvm_tdls_config_channel_switch()
371 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_config_channel_switch()
419 iwl_mvm_set_tx_cmd_rate(mvm, &tail->frame.tx_cmd, info, sta, in iwl_mvm_tdls_config_channel_switch()
455 struct ieee80211_sta *sta; in iwl_mvm_tdls_ch_switch_work() local
471 sta = rcu_dereference_protected( in iwl_mvm_tdls_ch_switch_work()
475 if (!sta || IS_ERR(sta) || WARN_ON(!sta->tdls)) in iwl_mvm_tdls_ch_switch_work()
478 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_ch_switch_work()
482 sta->addr, in iwl_mvm_tdls_ch_switch_work()
500 struct ieee80211_sta *sta, u8 oper_class, in iwl_mvm_tdls_channel_switch() argument
512 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch()
518 sta->addr); in iwl_mvm_tdls_channel_switch()
524 sta->addr, sta->tdls_initiator, in iwl_mvm_tdls_channel_switch()
538 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_channel_switch()
541 mvm->tdls_cs.peer.initiator = sta->tdls_initiator; in iwl_mvm_tdls_channel_switch()
558 struct ieee80211_sta *sta) in iwl_mvm_tdls_cancel_channel_switch() argument
566 IWL_DEBUG_TDLS(mvm, "TDLS cancel channel switch with %pM\n", sta->addr); in iwl_mvm_tdls_cancel_channel_switch()
570 IWL_DEBUG_TDLS(mvm, "No ch switch peer - %pM\n", sta->addr); in iwl_mvm_tdls_cancel_channel_switch()
578 if (cur_sta != sta) in iwl_mvm_tdls_cancel_channel_switch()
605 IWL_DEBUG_TDLS(mvm, "TDLS ending channel switch with %pM\n", sta->addr); in iwl_mvm_tdls_cancel_channel_switch()
624 action_str, params->sta->addr, params->status); in iwl_mvm_tdls_recv_channel_switch()
640 if (cur_sta == params->sta) { in iwl_mvm_tdls_recv_channel_switch()
650 iwl_mvm_tdls_config_channel_switch(mvm, vif, type, params->sta->addr, in iwl_mvm_tdls_recv_channel_switch()
651 params->sta->tdls_initiator, 0, in iwl_mvm_tdls_recv_channel_switch()