Lines Matching refs:vif

195 				  struct ieee80211_vif *vif)
197 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
201 if (vif->type != NL80211_IFTYPE_P2P_DEVICE &&
206 if (!data->current_vif || vif == data->current_vif)
211 if (vif->type == NL80211_IFTYPE_AP && vif->p2p &&
219 struct ieee80211_vif *vif,
224 .current_vif = vif,
234 if (vif && ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_AP)
248 (!vif || vif->type != NL80211_IFTYPE_P2P_DEVICE))
255 if (vif && vif->type == NL80211_IFTYPE_STATION &&
268 struct ieee80211_vif *vif)
276 return _iwl_mvm_get_scan_type(mvm, vif, load, low_latency);
281 struct ieee80211_vif *vif,
290 return _iwl_mvm_get_scan_type(mvm, vif, load, low_latency);
751 iwl_mvm_build_scan_probe(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
770 memcpy(frame->sa, vif->addr, ETH_ALEN);
846 struct ieee80211_vif *vif)
867 vif->type != NL80211_IFTYPE_P2P_DEVICE &&
869 ieee80211_vif_type_p2p(vif) != NL80211_IFTYPE_AP);
886 struct ieee80211_vif *vif)
918 vif->type != NL80211_IFTYPE_P2P_DEVICE &&
938 static int iwl_mvm_scan_lmac(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
961 vif));
992 if (iwl_mvm_scan_use_ebs(mvm, vif)) {
1954 struct ieee80211_vif *vif)
1960 if (iwl_mvm_scan_use_ebs(mvm, vif))
1990 struct ieee80211_vif *vif)
2009 if (vif->type != NL80211_IFTYPE_STATION) {
2020 if ((vif->cfg.assoc ||
2027 vif->cfg.assoc ? "associated" :
2079 struct ieee80211_vif *vif,
2137 struct ieee80211_vif *vif, int type,
2160 ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_AP &&
2170 struct ieee80211_vif *vif)
2220 vif->type != NL80211_IFTYPE_P2P_DEVICE &&
2279 static int iwl_mvm_scan_umac(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2296 struct iwl_mvm_vif *scan_vif = iwl_mvm_vif_from_mac80211(vif);
2303 gen_flags = iwl_mvm_scan_umac_flags(mvm, params, vif);
2322 if (iwl_mvm_scan_use_ebs(mvm, vif)) {
2364 struct ieee80211_vif *vif,
2369 struct iwl_mvm_vif *scan_vif = iwl_mvm_vif_from_mac80211(vif);
2419 struct ieee80211_vif *vif,
2423 cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif);
2430 vif->type);
2436 struct ieee80211_vif *vif,
2441 cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif);
2449 vif->type, version);
2484 static int iwl_mvm_scan_umac_v12(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2496 gen_flags = iwl_mvm_scan_umac_flags_v2(mvm, params, vif, type);
2497 iwl_mvm_scan_umac_fill_general_p_v12(mvm, params, vif,
2508 iwl_mvm_scan_umac_fill_ch_p_v4(mvm, params, vif,
2515 struct ieee80211_vif *vif,
2531 gen_flags = iwl_mvm_scan_umac_flags_v2(mvm, params, vif, type);
2534 gen_flags2 = iwl_mvm_scan_umac_flags2(mvm, params, vif, type,
2539 iwl_mvm_scan_umac_fill_general_p_v12(mvm, params, vif,
2553 iwl_mvm_scan_umac_fill_ch_p_v7(mvm, params, vif,
2562 cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif);
2570 pb, cp, vif->type,
2582 static int iwl_mvm_scan_umac_v14(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2586 return iwl_mvm_scan_umac_v14_and_above(mvm, vif, params, type, uid, 14);
2589 static int iwl_mvm_scan_umac_v15(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2593 return iwl_mvm_scan_umac_v14_and_above(mvm, vif, params, type, uid, 15);
2596 static int iwl_mvm_scan_umac_v16(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2600 return iwl_mvm_scan_umac_v14_and_above(mvm, vif, params, type, uid, 16);
2603 static int iwl_mvm_scan_umac_v17(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2607 return iwl_mvm_scan_umac_v14_and_above(mvm, vif, params, type, uid, 17);
2698 struct ieee80211_vif *vif)
2702 iwl_mvm_get_scan_type_band(mvm, vif,
2705 iwl_mvm_get_scan_type_band(mvm, vif,
2708 params->type = iwl_mvm_get_scan_type(mvm, vif);
2714 int (*handler)(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
2816 struct ieee80211_vif *vif,
2832 return iwl_mvm_scan_lmac(mvm, vif, params);
2851 err = ver_handler->handler(mvm, vif, params, type, uid);
2855 err = iwl_mvm_scan_umac(mvm, vif, params, type, uid);
2869 struct ieee80211_vif *vif)
2872 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
2874 /* exclude the given vif */
2875 if (vif == data->current_vif)
2878 if (vif->type == NL80211_IFTYPE_AP && vif->p2p) {
2898 struct ieee80211_vif *vif,
2903 .current_vif = vif,
2920 struct ieee80211_vif *vif,
2925 return _iwl_mvm_get_respect_p2p_go(mvm, vif, low_latency, band);
2929 struct ieee80211_vif *vif)
2933 return _iwl_mvm_get_respect_p2p_go(mvm, vif, low_latency,
2939 struct ieee80211_vif *vif)
2943 iwl_mvm_get_respect_p2p_go_band(mvm, vif,
2946 iwl_mvm_get_respect_p2p_go_band(mvm, vif,
2949 params->respect_p2p_go = iwl_mvm_get_respect_p2p_go(mvm, vif);
2954 struct ieee80211_vif *vif,
3006 iwl_mvm_fill_scan_type(mvm, &params, vif);
3007 iwl_mvm_fill_respect_p2p_go(mvm, &params, vif);
3014 if (vif->active_links)
3015 params.tsf_report_link_id = __ffs(vif->active_links);
3020 iwl_mvm_build_scan_probe(mvm, vif, ies, &params);
3022 iwl_mvm_scan_6ghz_passive_scan(mvm, &params, vif);
3024 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, type);
3049 mvm->scan_vif = iwl_mvm_vif_from_mac80211(vif);
3060 int iwl_mvm_reg_scan_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
3064 return _iwl_mvm_single_scan_start(mvm, vif, req, ies,
3069 struct ieee80211_vif *vif,
3118 iwl_mvm_fill_scan_type(mvm, &params, vif);
3119 iwl_mvm_fill_respect_p2p_go(mvm, &params, vif);
3138 iwl_mvm_build_scan_probe(mvm, vif, ies, &params);
3174 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, type);
3544 struct ieee80211_vif *vif,
3558 if (!vif->cfg.assoc || !ieee80211_vif_is_mld(vif))
3578 req->wdev = ieee80211_vif_to_wdev(vif);
3583 ret = _iwl_mvm_single_scan_start(mvm, vif, req, &ies,
3591 int iwl_mvm_int_mlo_scan(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
3594 unsigned long usable_links = ieee80211_vif_usable_links(vif);
3609 rcu_dereference(vif->link_conf[link_id]);
3622 return iwl_mvm_int_mlo_scan_start(mvm, vif, channels, n_channels);