Lines Matching +full:pm +full:- +full:api
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2022 - 2024 Intel Corporation
11 if (vif->type == NL80211_IFTYPE_AP)
12 cmd->he_ap_support = cpu_to_le16(1);
14 cmd->he_support = cpu_to_le16(1);
26 cmd->id_and_color = cpu_to_le32(mvmvif->id);
27 cmd->action = cpu_to_le32(action);
29 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif));
31 memcpy(cmd->local_mld_addr, vif->addr, ETH_ALEN);
33 cmd->he_support = 0;
34 cmd->eht_support = 0;
37 cmd->filter_flags = 0;
39 cmd->nic_not_ack_enabled =
55 cmd->eht_support = cpu_to_le32(1);
60 for (link_id = 0; link_id < ARRAY_SIZE((vif)->link_conf); link_id++) {
61 link_conf = rcu_dereference(vif->link_conf[link_id]);
65 if (link_conf->he_support)
68 /* it's not reasonable to have EHT without HE and FW API doesn't
71 if (!link_conf->he_support && link_conf->eht_support)
74 if (link_conf->eht_support) {
75 cmd->eht_support = cpu_to_le32(1);
90 le32_to_cpu(cmd->action), ret);
101 WARN_ON(vif->type != NL80211_IFTYPE_STATION);
112 if (vif->p2p)
116 if (vif->cfg.assoc && !force_assoc_off) {
121 if (!mvmvif->authorized &&
122 fw_has_capa(&mvm->fw->ucode_capa,
136 cmd.client.assoc_id = cpu_to_le16(vif->cfg.aid);
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)
165 WARN_ON(vif->type != NL80211_IFTYPE_MONITOR);
184 WARN_ON(vif->type != NL80211_IFTYPE_ADHOC);
201 WARN_ON(vif->type != NL80211_IFTYPE_P2P_DEVICE);
224 WARN_ON(vif->type != NL80211_IFTYPE_AP);
241 switch (vif->type) {
257 return -EOPNOTSUPP;
265 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN))
266 return -EOPNOTSUPP;
268 if (WARN_ONCE(mvmvif->uploaded, "Adding active MAC %pM/%d\n",
269 vif->addr, ieee80211_vif_type_p2p(vif)))
270 return -EIO;
280 mvmvif->uploaded = true;
290 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN))
291 return -EOPNOTSUPP;
293 if (WARN_ONCE(!mvmvif->uploaded, "Changing inactive MAC %pM/%d\n",
294 vif->addr, ieee80211_vif_type_p2p(vif)))
295 return -EIO;
306 .id_and_color = cpu_to_le32(mvmvif->id),
310 if (WARN_ON_ONCE(vif->type == NL80211_IFTYPE_NAN))
311 return -EOPNOTSUPP;
313 if (WARN_ONCE(!mvmvif->uploaded, "Removing inactive MAC %pM/%d\n",
314 vif->addr, ieee80211_vif_type_p2p(vif)))
315 return -EIO;
321 mvmvif->uploaded = false;