Lines Matching full:peer
89 /* populate TDLS peer data */ in iwl_mvm_tdls_config()
128 /* when the first peer joins, send a power update first */ in iwl_mvm_recalc_tdls_state()
132 /* Configure the FW with TDLS peer info only if TDLS channel switch in iwl_mvm_recalc_tdls_state()
141 /* when the last peer leaves, send a power update last */ in iwl_mvm_recalc_tdls_state()
194 /* we only send requests to our switching peer - update sent time */ in iwl_mvm_tdls_update_cs_state()
196 mvm->tdls_cs.peer.sent_timestamp = iwl_mvm_get_systime(mvm); in iwl_mvm_tdls_update_cs_state()
225 /* the station may not be here, but if it is, it must be a TDLS peer */ in iwl_mvm_rx_tdls_notif()
246 const u8 *peer, bool peer_initiator, u32 timestamp) in iwl_mvm_tdls_check_action() argument
251 /* get the existing peer if it's there */ in iwl_mvm_tdls_check_action()
258 same_peer = ether_addr_equal(peer, sta->addr); in iwl_mvm_tdls_check_action()
264 * might be spurious packet from the peer after the switch is in iwl_mvm_tdls_check_action()
271 /* only allow requests from the same peer */ in iwl_mvm_tdls_check_action()
278 * one is pending. Allow it if the peer is the link in iwl_mvm_tdls_check_action()
285 else if (timestamp <= mvm->tdls_cs.peer.sent_timestamp) in iwl_mvm_tdls_check_action()
310 * to the base channel by the current off-channel peer in iwl_mvm_tdls_check_action()
319 "Invalid TDLS action %d state %d peer %pM same_peer %d initiator %d\n", in iwl_mvm_tdls_check_action()
320 type, mvm->tdls_cs.state, peer, same_peer, in iwl_mvm_tdls_check_action()
330 const u8 *peer, bool peer_initiator, in iwl_mvm_tdls_config_channel_switch() argument
349 ret = iwl_mvm_tdls_check_action(mvm, type, peer, peer_initiator, in iwl_mvm_tdls_config_channel_switch()
365 sta = ieee80211_find_sta(vif, peer); in iwl_mvm_tdls_config_channel_switch()
376 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
378 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
468 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_INVALID_STA) in iwl_mvm_tdls_ch_switch_work()
472 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_ch_switch_work()
474 /* the station may not be here, but if it is, it must be a TDLS peer */ in iwl_mvm_tdls_ch_switch_work()
483 mvm->tdls_cs.peer.initiator, in iwl_mvm_tdls_ch_switch_work()
484 mvm->tdls_cs.peer.op_class, in iwl_mvm_tdls_ch_switch_work()
485 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
487 mvm->tdls_cs.peer.skb, in iwl_mvm_tdls_ch_switch_work()
488 mvm->tdls_cs.peer.ch_sw_tm_ie); in iwl_mvm_tdls_ch_switch_work()
514 /* we only support a single peer for channel switching */ in iwl_mvm_tdls_channel_switch()
515 if (mvm->tdls_cs.peer.sta_id != IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_channel_switch()
517 "Existing peer. Can't start switch with %pM\n", in iwl_mvm_tdls_channel_switch()
531 * Mark the peer as "in tdls switch" for this vif. We only allow a in iwl_mvm_tdls_channel_switch()
532 * single such peer per vif. in iwl_mvm_tdls_channel_switch()
534 mvm->tdls_cs.peer.skb = skb_copy(tmpl_skb, GFP_KERNEL); in iwl_mvm_tdls_channel_switch()
535 if (!mvm->tdls_cs.peer.skb) in iwl_mvm_tdls_channel_switch()
539 mvm->tdls_cs.peer.sta_id = mvmsta->deflink.sta_id; in iwl_mvm_tdls_channel_switch()
540 mvm->tdls_cs.peer.chandef = *chandef; in iwl_mvm_tdls_channel_switch()
541 mvm->tdls_cs.peer.initiator = sta->tdls_initiator; in iwl_mvm_tdls_channel_switch()
542 mvm->tdls_cs.peer.op_class = oper_class; in iwl_mvm_tdls_channel_switch()
543 mvm->tdls_cs.peer.ch_sw_tm_ie = ch_sw_tm_ie; in iwl_mvm_tdls_channel_switch()
568 /* we only support a single peer for channel switching */ in iwl_mvm_tdls_cancel_channel_switch()
569 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_INVALID_STA) { 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()
575 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_cancel_channel_switch()
577 /* make sure it's the same peer */ in iwl_mvm_tdls_cancel_channel_switch()
582 * If we're currently in a switch because of the now canceled peer, in iwl_mvm_tdls_cancel_channel_switch()
586 if (mvm->tdls_cs.cur_sta_id == mvm->tdls_cs.peer.sta_id && in iwl_mvm_tdls_cancel_channel_switch()
590 mvm->tdls_cs.peer.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_tdls_cancel_channel_switch()
591 dev_kfree_skb(mvm->tdls_cs.peer.skb); in iwl_mvm_tdls_cancel_channel_switch()
592 mvm->tdls_cs.peer.skb = NULL; in iwl_mvm_tdls_cancel_channel_switch()
627 * we got a non-zero status from a peer we were switching to - move to in iwl_mvm_tdls_recv_channel_switch()
636 /* make sure it's the same peer */ in iwl_mvm_tdls_recv_channel_switch()