Home
last modified time | relevance | path

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

/Linux-v6.1/net/mac80211/
Dvht.c119 struct link_sta_info *link_sta) in ieee80211_vht_cap_ie_to_sta_vht_cap() argument
121 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
128 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
165 !test_sta_flag(link_sta->sta, WLAN_STA_TDLS_PEER)) in ieee80211_vht_cap_ie_to_sta_vht_cap()
291 link_sta->sta->addr, link_sta->addr); in ieee80211_vht_cap_ie_to_sta_vht_cap()
299 link_sta->cur_max_bandwidth = IEEE80211_STA_RX_BW_160; in ieee80211_vht_cap_ie_to_sta_vht_cap()
302 link_sta->cur_max_bandwidth = IEEE80211_STA_RX_BW_80; in ieee80211_vht_cap_ie_to_sta_vht_cap()
314 link_sta->cur_max_bandwidth = in ieee80211_vht_cap_ie_to_sta_vht_cap()
318 link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_vht_cap_ie_to_sta_vht_cap()
326 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_11454; in ieee80211_vht_cap_ie_to_sta_vht_cap()
[all …]
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()
77 link_sta->cur_max_bandwidth = ieee80211_sta_cap_rx_bw(link_sta); in ieee80211_eht_cap_ie_to_sta_eht_cap()
78 link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_eht_cap_ie_to_sta_eht_cap()
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.c1455 rx->link_sta->rx_stats.num_duplicates++; in ieee80211_rx_h_check_dup()
1734 struct link_sta_info *link_sta = rx->link_sta; in ieee80211_rx_h_sta_process() local
1740 if (!sta || !link_sta) in ieee80211_rx_h_sta_process()
1756 link_sta->rx_stats.last_rx = jiffies; in ieee80211_rx_h_sta_process()
1759 link_sta->rx_stats.last_rate = in ieee80211_rx_h_sta_process()
1763 link_sta->rx_stats.last_rx = jiffies; in ieee80211_rx_h_sta_process()
1770 link_sta->rx_stats.last_rx = jiffies; in ieee80211_rx_h_sta_process()
1772 link_sta->rx_stats.last_rate = sta_stats_encode_rate(status); in ieee80211_rx_h_sta_process()
1775 link_sta->rx_stats.fragments++; in ieee80211_rx_h_sta_process()
1777 u64_stats_update_begin(&link_sta->rx_stats.syncp); in ieee80211_rx_h_sta_process()
[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()
258 struct link_sta_info *link_sta; in link_sta_info_get_bss() local
261 for_each_link_sta_info(local, addr, link_sta, tmp) { in link_sta_info_get_bss()
262 struct sta_info *sta = link_sta->sta; in link_sta_info_get_bss()
270 return link_sta; in link_sta_info_get_bss()
284 struct link_sta_info *link_sta; in ieee80211_find_sta_by_link_addrs() local
287 for_each_link_sta_info(local, addr, link_sta, tmp) { in ieee80211_find_sta_by_link_addrs()
[all …]
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()
414 struct link_sta_info *link_sta; in ieee80211_chan_bw_change() local
422 link_sta = rcu_dereference(sta->link[link_id]); in ieee80211_chan_bw_change()
423 if (!link_sta) in ieee80211_chan_bw_change()
426 new_sta_bw = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_chan_bw_change()
429 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()
530 rcu_assign_pointer(link_sta->gtk[idx], new); in ieee80211_key_replace()
870 struct link_sta_info *link_sta = &sta->deflink; in ieee80211_key_link() local
874 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_key_link()
876 if (!link_sta) { in ieee80211_key_link()
882 old_key = key_mtx_dereference(sdata->local, link_sta->gtk[idx]); in ieee80211_key_link()
Dmlme.c3871 static bool ieee80211_twt_req_supported(const struct link_sta_info *link_sta, in ieee80211_twt_req_supported() argument
3880 return link_sta->pub->he_cap.he_cap_elem.mac_cap_info[0] & in ieee80211_twt_req_supported()
3885 struct link_sta_info *link_sta, in ieee80211_recalc_twt_req() argument
3888 bool twt = ieee80211_twt_req_supported(link_sta, elems); in ieee80211_recalc_twt_req()
3900 struct link_sta_info *link_sta) in ieee80211_twt_bcast_support() argument
3907 (link_sta->pub->he_cap.he_cap_elem.mac_cap_info[2] & in ieee80211_twt_bcast_support()
3915 struct link_sta_info *link_sta, in ieee80211_assoc_config_link() argument
4078 link_sta); in ieee80211_assoc_config_link()
4083 link_sta); in ieee80211_assoc_config_link()
4091 link_sta); in ieee80211_assoc_config_link()
[all …]
Dieee80211_i.h216 struct link_sta_info *link_sta; member
2007 struct link_sta_info *link_sta);
2061 struct link_sta_info *link_sta);
2063 ieee80211_sta_cap_rx_bw(struct link_sta_info *link_sta);
2065 ieee80211_sta_cur_vht_bw(struct link_sta_info *link_sta);
2066 void ieee80211_sta_set_rx_nss(struct link_sta_info *link_sta);
2070 ieee80211_sta_cap_chan_bw(struct link_sta_info *link_sta);
2093 struct link_sta_info *link_sta);
2550 struct link_sta_info *link_sta);
Dcfg.c592 struct link_sta_info *link_sta; in ieee80211_lookup_key() local
599 link_sta = rcu_dereference_check(sta->link[link_id], in ieee80211_lookup_key()
601 if (!link_sta) in ieee80211_lookup_key()
604 link_sta = &sta->deflink; in ieee80211_lookup_key()
616 link_sta->gtk[key_idx]); in ieee80211_lookup_key()
1681 struct link_sta_info *link_sta = in sta_link_apply_parameters() local
1697 if (!link || !link_sta) in sta_link_apply_parameters()
1706 memcpy(link_sta->addr, params->link_mac, ETH_ALEN); in sta_link_apply_parameters()
1707 memcpy(link_sta->pub->addr, params->link_mac, ETH_ALEN); in sta_link_apply_parameters()
1708 } else if (!ether_addr_equal(link_sta->addr, in sta_link_apply_parameters()
[all …]
/Linux-v6.1/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.1/drivers/net/wireless/
Dmac80211_hwsim.c1746 struct ieee80211_link_sta **link_sta) in mac80211_hwsim_select_tx_link() argument
1772 *link_sta = rcu_dereference(sta->link[link_id]); in mac80211_hwsim_select_tx_link()
1773 if (!*link_sta) in mac80211_hwsim_select_tx_link()
1819 struct ieee80211_link_sta *link_sta = NULL; in mac80211_hwsim_tx() local
1826 link_sta = rcu_dereference(sta->link[link]); in mac80211_hwsim_tx()
1829 hdr, &link_sta); in mac80211_hwsim_tx()
1838 if (WARN_ON(!link_sta)) { in mac80211_hwsim_tx()
1843 ether_addr_copy(hdr->addr1, link_sta->addr); in mac80211_hwsim_tx()
1849 ether_addr_copy(hdr->addr3, link_sta->addr); in mac80211_hwsim_tx()
2398 struct ieee80211_link_sta *link_sta; in mac80211_hwsim_sta_rc_update() local
[all …]
/Linux-v6.1/include/net/
Dmac80211.h2311 #define for_each_sta_active_link(vif, sta, link_sta, link_id) \ argument
2315 ((link_sta) = link_sta_dereference_protected(sta, link_id)))