Lines Matching refs:tdls_cs
248 if (mvm->tdls_cs.state == state) in iwl_mvm_tdls_update_cs_state()
252 iwl_mvm_tdls_cs_state_str(mvm->tdls_cs.state), in iwl_mvm_tdls_update_cs_state()
254 mvm->tdls_cs.state = state; in iwl_mvm_tdls_update_cs_state()
258 mvm->tdls_cs.peer.sent_timestamp = in iwl_mvm_tdls_update_cs_state()
262 mvm->tdls_cs.cur_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_tdls_update_cs_state()
300 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_rx_tdls_notif()
315 if (mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE && in iwl_mvm_tdls_check_action()
316 mvm->tdls_cs.cur_sta_id != IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_check_action()
318 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_check_action()
324 switch (mvm->tdls_cs.state) { in iwl_mvm_tdls_check_action()
348 else if (timestamp <= mvm->tdls_cs.peer.sent_timestamp) in iwl_mvm_tdls_check_action()
383 type, mvm->tdls_cs.state, peer, same_peer, in iwl_mvm_tdls_check_action()
435 if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_config_channel_switch()
436 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
438 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
439 } else if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_ACTIVE && in iwl_mvm_tdls_config_channel_switch()
500 mvm->tdls_cs.cur_sta_id = mvmsta->sta_id; in iwl_mvm_tdls_config_channel_switch()
527 mvm = container_of(work, struct iwl_mvm, tdls_cs.dwork.work); in iwl_mvm_tdls_ch_switch_work()
534 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_INVALID_STA) in iwl_mvm_tdls_ch_switch_work()
538 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_ch_switch_work()
549 mvm->tdls_cs.peer.initiator, in iwl_mvm_tdls_ch_switch_work()
550 mvm->tdls_cs.peer.op_class, in iwl_mvm_tdls_ch_switch_work()
551 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
553 mvm->tdls_cs.peer.skb, in iwl_mvm_tdls_ch_switch_work()
554 mvm->tdls_cs.peer.ch_sw_tm_ie); in iwl_mvm_tdls_ch_switch_work()
560 schedule_delayed_work(&mvm->tdls_cs.dwork, msecs_to_jiffies(delay)); in iwl_mvm_tdls_ch_switch_work()
583 if (mvm->tdls_cs.peer.sta_id != IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_channel_switch()
603 mvm->tdls_cs.peer.skb = skb_copy(tmpl_skb, GFP_KERNEL); in iwl_mvm_tdls_channel_switch()
604 if (!mvm->tdls_cs.peer.skb) { in iwl_mvm_tdls_channel_switch()
610 mvm->tdls_cs.peer.sta_id = mvmsta->sta_id; in iwl_mvm_tdls_channel_switch()
611 mvm->tdls_cs.peer.chandef = *chandef; in iwl_mvm_tdls_channel_switch()
612 mvm->tdls_cs.peer.initiator = sta->tdls_initiator; in iwl_mvm_tdls_channel_switch()
613 mvm->tdls_cs.peer.op_class = oper_class; in iwl_mvm_tdls_channel_switch()
614 mvm->tdls_cs.peer.ch_sw_tm_ie = ch_sw_tm_ie; in iwl_mvm_tdls_channel_switch()
622 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_channel_switch()
643 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_cancel_channel_switch()
649 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_cancel_channel_switch()
660 if (mvm->tdls_cs.cur_sta_id == mvm->tdls_cs.peer.sta_id && in iwl_mvm_tdls_cancel_channel_switch()
661 mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE) in iwl_mvm_tdls_cancel_channel_switch()
664 mvm->tdls_cs.peer.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_tdls_cancel_channel_switch()
665 dev_kfree_skb(mvm->tdls_cs.peer.skb); in iwl_mvm_tdls_cancel_channel_switch()
666 mvm->tdls_cs.peer.skb = NULL; in iwl_mvm_tdls_cancel_channel_switch()
677 flush_delayed_work(&mvm->tdls_cs.dwork); in iwl_mvm_tdls_cancel_channel_switch()
706 mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_recv_channel_switch()
707 mvm->tdls_cs.cur_sta_id != IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_recv_channel_switch()
712 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_recv_channel_switch()
736 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_recv_channel_switch()