Home
last modified time | relevance | path

Searched refs:link_sta (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.6/net/mac80211/
Dvht.c120 struct link_sta_info *link_sta) in ieee80211_vht_cap_ie_to_sta_vht_cap() argument
122 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
130 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
167 !test_sta_flag(link_sta->sta, WLAN_STA_TDLS_PEER)) in ieee80211_vht_cap_ie_to_sta_vht_cap()
293 link_sta->sta->addr, link_sta->addr); in ieee80211_vht_cap_ie_to_sta_vht_cap()
301 link_sta->cur_max_bandwidth = IEEE80211_STA_RX_BW_160; in ieee80211_vht_cap_ie_to_sta_vht_cap()
304 link_sta->cur_max_bandwidth = IEEE80211_STA_RX_BW_80; in ieee80211_vht_cap_ie_to_sta_vht_cap()
316 link_sta->cur_max_bandwidth = in ieee80211_vht_cap_ie_to_sta_vht_cap()
320 link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_vht_cap_ie_to_sta_vht_cap()
338 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_11454; in ieee80211_vht_cap_ie_to_sta_vht_cap()
[all …]
Ddebugfs_sta.h11 void ieee80211_link_sta_debugfs_add(struct link_sta_info *link_sta);
12 void ieee80211_link_sta_debugfs_remove(struct link_sta_info *link_sta);
14 void ieee80211_link_sta_debugfs_drv_add(struct link_sta_info *link_sta);
15 void ieee80211_link_sta_debugfs_drv_remove(struct link_sta_info *link_sta);
20 static inline void ieee80211_link_sta_debugfs_add(struct link_sta_info *link_sta) {} in ieee80211_link_sta_debugfs_add() argument
21 static inline void ieee80211_link_sta_debugfs_remove(struct link_sta_info *link_sta) {} in ieee80211_link_sta_debugfs_remove() argument
23 static inline void ieee80211_link_sta_debugfs_drv_add(struct link_sta_info *link_sta) {} in ieee80211_link_sta_debugfs_drv_add() argument
24 static inline void ieee80211_link_sta_debugfs_drv_remove(struct link_sta_info *link_sta) {} in ieee80211_link_sta_debugfs_drv_remove() argument
Dhe.c13 struct link_sta_info *link_sta) in ieee80211_update_from_he_6ghz_capa() argument
15 struct sta_info *sta = link_sta->sta; in ieee80211_update_from_he_6ghz_capa()
34 link_sta->pub->smps_mode = smps_mode; in ieee80211_update_from_he_6ghz_capa()
36 link_sta->pub->smps_mode = IEEE80211_SMPS_OFF; in ieee80211_update_from_he_6ghz_capa()
42 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_11454; in ieee80211_update_from_he_6ghz_capa()
45 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_7991; in ieee80211_update_from_he_6ghz_capa()
49 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_3895; in ieee80211_update_from_he_6ghz_capa()
55 link_sta->pub->he_6ghz_capa = *he_6ghz_capa; in ieee80211_update_from_he_6ghz_capa()
114 struct link_sta_info *link_sta) in ieee80211_he_cap_ie_to_sta_he_cap() argument
116 struct ieee80211_sta_he_cap *he_cap = &link_sta->pub->he_cap; in ieee80211_he_cap_ie_to_sta_he_cap()
[all …]
Deht.c16 struct link_sta_info *link_sta) in ieee80211_eht_cap_ie_to_sta_eht_cap() argument
18 struct ieee80211_sta_eht_cap *eht_cap = &link_sta->pub->eht_cap; in ieee80211_eht_cap_ie_to_sta_eht_cap()
76 link_sta->cur_max_bandwidth = ieee80211_sta_cap_rx_bw(link_sta); in ieee80211_eht_cap_ie_to_sta_eht_cap()
77 link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_eht_cap_ie_to_sta_eht_cap()
Ddebugfs_sta.c450 struct link_sta_info *link_sta = file->private_data; in link_sta_addr_read() local
453 snprintf(mac, sizeof(mac), "%pM\n", link_sta->pub->addr); in link_sta_addr_read()
471 struct link_sta_info *link_sta = file->private_data; in link_sta_ht_capa_read() local
472 struct ieee80211_sta_ht_cap *htc = &link_sta->pub->ht_cap; in link_sta_ht_capa_read()
555 struct link_sta_info *link_sta = file->private_data; in link_sta_vht_capa_read() local
556 struct ieee80211_sta_vht_cap *vhtc = &link_sta->pub->vht_cap; in link_sta_vht_capa_read()
670 struct link_sta_info *link_sta = file->private_data; in link_sta_he_capa_read() local
671 struct ieee80211_sta_he_cap *hec = &link_sta->pub->he_cap; in link_sta_he_capa_read()
1043 struct link_sta_info *link_sta = file->private_data; in link_sta_eht_capa_read() local
1044 struct ieee80211_sta_eht_cap *bec = &link_sta->pub->eht_cap; in link_sta_eht_capa_read()
[all …]
Dsta_info.c100 struct link_sta_info *link_sta) in link_sta_info_hash_add() argument
104 &link_sta->link_hash_node, in link_sta_info_hash_add()
109 struct link_sta_info *link_sta) in link_sta_info_hash_del() argument
113 &link_sta->link_hash_node, in link_sta_info_hash_del()
256 struct link_sta_info *link_sta; in link_sta_info_get_bss() local
259 for_each_link_sta_info(local, addr, link_sta, tmp) { in link_sta_info_get_bss()
260 struct sta_info *sta = link_sta->sta; in link_sta_info_get_bss()
268 return link_sta; in link_sta_info_get_bss()
282 struct link_sta_info *link_sta; in ieee80211_find_sta_by_link_addrs() local
285 for_each_link_sta_info(local, addr, link_sta, tmp) { in ieee80211_find_sta_by_link_addrs()
[all …]
Dht.c141 struct link_sta_info *link_sta) in ieee80211_ht_cap_ie_to_sta_ht_cap() argument
144 struct sta_info *sta = link_sta->sta; in ieee80211_ht_cap_ie_to_sta_ht_cap()
244 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_7935; in ieee80211_ht_cap_ie_to_sta_ht_cap()
246 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_3839; in ieee80211_ht_cap_ie_to_sta_ht_cap()
251 changed = memcmp(&link_sta->pub->ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
253 memcpy(&link_sta->pub->ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
256 link_conf = rcu_dereference(sdata->vif.link_conf[link_sta->link_id]); in ieee80211_ht_cap_ie_to_sta_ht_cap()
280 link_sta->pub->bandwidth = bw; in ieee80211_ht_cap_ie_to_sta_ht_cap()
282 link_sta->cur_max_bandwidth = in ieee80211_ht_cap_ie_to_sta_ht_cap()
304 if (smps_mode != link_sta->pub->smps_mode) in ieee80211_ht_cap_ie_to_sta_ht_cap()
[all …]
Drx.c1438 rx->link_sta->rx_stats.num_duplicates++; in ieee80211_rx_h_check_dup()
1714 struct link_sta_info *link_sta = rx->link_sta; in ieee80211_rx_h_sta_process() local
1720 if (!sta || !link_sta) in ieee80211_rx_h_sta_process()
1736 link_sta->rx_stats.last_rx = jiffies; in ieee80211_rx_h_sta_process()
1739 link_sta->rx_stats.last_rate = in ieee80211_rx_h_sta_process()
1743 link_sta->rx_stats.last_rx = jiffies; in ieee80211_rx_h_sta_process()
1750 link_sta->rx_stats.last_rx = jiffies; in ieee80211_rx_h_sta_process()
1752 link_sta->rx_stats.last_rate = sta_stats_encode_rate(status); in ieee80211_rx_h_sta_process()
1755 link_sta->rx_stats.fragments++; in ieee80211_rx_h_sta_process()
1757 u64_stats_update_begin(&link_sta->rx_stats.syncp); in ieee80211_rx_h_sta_process()
[all …]
Ddriver-ops.c528 struct link_sta_info *link_sta; in drv_change_sta_links() local
549 link_sta = rcu_dereference_protected(info->link[link_id], in drv_change_sta_links()
552 ieee80211_link_sta_debugfs_drv_remove(link_sta); in drv_change_sta_links()
565 link_sta = rcu_dereference_protected(info->link[link_id], in drv_change_sta_links()
567 ieee80211_link_sta_debugfs_drv_add(link_sta); in drv_change_sta_links()
Dchan.c202 struct link_sta_info *link_sta; in ieee80211_get_sta_bw() local
204 link_sta = rcu_dereference(sta->link[link_id]); in ieee80211_get_sta_bw()
207 if (!link_sta) in ieee80211_get_sta_bw()
210 width = ieee80211_sta_cap_rx_bw(link_sta); in ieee80211_get_sta_bw()
214 if (link_sta->pub->ht_cap.ht_supported) in ieee80211_get_sta_bw()
420 struct link_sta_info *link_sta; in ieee80211_chan_bw_change() local
428 link_sta = rcu_dereference(sta->link[link_id]); in ieee80211_chan_bw_change()
429 if (!link_sta) in ieee80211_chan_bw_change()
432 new_sta_bw = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_chan_bw_change()
435 if (new_sta_bw == link_sta->pub->bandwidth) in ieee80211_chan_bw_change()
[all …]
Dkey.c448 struct link_sta_info *link_sta = sta ? &sta->deflink : NULL; in ieee80211_key_replace() local
484 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_replace()
486 if (!link_sta) in ieee80211_key_replace()
534 rcu_assign_pointer(link_sta->gtk[idx], new); in ieee80211_key_replace()
879 struct link_sta_info *link_sta = &sta->deflink; in ieee80211_key_link() local
883 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_link()
885 if (!link_sta) { in ieee80211_key_link()
891 old_key = key_mtx_dereference(sdata->local, link_sta->gtk[idx]); in ieee80211_key_link()
Dieee80211_i.h211 struct link_sta_info *link_sta; member
2090 struct link_sta_info *link_sta);
2145 struct link_sta_info *link_sta);
2147 ieee80211_sta_cap_rx_bw(struct link_sta_info *link_sta);
2149 ieee80211_sta_cur_vht_bw(struct link_sta_info *link_sta);
2150 void ieee80211_sta_set_rx_nss(struct link_sta_info *link_sta);
2154 ieee80211_sta_cap_chan_bw(struct link_sta_info *link_sta);
2177 struct link_sta_info *link_sta);
2639 struct link_sta_info *link_sta);
Dmlme.c3947 const struct link_sta_info *link_sta, in ieee80211_twt_req_supported() argument
3959 return link_sta->pub->he_cap.he_cap_elem.mac_cap_info[0] & in ieee80211_twt_req_supported()
3969 struct link_sta_info *link_sta, in ieee80211_recalc_twt_req() argument
3972 bool twt = ieee80211_twt_req_supported(sdata, sband, link_sta, elems); in ieee80211_recalc_twt_req()
3984 struct link_sta_info *link_sta) in ieee80211_twt_bcast_support() argument
3990 (link_sta->pub->he_cap.he_cap_elem.mac_cap_info[2] & in ieee80211_twt_bcast_support()
3998 struct link_sta_info *link_sta, in ieee80211_assoc_config_link() argument
4203 link_sta); in ieee80211_assoc_config_link()
4229 bss_vht_cap, link_sta); in ieee80211_assoc_config_link()
4239 link_sta); in ieee80211_assoc_config_link()
[all …]
Dcfg.c596 struct link_sta_info *link_sta; in ieee80211_lookup_key() local
603 link_sta = rcu_dereference_check(sta->link[link_id], in ieee80211_lookup_key()
605 if (!link_sta) in ieee80211_lookup_key()
608 link_sta = &sta->deflink; in ieee80211_lookup_key()
620 link_sta->gtk[key_idx]); in ieee80211_lookup_key()
1804 struct link_sta_info *link_sta = in sta_link_apply_parameters() local
1820 if (!link || !link_sta) in sta_link_apply_parameters()
1829 memcpy(link_sta->addr, params->link_mac, ETH_ALEN); in sta_link_apply_parameters()
1830 memcpy(link_sta->pub->addr, params->link_mac, ETH_ALEN); in sta_link_apply_parameters()
1831 } else if (!ether_addr_equal(link_sta->addr, in sta_link_apply_parameters()
[all …]
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/
Drs-fw.c12 static u8 rs_fw_bw_from_sta_bw(const struct ieee80211_link_sta *link_sta) in rs_fw_bw_from_sta_bw() argument
14 switch (link_sta->bandwidth) { in rs_fw_bw_from_sta_bw()
41 static u8 rs_fw_sgi_cw_support(struct ieee80211_link_sta *link_sta) in rs_fw_sgi_cw_support() argument
43 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_sgi_cw_support()
44 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_sgi_cw_support()
45 struct ieee80211_sta_he_cap *he_cap = &link_sta->he_cap; in rs_fw_sgi_cw_support()
65 struct ieee80211_link_sta *link_sta, in rs_fw_get_config_flags() argument
68 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_get_config_flags()
69 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_get_config_flags()
70 struct ieee80211_sta_he_cap *he_cap = &link_sta->he_cap; in rs_fw_get_config_flags()
[all …]
Dsf.c103 struct ieee80211_link_sta *link_sta; in iwl_mvm_fill_sf_command() local
116 link_sta = rcu_dereference(sta->link[link_id]); in iwl_mvm_fill_sf_command()
117 if (!link_sta) in iwl_mvm_fill_sf_command()
120 if (link_sta->ht_cap.ht_supported || in iwl_mvm_fill_sf_command()
121 link_sta->vht_cap.vht_supported || in iwl_mvm_fill_sf_command()
122 link_sta->eht_cap.has_eht || in iwl_mvm_fill_sf_command()
123 link_sta->he_cap.has_he) { in iwl_mvm_fill_sf_command()
125 max_rx_nss = max(max_rx_nss, link_sta->rx_nss); in iwl_mvm_fill_sf_command()
Dmld-sta.c27 struct iwl_mvm_link_sta *link_sta; in iwl_mvm_sta_fw_id_mask() local
33 link_sta = in iwl_mvm_sta_fw_id_mask()
36 if (!link_sta) in iwl_mvm_sta_fw_id_mask()
39 result |= BIT(link_sta->sta_id); in iwl_mvm_sta_fw_id_mask()
430 struct ieee80211_link_sta *link_sta, in iwl_mvm_mld_cfg_sta() argument
451 memcpy(&cmd.peer_link_address, link_sta->addr, ETH_ALEN); in iwl_mvm_mld_cfg_sta()
461 switch (link_sta->rx_nss) { in iwl_mvm_mld_cfg_sta()
487 mpdu_dens = iwl_mvm_get_sta_ampdu_dens(link_sta, link_conf, &agg_size); in iwl_mvm_mld_cfg_sta()
497 if (link_sta->he_cap.has_he) { in iwl_mvm_mld_cfg_sta()
502 iwl_mvm_set_sta_pkt_ext(mvm, link_sta, &cmd.pkt_ext); in iwl_mvm_mld_cfg_sta()
[all …]
Drs.h401 struct ieee80211_link_sta *link_sta,
441 struct iwl_mvm_link_sta *link_sta);
447 struct ieee80211_link_sta *link_sta,
456 struct ieee80211_link_sta *link_sta);
Ddebugfs.c395 static ssize_t iwl_dbgfs_rs_data_read(struct ieee80211_link_sta *link_sta, in iwl_dbgfs_rs_data_read() argument
438 static ssize_t iwl_dbgfs_amsdu_len_write(struct ieee80211_link_sta *link_sta, in iwl_dbgfs_amsdu_len_write() argument
456 mvm_link_sta->orig_amsdu_len = link_sta->agg.max_amsdu_len; in iwl_dbgfs_amsdu_len_write()
457 link_sta->agg.max_amsdu_len = amsdu_len; in iwl_dbgfs_amsdu_len_write()
458 link_sta->agg.max_amsdu_len = amsdu_len; in iwl_dbgfs_amsdu_len_write()
459 for (i = 0; i < ARRAY_SIZE(link_sta->agg.max_tid_amsdu_len); i++) in iwl_dbgfs_amsdu_len_write()
460 link_sta->agg.max_tid_amsdu_len[i] = amsdu_len; in iwl_dbgfs_amsdu_len_write()
462 link_sta->agg.max_amsdu_len = mvm_link_sta->orig_amsdu_len; in iwl_dbgfs_amsdu_len_write()
466 ieee80211_sta_recalc_aggregates(link_sta->sta); in iwl_dbgfs_amsdu_len_write()
471 static ssize_t iwl_dbgfs_amsdu_len_read(struct ieee80211_link_sta *link_sta, in iwl_dbgfs_amsdu_len_read() argument
[all …]
Dmac80211.c785 struct ieee80211_link_sta *link_sta = in iwl_mvm_mac_tx() local
791 if (WARN_ON(!link_sta || !link_conf)) in iwl_mvm_mac_tx()
796 memcpy(mgmt->da, link_sta->addr, ETH_ALEN); in iwl_mvm_mac_tx()
2054 struct ieee80211_link_sta *link_sta, in iwl_mvm_set_pkt_ext_from_he_ppe() argument
2058 u8 nss = (link_sta->he_cap.ppe_thres[0] & in iwl_mvm_set_pkt_ext_from_he_ppe()
2060 u8 *ppe = &link_sta->he_cap.ppe_thres[0]; in iwl_mvm_set_pkt_ext_from_he_ppe()
2141 struct ieee80211_link_sta *link_sta, in iwl_mvm_set_sta_pkt_ext() argument
2147 if (WARN_ON(!link_sta)) in iwl_mvm_set_sta_pkt_ext()
2156 if (link_sta->eht_cap.has_eht) { in iwl_mvm_set_sta_pkt_ext()
2158 u8_get_bits(link_sta->eht_cap.eht_cap_elem.phy_cap_info[5], in iwl_mvm_set_sta_pkt_ext()
[all …]
Dsta.c54 u32 iwl_mvm_get_sta_ampdu_dens(struct ieee80211_link_sta *link_sta, in iwl_mvm_get_sta_ampdu_dens() argument
60 if (WARN_ON(!link_sta)) in iwl_mvm_get_sta_ampdu_dens()
69 if (link_sta->ht_cap.ht_supported) { in iwl_mvm_get_sta_ampdu_dens()
70 agg_size = link_sta->ht_cap.ampdu_factor; in iwl_mvm_get_sta_ampdu_dens()
71 mpdu_dens = link_sta->ht_cap.ampdu_density; in iwl_mvm_get_sta_ampdu_dens()
76 mpdu_dens = le16_get_bits(link_sta->he_6ghz_capa.capa, in iwl_mvm_get_sta_ampdu_dens()
78 agg_size = le16_get_bits(link_sta->he_6ghz_capa.capa, in iwl_mvm_get_sta_ampdu_dens()
80 } else if (link_sta->vht_cap.vht_supported) { in iwl_mvm_get_sta_ampdu_dens()
82 agg_size = u32_get_bits(link_sta->vht_cap.cap, in iwl_mvm_get_sta_ampdu_dens()
94 if (link_sta->he_cap.has_he) in iwl_mvm_get_sta_ampdu_dens()
[all …]
Dmld-mac80211.c335 struct ieee80211_link_sta *link_sta; in __iwl_mvm_mld_assign_vif_chanctx() local
338 link_sta = rcu_dereference(mvmvif->ap_sta->link[link_id]); in __iwl_mvm_mld_assign_vif_chanctx()
340 if (!WARN_ON_ONCE(!link_sta)) in __iwl_mvm_mld_assign_vif_chanctx()
342 link_conf, link_sta, in __iwl_mvm_mld_assign_vif_chanctx()
Drxmq.c240 struct ieee80211_link_sta *link_sta) in iwl_mvm_pass_packet_to_mac80211() argument
247 if (sta && sta->valid_links && link_sta) { in iwl_mvm_pass_packet_to_mac80211()
251 rx_status->link_id = link_sta->link_id; in iwl_mvm_pass_packet_to_mac80211()
2323 struct ieee80211_link_sta *link_sta = NULL; in iwl_mvm_rx_mpdu_mq() local
2480 link_sta = rcu_dereference(mvm->fw_id_to_link_sta[id]); in iwl_mvm_rx_mpdu_mq()
2618 link_sta); in iwl_mvm_rx_mpdu_mq()
/Linux-v6.6/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c36 u32 link_sta; member
493 int link_sta; in switchtec_ntb_link_status_update() local
496 link_sta = sndev->self_shared->link_sta; in switchtec_ntb_link_status_update()
497 if (link_sta) { in switchtec_ntb_link_status_update()
501 link_sta = peer >> 32; in switchtec_ntb_link_status_update()
503 link_sta = 0; in switchtec_ntb_link_status_update()
506 sndev->link_is_up = link_sta; in switchtec_ntb_link_status_update()
509 if (link_sta != old) { in switchtec_ntb_link_status_update()
513 link_sta ? "up" : "down"); in switchtec_ntb_link_status_update()
515 if (link_sta) in switchtec_ntb_link_status_update()
[all …]
/Linux-v6.6/drivers/net/wireless/virtual/
Dmac80211_hwsim.c1857 struct ieee80211_link_sta **link_sta) in mac80211_hwsim_select_tx_link() argument
1883 *link_sta = rcu_dereference(sta->link[link_id]); in mac80211_hwsim_select_tx_link()
1884 if (!*link_sta) in mac80211_hwsim_select_tx_link()
1930 struct ieee80211_link_sta *link_sta = NULL; in mac80211_hwsim_tx() local
1937 link_sta = rcu_dereference(sta->link[link]); in mac80211_hwsim_tx()
1940 hdr, &link_sta); in mac80211_hwsim_tx()
1956 if (WARN_ON(!link_sta)) { in mac80211_hwsim_tx()
1961 ether_addr_copy(hdr->addr1, link_sta->addr); in mac80211_hwsim_tx()
1967 ether_addr_copy(hdr->addr3, link_sta->addr); in mac80211_hwsim_tx()
2546 struct ieee80211_link_sta *link_sta; in mac80211_hwsim_sta_rc_update() local
[all …]

12