Lines Matching refs:tdls_cs
186 if (mvm->tdls_cs.state == state) in iwl_mvm_tdls_update_cs_state()
190 iwl_mvm_tdls_cs_state_str(mvm->tdls_cs.state), in iwl_mvm_tdls_update_cs_state()
192 mvm->tdls_cs.state = state; 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()
199 mvm->tdls_cs.cur_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_tdls_update_cs_state()
237 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_rx_tdls_notif()
252 if (mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE && in iwl_mvm_tdls_check_action()
253 mvm->tdls_cs.cur_sta_id != IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_check_action()
255 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_check_action()
261 switch (mvm->tdls_cs.state) { in iwl_mvm_tdls_check_action()
285 else if (timestamp <= mvm->tdls_cs.peer.sent_timestamp) in iwl_mvm_tdls_check_action()
320 type, mvm->tdls_cs.state, peer, same_peer, in iwl_mvm_tdls_check_action()
375 if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && 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()
379 } else if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_ACTIVE && in iwl_mvm_tdls_config_channel_switch()
434 mvm->tdls_cs.cur_sta_id = mvmsta->deflink.sta_id; in iwl_mvm_tdls_config_channel_switch()
461 mvm = container_of(work, struct iwl_mvm, tdls_cs.dwork.work); in iwl_mvm_tdls_ch_switch_work()
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()
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()
494 schedule_delayed_work(&mvm->tdls_cs.dwork, msecs_to_jiffies(delay)); in iwl_mvm_tdls_ch_switch_work()
515 if (mvm->tdls_cs.peer.sta_id != IWL_MVM_INVALID_STA) { 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()
551 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_channel_switch()
569 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_INVALID_STA) { 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()
586 if (mvm->tdls_cs.cur_sta_id == mvm->tdls_cs.peer.sta_id && in iwl_mvm_tdls_cancel_channel_switch()
587 mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE) 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()
603 flush_delayed_work(&mvm->tdls_cs.dwork); in iwl_mvm_tdls_cancel_channel_switch()
632 mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_recv_channel_switch()
633 mvm->tdls_cs.cur_sta_id != IWL_MVM_INVALID_STA) { in iwl_mvm_tdls_recv_channel_switch()
638 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_recv_channel_switch()
662 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_recv_channel_switch()