Lines Matching refs:tdls_cs
247 if (mvm->tdls_cs.state == state) in iwl_mvm_tdls_update_cs_state()
251 iwl_mvm_tdls_cs_state_str(mvm->tdls_cs.state), in iwl_mvm_tdls_update_cs_state()
253 mvm->tdls_cs.state = state; in iwl_mvm_tdls_update_cs_state()
257 mvm->tdls_cs.peer.sent_timestamp = in iwl_mvm_tdls_update_cs_state()
261 mvm->tdls_cs.cur_sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_tdls_update_cs_state()
300 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_rx_tdls_notif()
318 if (mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE && in iwl_mvm_tdls_check_action()
319 mvm->tdls_cs.cur_sta_id != IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_check_action()
321 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_check_action()
327 switch (mvm->tdls_cs.state) { in iwl_mvm_tdls_check_action()
351 else if (timestamp <= mvm->tdls_cs.peer.sent_timestamp) in iwl_mvm_tdls_check_action()
386 type, mvm->tdls_cs.state, peer, same_peer, in iwl_mvm_tdls_check_action()
438 if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_config_channel_switch()
439 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
441 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
442 } else if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_ACTIVE && in iwl_mvm_tdls_config_channel_switch()
497 mvm->tdls_cs.cur_sta_id = mvmsta->sta_id; in iwl_mvm_tdls_config_channel_switch()
524 mvm = container_of(work, struct iwl_mvm, tdls_cs.dwork.work); in iwl_mvm_tdls_ch_switch_work()
531 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_STATION_COUNT) in iwl_mvm_tdls_ch_switch_work()
535 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_ch_switch_work()
546 mvm->tdls_cs.peer.initiator, in iwl_mvm_tdls_ch_switch_work()
547 mvm->tdls_cs.peer.op_class, in iwl_mvm_tdls_ch_switch_work()
548 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
550 mvm->tdls_cs.peer.skb, in iwl_mvm_tdls_ch_switch_work()
551 mvm->tdls_cs.peer.ch_sw_tm_ie); in iwl_mvm_tdls_ch_switch_work()
557 queue_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_ch_switch_work()
581 if (mvm->tdls_cs.peer.sta_id != IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_channel_switch()
601 mvm->tdls_cs.peer.skb = skb_copy(tmpl_skb, GFP_KERNEL); in iwl_mvm_tdls_channel_switch()
602 if (!mvm->tdls_cs.peer.skb) { in iwl_mvm_tdls_channel_switch()
608 mvm->tdls_cs.peer.sta_id = mvmsta->sta_id; in iwl_mvm_tdls_channel_switch()
609 mvm->tdls_cs.peer.chandef = *chandef; in iwl_mvm_tdls_channel_switch()
610 mvm->tdls_cs.peer.initiator = sta->tdls_initiator; in iwl_mvm_tdls_channel_switch()
611 mvm->tdls_cs.peer.op_class = oper_class; in iwl_mvm_tdls_channel_switch()
612 mvm->tdls_cs.peer.ch_sw_tm_ie = ch_sw_tm_ie; in iwl_mvm_tdls_channel_switch()
620 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_channel_switch()
641 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_cancel_channel_switch()
647 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_cancel_channel_switch()
658 if (mvm->tdls_cs.cur_sta_id == mvm->tdls_cs.peer.sta_id && in iwl_mvm_tdls_cancel_channel_switch()
659 mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE) in iwl_mvm_tdls_cancel_channel_switch()
662 mvm->tdls_cs.peer.sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_tdls_cancel_channel_switch()
663 dev_kfree_skb(mvm->tdls_cs.peer.skb); in iwl_mvm_tdls_cancel_channel_switch()
664 mvm->tdls_cs.peer.skb = NULL; in iwl_mvm_tdls_cancel_channel_switch()
675 flush_delayed_work(&mvm->tdls_cs.dwork); in iwl_mvm_tdls_cancel_channel_switch()
704 mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_recv_channel_switch()
705 mvm->tdls_cs.cur_sta_id != IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_recv_channel_switch()
710 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_recv_channel_switch()
734 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_recv_channel_switch()