Lines Matching refs:tdls_cs
240 if (mvm->tdls_cs.state == state) in iwl_mvm_tdls_update_cs_state()
244 iwl_mvm_tdls_cs_state_str(mvm->tdls_cs.state), in iwl_mvm_tdls_update_cs_state()
246 mvm->tdls_cs.state = state; in iwl_mvm_tdls_update_cs_state()
250 mvm->tdls_cs.peer.sent_timestamp = in iwl_mvm_tdls_update_cs_state()
254 mvm->tdls_cs.cur_sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_tdls_update_cs_state()
292 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_rx_tdls_notif()
307 if (mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE && in iwl_mvm_tdls_check_action()
308 mvm->tdls_cs.cur_sta_id != IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_check_action()
310 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_check_action()
316 switch (mvm->tdls_cs.state) { in iwl_mvm_tdls_check_action()
340 else if (timestamp <= mvm->tdls_cs.peer.sent_timestamp) in iwl_mvm_tdls_check_action()
375 type, mvm->tdls_cs.state, peer, same_peer, in iwl_mvm_tdls_check_action()
427 if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_config_channel_switch()
428 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
430 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
431 } else if (mvm->tdls_cs.state == IWL_MVM_TDLS_SW_ACTIVE && in iwl_mvm_tdls_config_channel_switch()
492 mvm->tdls_cs.cur_sta_id = mvmsta->sta_id; in iwl_mvm_tdls_config_channel_switch()
519 mvm = container_of(work, struct iwl_mvm, tdls_cs.dwork.work); in iwl_mvm_tdls_ch_switch_work()
526 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_STATION_COUNT) in iwl_mvm_tdls_ch_switch_work()
530 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_ch_switch_work()
541 mvm->tdls_cs.peer.initiator, in iwl_mvm_tdls_ch_switch_work()
542 mvm->tdls_cs.peer.op_class, in iwl_mvm_tdls_ch_switch_work()
543 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
545 mvm->tdls_cs.peer.skb, in iwl_mvm_tdls_ch_switch_work()
546 mvm->tdls_cs.peer.ch_sw_tm_ie); in iwl_mvm_tdls_ch_switch_work()
552 queue_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_ch_switch_work()
576 if (mvm->tdls_cs.peer.sta_id != IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_channel_switch()
596 mvm->tdls_cs.peer.skb = skb_copy(tmpl_skb, GFP_KERNEL); in iwl_mvm_tdls_channel_switch()
597 if (!mvm->tdls_cs.peer.skb) { in iwl_mvm_tdls_channel_switch()
603 mvm->tdls_cs.peer.sta_id = mvmsta->sta_id; in iwl_mvm_tdls_channel_switch()
604 mvm->tdls_cs.peer.chandef = *chandef; in iwl_mvm_tdls_channel_switch()
605 mvm->tdls_cs.peer.initiator = sta->tdls_initiator; in iwl_mvm_tdls_channel_switch()
606 mvm->tdls_cs.peer.op_class = oper_class; in iwl_mvm_tdls_channel_switch()
607 mvm->tdls_cs.peer.ch_sw_tm_ie = ch_sw_tm_ie; in iwl_mvm_tdls_channel_switch()
615 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_channel_switch()
636 if (mvm->tdls_cs.peer.sta_id == IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_cancel_channel_switch()
642 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_cancel_channel_switch()
653 if (mvm->tdls_cs.cur_sta_id == mvm->tdls_cs.peer.sta_id && in iwl_mvm_tdls_cancel_channel_switch()
654 mvm->tdls_cs.state != IWL_MVM_TDLS_SW_IDLE) in iwl_mvm_tdls_cancel_channel_switch()
657 mvm->tdls_cs.peer.sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_tdls_cancel_channel_switch()
658 dev_kfree_skb(mvm->tdls_cs.peer.skb); in iwl_mvm_tdls_cancel_channel_switch()
659 mvm->tdls_cs.peer.skb = NULL; in iwl_mvm_tdls_cancel_channel_switch()
670 flush_delayed_work(&mvm->tdls_cs.dwork); in iwl_mvm_tdls_cancel_channel_switch()
699 mvm->tdls_cs.state == IWL_MVM_TDLS_SW_REQ_SENT && in iwl_mvm_tdls_recv_channel_switch()
700 mvm->tdls_cs.cur_sta_id != IWL_MVM_STATION_COUNT) { in iwl_mvm_tdls_recv_channel_switch()
705 mvm->fw_id_to_mac_id[mvm->tdls_cs.cur_sta_id], in iwl_mvm_tdls_recv_channel_switch()
729 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_recv_channel_switch()