Lines Matching refs:vif
8 struct ieee80211_vif *vif, in iwl_mvm_mld_set_he_support() argument
11 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mld_set_he_support()
18 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_common() argument
22 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_cmd_common()
29 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mld_mac_ctxt_cmd_common()
31 memcpy(cmd->local_mld_addr, vif->addr, ETH_ALEN); in iwl_mvm_mld_mac_ctxt_cmd_common()
40 cpu_to_le32(!iwl_mvm_is_nic_ack_enabled(mvm, vif)); in iwl_mvm_mld_mac_ctxt_cmd_common()
53 if (ieee80211_vif_is_mld(vif)) { in iwl_mvm_mld_mac_ctxt_cmd_common()
54 iwl_mvm_mld_set_he_support(mvm, vif, cmd); in iwl_mvm_mld_mac_ctxt_cmd_common()
60 for (link_id = 0; link_id < ARRAY_SIZE((vif)->link_conf); link_id++) { in iwl_mvm_mld_mac_ctxt_cmd_common()
61 link_conf = rcu_dereference(vif->link_conf[link_id]); in iwl_mvm_mld_mac_ctxt_cmd_common()
66 iwl_mvm_mld_set_he_support(mvm, vif, cmd); in iwl_mvm_mld_mac_ctxt_cmd_common()
95 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_sta() argument
101 WARN_ON(vif->type != NL80211_IFTYPE_STATION); in iwl_mvm_mld_mac_ctxt_cmd_sta()
104 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action); in iwl_mvm_mld_mac_ctxt_cmd_sta()
112 if (vif->p2p) in iwl_mvm_mld_mac_ctxt_cmd_sta()
114 iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin(mvm, vif); in iwl_mvm_mld_mac_ctxt_cmd_sta()
116 if (vif->cfg.assoc && !force_assoc_off) { in iwl_mvm_mld_mac_ctxt_cmd_sta()
117 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_cmd_sta()
136 cmd.client.assoc_id = cpu_to_le16(vif->cfg.aid); in iwl_mvm_mld_mac_ctxt_cmd_sta()
137 if (ieee80211_vif_is_mld(vif)) { in iwl_mvm_mld_mac_ctxt_cmd_sta()
139 u16_get_bits(vif->cfg.eml_cap, in iwl_mvm_mld_mac_ctxt_cmd_sta()
146 cpu_to_le16(vif->cfg.eml_med_sync_delay); in iwl_mvm_mld_mac_ctxt_cmd_sta()
149 if (vif->probe_req_reg && vif->cfg.assoc && vif->p2p) in iwl_mvm_mld_mac_ctxt_cmd_sta()
152 if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax) in iwl_mvm_mld_mac_ctxt_cmd_sta()
154 cpu_to_le16(iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy(mvm, vif)); in iwl_mvm_mld_mac_ctxt_cmd_sta()
160 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_listener() argument
165 WARN_ON(vif->type != NL80211_IFTYPE_MONITOR); in iwl_mvm_mld_mac_ctxt_cmd_listener()
167 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action); in iwl_mvm_mld_mac_ctxt_cmd_listener()
179 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_ibss() argument
184 WARN_ON(vif->type != NL80211_IFTYPE_ADHOC); in iwl_mvm_mld_mac_ctxt_cmd_ibss()
186 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action); in iwl_mvm_mld_mac_ctxt_cmd_ibss()
196 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_p2p_device() argument
201 WARN_ON(vif->type != NL80211_IFTYPE_P2P_DEVICE); in iwl_mvm_mld_mac_ctxt_cmd_p2p_device()
203 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action); in iwl_mvm_mld_mac_ctxt_cmd_p2p_device()
206 iwl_mac_ctxt_p2p_dev_has_extended_disc(mvm, vif); in iwl_mvm_mld_mac_ctxt_cmd_p2p_device()
215 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_cmd_ap_go() argument
218 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_cmd_ap_go()
221 WARN_ON(vif->type != NL80211_IFTYPE_AP); in iwl_mvm_mld_mac_ctxt_cmd_ap_go()
224 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action); in iwl_mvm_mld_mac_ctxt_cmd_ap_go()
235 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctx_send() argument
238 switch (vif->type) { in iwl_mvm_mld_mac_ctx_send()
240 return iwl_mvm_mld_mac_ctxt_cmd_sta(mvm, vif, action, in iwl_mvm_mld_mac_ctx_send()
243 return iwl_mvm_mld_mac_ctxt_cmd_ap_go(mvm, vif, action); in iwl_mvm_mld_mac_ctx_send()
245 return iwl_mvm_mld_mac_ctxt_cmd_listener(mvm, vif, action); in iwl_mvm_mld_mac_ctx_send()
247 return iwl_mvm_mld_mac_ctxt_cmd_p2p_device(mvm, vif, action); in iwl_mvm_mld_mac_ctx_send()
249 return iwl_mvm_mld_mac_ctxt_cmd_ibss(mvm, vif, action); in iwl_mvm_mld_mac_ctx_send()
257 int iwl_mvm_mld_mac_ctxt_add(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mld_mac_ctxt_add() argument
259 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_add()
262 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN)) in iwl_mvm_mld_mac_ctxt_add()
266 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mld_mac_ctxt_add()
269 ret = iwl_mvm_mld_mac_ctx_send(mvm, vif, FW_CTXT_ACTION_ADD, in iwl_mvm_mld_mac_ctxt_add()
275 iwl_mvm_set_last_nonqos_seq(mvm, vif); in iwl_mvm_mld_mac_ctxt_add()
282 struct ieee80211_vif *vif, in iwl_mvm_mld_mac_ctxt_changed() argument
285 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_changed()
287 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN)) in iwl_mvm_mld_mac_ctxt_changed()
291 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mld_mac_ctxt_changed()
294 return iwl_mvm_mld_mac_ctx_send(mvm, vif, FW_CTXT_ACTION_MODIFY, in iwl_mvm_mld_mac_ctxt_changed()
298 int iwl_mvm_mld_mac_ctxt_remove(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mld_mac_ctxt_remove() argument
300 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mld_mac_ctxt_remove()
307 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN)) in iwl_mvm_mld_mac_ctxt_remove()
311 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mld_mac_ctxt_remove()