Lines Matching refs:vif

8 				       struct ieee80211_vif *vif,
11 if (vif->type == NL80211_IFTYPE_AP)
18 struct ieee80211_vif *vif,
22 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
29 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif));
31 memcpy(cmd->local_mld_addr, vif->addr, ETH_ALEN);
40 cpu_to_le32(!iwl_mvm_is_nic_ack_enabled(mvm, vif));
53 if (ieee80211_vif_is_mld(vif)) {
54 iwl_mvm_mld_set_he_support(mvm, vif, cmd);
60 for (link_id = 0; link_id < ARRAY_SIZE((vif)->link_conf); link_id++) {
61 link_conf = rcu_dereference(vif->link_conf[link_id]);
66 iwl_mvm_mld_set_he_support(mvm, vif, cmd);
95 struct ieee80211_vif *vif,
101 WARN_ON(vif->type != NL80211_IFTYPE_STATION);
104 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action);
112 if (vif->p2p)
114 iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin(mvm, vif);
116 if (vif->cfg.assoc && !force_assoc_off) {
117 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
136 cmd.client.assoc_id = cpu_to_le16(vif->cfg.aid);
137 if (ieee80211_vif_is_mld(vif)) {
139 u16_get_bits(vif->cfg.eml_cap,
146 cpu_to_le16(vif->cfg.eml_med_sync_delay);
149 if (vif->probe_req_reg && vif->cfg.assoc && vif->p2p)
152 if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax)
154 cpu_to_le16(iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy(mvm, vif));
160 struct ieee80211_vif *vif,
165 WARN_ON(vif->type != NL80211_IFTYPE_MONITOR);
167 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action);
179 struct ieee80211_vif *vif,
184 WARN_ON(vif->type != NL80211_IFTYPE_ADHOC);
186 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action);
196 struct ieee80211_vif *vif,
201 WARN_ON(vif->type != NL80211_IFTYPE_P2P_DEVICE);
203 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action);
206 iwl_mac_ctxt_p2p_dev_has_extended_disc(mvm, vif);
218 struct ieee80211_vif *vif,
221 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
224 WARN_ON(vif->type != NL80211_IFTYPE_AP);
227 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action);
238 struct ieee80211_vif *vif,
241 switch (vif->type) {
243 return iwl_mvm_mld_mac_ctxt_cmd_sta(mvm, vif, action,
246 return iwl_mvm_mld_mac_ctxt_cmd_ap_go(mvm, vif, action);
248 return iwl_mvm_mld_mac_ctxt_cmd_listener(mvm, vif, action);
250 return iwl_mvm_mld_mac_ctxt_cmd_p2p_device(mvm, vif, action);
252 return iwl_mvm_mld_mac_ctxt_cmd_ibss(mvm, vif, action);
260 int iwl_mvm_mld_mac_ctxt_add(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
262 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
265 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN))
269 vif->addr, ieee80211_vif_type_p2p(vif)))
272 ret = iwl_mvm_mld_mac_ctx_send(mvm, vif, FW_CTXT_ACTION_ADD,
278 iwl_mvm_set_last_nonqos_seq(mvm, vif);
285 struct ieee80211_vif *vif,
288 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
290 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN))
294 vif->addr, ieee80211_vif_type_p2p(vif)))
297 return iwl_mvm_mld_mac_ctx_send(mvm, vif, FW_CTXT_ACTION_MODIFY,
301 int iwl_mvm_mld_mac_ctxt_remove(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
303 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
310 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN))
314 vif->addr, ieee80211_vif_type_p2p(vif)))