Lines Matching full:vif

47 	struct ieee80211_vif *vif;  member
55 struct ieee80211_vif *vif) in iwl_mvm_mac_tsf_id_iter() argument
58 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_tsf_id_iter()
62 if (vif == data->vif) in iwl_mvm_mac_tsf_id_iter()
81 switch (data->vif->type) { in iwl_mvm_mac_tsf_id_iter()
91 if (vif->type != NL80211_IFTYPE_AP || in iwl_mvm_mac_tsf_id_iter()
96 min_bi = min(data->vif->bss_conf.beacon_int, in iwl_mvm_mac_tsf_id_iter()
97 vif->bss_conf.beacon_int); in iwl_mvm_mac_tsf_id_iter()
102 if ((data->vif->bss_conf.beacon_int - in iwl_mvm_mac_tsf_id_iter()
103 vif->bss_conf.beacon_int) % min_bi == 0) { in iwl_mvm_mac_tsf_id_iter()
119 if ((vif->type != NL80211_IFTYPE_AP && in iwl_mvm_mac_tsf_id_iter()
120 vif->type != NL80211_IFTYPE_STATION) || in iwl_mvm_mac_tsf_id_iter()
125 min_bi = min(data->vif->bss_conf.beacon_int, in iwl_mvm_mac_tsf_id_iter()
126 vif->bss_conf.beacon_int); in iwl_mvm_mac_tsf_id_iter()
131 if ((data->vif->bss_conf.beacon_int - in iwl_mvm_mac_tsf_id_iter()
132 vif->bss_conf.beacon_int) % min_bi == 0) { in iwl_mvm_mac_tsf_id_iter()
161 struct ieee80211_vif *vif) in iwl_mvm_mac_iface_iterator() argument
164 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_iface_iterator()
167 if (vif == data->vif) { in iwl_mvm_mac_iface_iterator()
181 iwl_mvm_mac_tsf_id_iter(_data, mac, vif); in iwl_mvm_mac_iface_iterator()
185 struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_recalc_tsf_id() argument
187 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_recalc_tsf_id()
190 .vif = vif, in iwl_mvm_mac_ctxt_recalc_tsf_id()
207 int iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_init() argument
209 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_init()
212 .vif = vif, in iwl_mvm_mac_ctxt_init()
239 /* MAC ID 0 should be used only for the managed/IBSS vif with non-MLO in iwl_mvm_mac_ctxt_init()
243 switch (vif->type) { in iwl_mvm_mac_ctxt_init()
247 if (!vif->p2p) in iwl_mvm_mac_ctxt_init()
262 * the vif being added already. in iwl_mvm_mac_ctxt_init()
306 if (vif->type == NL80211_IFTYPE_P2P_DEVICE) in iwl_mvm_mac_ctxt_init()
310 if (vif->type == NL80211_IFTYPE_AP || in iwl_mvm_mac_ctxt_init()
311 vif->type == NL80211_IFTYPE_ADHOC) { in iwl_mvm_mac_ctxt_init()
330 struct ieee80211_vif *vif, in iwl_mvm_ack_rates() argument
335 unsigned long basic = vif->bss_conf.basic_rates; in iwl_mvm_ack_rates()
415 void iwl_mvm_set_fw_basic_rates(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_set_fw_basic_rates() argument
427 iwl_mvm_ack_rates(mvm, vif, band, &cck_ack_rates, &ofdm_ack_rates); in iwl_mvm_set_fw_basic_rates()
434 struct ieee80211_vif *vif, in iwl_mvm_set_fw_protection_flags() argument
479 void iwl_mvm_set_fw_qos_params(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_set_fw_qos_params() argument
483 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_set_fw_qos_params()
512 int iwl_mvm_get_mac_type(struct ieee80211_vif *vif) in iwl_mvm_get_mac_type() argument
516 switch (vif->type) { in iwl_mvm_get_mac_type()
518 if (vif->p2p) in iwl_mvm_get_mac_type()
542 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_common() argument
547 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_common()
548 const u8 *bssid = bssid_override ?: vif->bss_conf.bssid; in iwl_mvm_mac_ctxt_cmd_common()
554 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mac_ctxt_cmd_common()
558 memcpy(cmd->node_addr, vif->addr, ETH_ALEN); in iwl_mvm_mac_ctxt_cmd_common()
565 iwl_mvm_set_fw_basic_rates(mvm, vif, &mvmvif->deflink, &cmd->cck_rates, in iwl_mvm_mac_ctxt_cmd_common()
569 cpu_to_le32(vif->bss_conf.use_short_preamble ? in iwl_mvm_mac_ctxt_cmd_common()
572 cpu_to_le32(vif->bss_conf.use_short_slot ? in iwl_mvm_mac_ctxt_cmd_common()
577 iwl_mvm_set_fw_qos_params(mvm, vif, &vif->bss_conf, cmd->ac, in iwl_mvm_mac_ctxt_cmd_common()
582 iwl_mvm_set_fw_protection_flags(mvm, vif, &vif->bss_conf, in iwl_mvm_mac_ctxt_cmd_common()
598 void iwl_mvm_set_fw_dtim_tbtt(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_set_fw_dtim_tbtt() argument
639 struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin() argument
642 &vif->bss_conf.p2p_noa_attr; in iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin()
649 struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy() argument
653 if (vif->bss_conf.twt_requester && IWL_MVM_USE_TWT) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy()
655 if (vif->bss_conf.twt_protected) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy()
657 if (vif->bss_conf.twt_broadcast) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy()
664 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_sta() argument
671 WARN_ON(vif->type != NL80211_IFTYPE_STATION); in iwl_mvm_mac_ctxt_cmd_sta()
674 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, bssid_override, action); in iwl_mvm_mac_ctxt_cmd_sta()
682 if (vif->p2p) { in iwl_mvm_mac_ctxt_cmd_sta()
684 iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin(mvm, vif); in iwl_mvm_mac_ctxt_cmd_sta()
692 if (vif->cfg.assoc && vif->bss_conf.dtim_period && in iwl_mvm_mac_ctxt_cmd_sta()
694 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_sta()
696 iwl_mvm_set_fw_dtim_tbtt(mvm, vif, &vif->bss_conf, in iwl_mvm_mac_ctxt_cmd_sta()
717 ctxt_sta->bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_sta()
718 ctxt_sta->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_sta()
719 vif->bss_conf.dtim_period); in iwl_mvm_mac_ctxt_cmd_sta()
722 ctxt_sta->assoc_id = cpu_to_le32(vif->cfg.aid); in iwl_mvm_mac_ctxt_cmd_sta()
724 if (vif->probe_req_reg && vif->cfg.assoc && vif->p2p) in iwl_mvm_mac_ctxt_cmd_sta()
727 if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax) { in iwl_mvm_mac_ctxt_cmd_sta()
730 cpu_to_le32(iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy(mvm, vif)); in iwl_mvm_mac_ctxt_cmd_sta()
738 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_listener() argument
745 WARN_ON(vif->type != NL80211_IFTYPE_MONITOR); in iwl_mvm_mac_ctxt_cmd_listener()
747 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_listener()
767 vif->type, IWL_STA_GENERAL_PURPOSE); in iwl_mvm_mac_ctxt_cmd_listener()
775 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_ibss() argument
778 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_ibss()
781 WARN_ON(vif->type != NL80211_IFTYPE_ADHOC); in iwl_mvm_mac_ctxt_cmd_ibss()
783 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_ibss()
790 cmd.ibss.bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_ibss()
802 static void iwl_mvm_go_iterator(void *_data, u8 *mac, struct ieee80211_vif *vif) in iwl_mvm_go_iterator() argument
805 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_go_iterator()
807 if (vif->type == NL80211_IFTYPE_AP && vif->p2p && in iwl_mvm_go_iterator()
813 struct ieee80211_vif *vif) in iwl_mac_ctxt_p2p_dev_has_extended_disc() argument
833 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_p2p_device() argument
838 WARN_ON(vif->type != NL80211_IFTYPE_P2P_DEVICE); in iwl_mvm_mac_ctxt_cmd_p2p_device()
840 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_p2p_device()
843 iwl_mac_ctxt_p2p_dev_has_extended_disc(mvm, vif); in iwl_mvm_mac_ctxt_cmd_p2p_device()
895 struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_get_lowest_rate() argument
897 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_get_lowest_rate()
899 unsigned long basic = vif->bss_conf.basic_rates; in iwl_mvm_mac_ctxt_get_lowest_rate()
907 if (link_id == IEEE80211_LINK_UNSPECIFIED && ieee80211_vif_is_mld(vif)) { in iwl_mvm_mac_ctxt_get_lowest_rate()
921 link_conf = rcu_dereference(vif->link_conf[link_id]); in iwl_mvm_mac_ctxt_get_lowest_rate()
942 if (band == NL80211_BAND_2GHZ && !vif->p2p && in iwl_mvm_mac_ctxt_get_lowest_rate()
943 vif->type != NL80211_IFTYPE_P2P_DEVICE && in iwl_mvm_mac_ctxt_get_lowest_rate()
974 struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_get_beacon_rate() argument
978 u32 legacy = vif->bss_conf.beacon_tx_rate.control[info->band].legacy; in iwl_mvm_mac_ctxt_get_beacon_rate()
987 return iwl_mvm_mac_ctxt_get_lowest_rate(mvm, info, vif); in iwl_mvm_mac_ctxt_get_beacon_rate()
991 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_set_tx() argument
995 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_set_tx()
1021 rate = iwl_mvm_mac_ctxt_get_beacon_rate(mvm, info, vif); in iwl_mvm_mac_ctxt_set_tx()
1050 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_send_beacon_v6() argument
1053 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v6()
1056 iwl_mvm_mac_ctxt_set_tx(mvm, vif, beacon, &beacon_cmd.tx); in iwl_mvm_mac_ctxt_send_beacon_v6()
1060 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mac_ctxt_send_beacon_v6()
1070 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_send_beacon_v7() argument
1073 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v7()
1076 iwl_mvm_mac_ctxt_set_tx(mvm, vif, beacon, &beacon_cmd.tx); in iwl_mvm_mac_ctxt_send_beacon_v7()
1080 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mac_ctxt_send_beacon_v7()
1112 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_send_beacon_v9() argument
1116 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v9()
1119 u8 rate = iwl_mvm_mac_ctxt_get_beacon_rate(mvm, info, vif); in iwl_mvm_mac_ctxt_send_beacon_v9()
1136 cpu_to_le32(~crc32_le(~0, vif->cfg.ssid, in iwl_mvm_mac_ctxt_send_beacon_v9()
1137 vif->cfg.ssid_len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1153 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mac_ctxt_send_beacon_v9()
1167 if (vif->type == NL80211_IFTYPE_AP && in iwl_mvm_mac_ctxt_send_beacon_v9()
1179 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_send_beacon() argument
1191 return iwl_mvm_mac_ctxt_send_beacon_v6(mvm, vif, beacon); in iwl_mvm_mac_ctxt_send_beacon()
1195 return iwl_mvm_mac_ctxt_send_beacon_v9(mvm, vif, beacon, in iwl_mvm_mac_ctxt_send_beacon()
1198 return iwl_mvm_mac_ctxt_send_beacon_v7(mvm, vif, beacon); in iwl_mvm_mac_ctxt_send_beacon()
1203 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_beacon_changed() argument
1209 WARN_ON(vif->type != NL80211_IFTYPE_AP && in iwl_mvm_mac_ctxt_beacon_changed()
1210 vif->type != NL80211_IFTYPE_ADHOC); in iwl_mvm_mac_ctxt_beacon_changed()
1212 beacon = ieee80211_beacon_get_template(mvm->hw, vif, NULL, in iwl_mvm_mac_ctxt_beacon_changed()
1224 ret = iwl_mvm_mac_ctxt_send_beacon(mvm, vif, beacon, link_conf); in iwl_mvm_mac_ctxt_beacon_changed()
1231 struct ieee80211_vif *vif; member
1238 struct ieee80211_vif *vif) in iwl_mvm_mac_ap_iterator() argument
1242 if (vif->type != NL80211_IFTYPE_STATION || !vif->cfg.assoc) in iwl_mvm_mac_ap_iterator()
1246 if (vif->p2p && data->beacon_device_ts) in iwl_mvm_mac_ap_iterator()
1249 data->beacon_device_ts = vif->bss_conf.sync_device_ts; in iwl_mvm_mac_ap_iterator()
1250 data->beacon_int = vif->bss_conf.beacon_int; in iwl_mvm_mac_ap_iterator()
1281 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_fill_ap() argument
1286 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1289 .vif = vif, in iwl_mvm_mac_ctxt_cmd_fill_ap()
1301 ctxt_ap->bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1302 ctxt_ap->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_fill_ap()
1303 vif->bss_conf.dtim_period); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1342 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_ap() argument
1347 WARN_ON(vif->type != NL80211_IFTYPE_AP || vif->p2p); in iwl_mvm_mac_ctxt_cmd_ap()
1350 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_ap()
1353 iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.ap, in iwl_mvm_mac_ctxt_cmd_ap()
1360 struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_cmd_go() argument
1364 struct ieee80211_p2p_noa_attr *noa = &vif->bss_conf.p2p_noa_attr; in iwl_mvm_mac_ctxt_cmd_go()
1366 WARN_ON(vif->type != NL80211_IFTYPE_AP || !vif->p2p); in iwl_mvm_mac_ctxt_cmd_go()
1369 iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action); in iwl_mvm_mac_ctxt_cmd_go()
1372 iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.go.ap, in iwl_mvm_mac_ctxt_cmd_go()
1384 static int iwl_mvm_mac_ctx_send(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_mac_ctx_send() argument
1388 switch (vif->type) { in iwl_mvm_mac_ctx_send()
1390 return iwl_mvm_mac_ctxt_cmd_sta(mvm, vif, action, in iwl_mvm_mac_ctx_send()
1394 if (!vif->p2p) in iwl_mvm_mac_ctx_send()
1395 return iwl_mvm_mac_ctxt_cmd_ap(mvm, vif, action); in iwl_mvm_mac_ctx_send()
1397 return iwl_mvm_mac_ctxt_cmd_go(mvm, vif, action); in iwl_mvm_mac_ctx_send()
1399 return iwl_mvm_mac_ctxt_cmd_listener(mvm, vif, action); in iwl_mvm_mac_ctx_send()
1401 return iwl_mvm_mac_ctxt_cmd_p2p_device(mvm, vif, action); in iwl_mvm_mac_ctx_send()
1403 return iwl_mvm_mac_ctxt_cmd_ibss(mvm, vif, action); in iwl_mvm_mac_ctx_send()
1411 int iwl_mvm_mac_ctxt_add(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_add() argument
1413 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_add()
1417 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mac_ctxt_add()
1420 ret = iwl_mvm_mac_ctx_send(mvm, vif, FW_CTXT_ACTION_ADD, in iwl_mvm_mac_ctxt_add()
1426 iwl_mvm_set_last_nonqos_seq(mvm, vif); in iwl_mvm_mac_ctxt_add()
1432 int iwl_mvm_mac_ctxt_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_mac_ctxt_changed() argument
1435 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_changed()
1438 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mac_ctxt_changed()
1441 return iwl_mvm_mac_ctx_send(mvm, vif, FW_CTXT_ACTION_MODIFY, in iwl_mvm_mac_ctxt_changed()
1445 int iwl_mvm_mac_ctxt_remove(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_remove() argument
1447 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_remove()
1452 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mac_ctxt_remove()
1467 if (vif->type == NL80211_IFTYPE_MONITOR) { in iwl_mvm_mac_ctxt_remove()
1597 struct ieee80211_vif *vif; in iwl_mvm_handle_missed_beacons_notif() local
1619 vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, false); in iwl_mvm_handle_missed_beacons_notif()
1627 vif = bss_conf->vif; in iwl_mvm_handle_missed_beacons_notif()
1638 if (!vif) in iwl_mvm_handle_missed_beacons_notif()
1641 mac_type = iwl_mvm_get_mac_type(vif); in iwl_mvm_handle_missed_beacons_notif()
1658 iwl_mvm_connection_loss(mvm, vif, "missed beacons"); in iwl_mvm_handle_missed_beacons_notif()
1666 } else if (link_id >= 0 && hweight16(vif->active_links) > 1) { in iwl_mvm_handle_missed_beacons_notif()
1673 vif->active_links)) in iwl_mvm_handle_missed_beacons_notif()
1684 iwl_mvm_exit_esr(mvm, vif, in iwl_mvm_handle_missed_beacons_notif()
1686 iwl_mvm_get_primary_link(vif)); in iwl_mvm_handle_missed_beacons_notif()
1689 ieee80211_beacon_loss(vif); in iwl_mvm_handle_missed_beacons_notif()
1691 ieee80211_cqm_beacon_loss_notify(vif, GFP_ATOMIC); in iwl_mvm_handle_missed_beacons_notif()
1697 trigger = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_handle_missed_beacons_notif()
1807 struct ieee80211_vif *vif; in iwl_mvm_probe_resp_data_notif() local
1813 vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, false); in iwl_mvm_probe_resp_data_notif()
1814 if (!vif) in iwl_mvm_probe_resp_data_notif()
1817 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_probe_resp_data_notif()
1846 ieee80211_beacon_set_cntdwn(vif, notif->csa_counter); in iwl_mvm_probe_resp_data_notif()
1853 struct ieee80211_vif *csa_vif, *vif; in iwl_mvm_channel_switch_start_notif() local
1872 vif = iwl_mvm_rcu_dereference_vif_id(mvm, mac_id, true); in iwl_mvm_channel_switch_start_notif()
1873 if (!vif) in iwl_mvm_channel_switch_start_notif()
1877 csa_active = vif->bss_conf.csa_active; in iwl_mvm_channel_switch_start_notif()
1889 vif = bss_conf->vif; in iwl_mvm_channel_switch_start_notif()
1893 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_channel_switch_start_notif()
1897 switch (vif->type) { in iwl_mvm_channel_switch_start_notif()
1901 csa_vif != vif)) in iwl_mvm_channel_switch_start_notif()
1907 "channel switch noa notification on unexpected vif (csa_vif=%d, notif=%d)", in iwl_mvm_channel_switch_start_notif()
1932 iwl_mvm_cancel_channel_switch(mvm, vif, id); in iwl_mvm_channel_switch_start_notif()
1936 iwl_mvm_csa_client_absent(mvm, vif); in iwl_mvm_channel_switch_start_notif()
1938 ieee80211_chswitch_done(vif, true, mac_link_id); in iwl_mvm_channel_switch_start_notif()
1954 struct ieee80211_vif *vif; in iwl_mvm_channel_switch_error_notif() local
1959 vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, true); in iwl_mvm_channel_switch_error_notif()
1960 if (!vif) { in iwl_mvm_channel_switch_error_notif()
1970 ieee80211_channel_switch_disconnect(vif, true); in iwl_mvm_channel_switch_error_notif()
1979 struct ieee80211_vif *vif; in iwl_mvm_rx_missed_vap_notif() local
1990 vif = iwl_mvm_rcu_dereference_vif_id(mvm, id, true); in iwl_mvm_rx_missed_vap_notif()
1991 if (vif) in iwl_mvm_rx_missed_vap_notif()
1992 iwl_mvm_connection_loss(mvm, vif, "missed vap beacon"); in iwl_mvm_rx_missed_vap_notif()