Lines Matching defs:link_conf

84 			     struct ieee80211_bss_conf *link_conf)
88 mvmvif->link[link_conf->link_id];
98 link_conf);
105 struct ieee80211_bss_conf *link_conf)
108 unsigned int link_id = link_conf->link_id;
118 ret = iwl_mvm_set_link_mapping(mvm, vif, link_conf);
130 cmd.spec_link_id = link_conf->link_id;
134 memcpy(cmd.local_link_addr, link_conf->addr, ETH_ALEN);
136 if (vif->type == NL80211_IFTYPE_ADHOC && link_conf->bssid)
137 memcpy(cmd.ibss_bssid_addr, link_conf->bssid, ETH_ALEN);
205 struct ieee80211_bss_conf *link_conf,
209 unsigned int link_id = link_conf->link_id;
261 memcpy(cmd.local_link_addr, link_conf->addr, ETH_ALEN);
265 if (vif->type == NL80211_IFTYPE_ADHOC && link_conf->bssid)
266 memcpy(cmd.ibss_bssid_addr, link_conf->bssid, ETH_ALEN);
271 cmd.cck_short_preamble = cpu_to_le32(link_conf->use_short_preamble);
272 cmd.short_slot = cpu_to_le32(link_conf->use_short_slot);
276 iwl_mvm_set_fw_protection_flags(mvm, vif, link_conf,
280 iwl_mvm_set_fw_qos_params(mvm, vif, link_conf, cmd.ac,
284 cmd.bi = cpu_to_le32(link_conf->beacon_int);
285 cmd.dtim_interval = cpu_to_le32(link_conf->beacon_int *
286 link_conf->dtim_period);
288 if (!link_conf->he_support || iwlwifi_mod_params.disable_11ax ||
294 cmd.htc_trig_based_pkt_ext = link_conf->htc_trig_based_pkt_ext;
296 if (link_conf->uora_exists) {
298 link_conf->uora_ocw_range & 0x7;
300 (link_conf->uora_ocw_range >> 3) & 0x7;
327 ctx = rcu_dereference(link_conf->chanctx_conf);
332 !link_conf->eht_support || !def ||
340 cmd.bss_color = link_conf->he_bss_color.color;
342 if (!link_conf->he_bss_color.enabled) {
347 cmd.frame_time_rts_th = cpu_to_le16(link_conf->frame_time_rts_th);
355 if (link_conf->nontransmitted) {
357 link_conf->transmitter_bssid);
358 cmd.bssid_index = link_conf->bssid_index;
366 cmd.spec_link_id = link_conf->link_id;
378 struct ieee80211_bss_conf *link_conf)
382 mvmvif->link[link_conf->link_id];
396 struct ieee80211_bss_conf *link_conf)
399 unsigned int link_id = link_conf->link_id;
404 ret = iwl_mvm_unset_link_mapping(mvm, vif, link_conf);
410 cmd.spec_link_id = link_conf->link_id;
425 struct ieee80211_bss_conf *link_conf)
429 ret = iwl_mvm_link_changed(mvm, vif, link_conf,
434 ret = iwl_mvm_remove_link(mvm, vif, link_conf);
487 iwl_mvm_get_puncturing_factor(const struct ieee80211_bss_conf *link_conf)
490 link_conf->chanreq.oper.width;
505 n_punctured = hweight16(link_conf->chanreq.oper.punctured);
512 iwl_mvm_get_chan_load(struct ieee80211_bss_conf *link_conf)
514 struct ieee80211_vif *vif = link_conf->vif;
516 iwl_mvm_vif_from_mac80211(link_conf->vif)->link[link_conf->link_id];
519 enum nl80211_band band = link_conf->chanreq.oper.chan->band;
525 if (ieee80211_vif_link_active(vif, link_conf->link_id))
526 ies = rcu_dereference(link_conf->bss->beacon_ies);
528 ies = rcu_dereference(link_conf->bss->ies);
568 link_conf->link_id))
583 iwl_mvm_get_chan_load_factor(struct ieee80211_bss_conf *link_conf)
585 return SCALE_FACTOR - iwl_mvm_get_chan_load(link_conf);
590 unsigned int iwl_mvm_get_link_grade(struct ieee80211_bss_conf *link_conf)
597 if (WARN_ON_ONCE(!link_conf))
600 band = link_conf->chanreq.oper.chan->band;
607 link_rssi = MBM_TO_DBM(link_conf->bss->signal);
633 grade = grade * iwl_mvm_get_chan_load_factor(link_conf) / SCALE_FACTOR;
634 grade = grade * iwl_mvm_get_puncturing_factor(link_conf) / SCALE_FACTOR;
651 struct ieee80211_bss_conf *link_conf =
654 if (WARN_ON_ONCE(!link_conf))
658 data[n_data].chandef = &link_conf->chanreq.oper;
659 data[n_data].signal = link_conf->bss->signal / 100;
660 data[n_data].grade = iwl_mvm_get_link_grade(link_conf);
722 conf = wiphy_dereference(wiphy, vif->link_conf[link->link_id]);
806 primary_conf = wiphy_dereference(wiphy, vif->link_conf[*primary_id]);