Lines Matching refs:link_sta
100 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()
286 struct sta_info *sta = link_sta->sta; in ieee80211_find_sta_by_link_addrs()
288 u8 _link_id = link_sta->link_id; in ieee80211_find_sta_by_link_addrs()
347 static void sta_info_free_link(struct link_sta_info *link_sta) in sta_info_free_link() argument
349 free_percpu(link_sta->pcpu_rx_stats); in sta_info_free_link()
356 struct link_sta_info *link_sta; in sta_remove_link() local
358 link_sta = rcu_access_pointer(sta->link[link_id]); in sta_remove_link()
359 if (link_sta != &sta->deflink) in sta_remove_link()
362 if (WARN_ON(!link_sta)) in sta_remove_link()
366 link_sta_info_hash_del(sta->local, link_sta); in sta_remove_link()
369 ieee80211_link_sta_debugfs_remove(link_sta); in sta_remove_link()
371 if (link_sta != &sta->deflink) in sta_remove_link()
372 alloc = container_of(link_sta, typeof(*alloc), info); in sta_remove_link()
510 struct ieee80211_link_sta *link_sta) in sta_info_add_link() argument
514 link_info->pub = link_sta; in sta_info_add_link()
516 link_sta->link_id = link_id; in sta_info_add_link()
518 rcu_assign_pointer(sta->sta.link[link_id], link_sta); in sta_info_add_link()
520 link_sta->smps_mode = IEEE80211_SMPS_OFF; in sta_info_add_link()
521 link_sta->agg.max_rc_amsdu_len = IEEE80211_MAX_MPDU_LEN_HT_BA; in sta_info_add_link()
884 struct link_sta_info *link_sta; in sta_info_insert_finish() local
886 link_sta = rcu_dereference_protected(sta->link[i], in sta_info_insert_finish()
889 if (!link_sta) in sta_info_insert_finish()
892 ieee80211_link_sta_debugfs_add(link_sta); in sta_info_insert_finish()
894 ieee80211_link_sta_debugfs_drv_add(link_sta); in sta_info_insert_finish()
1241 struct link_sta_info *link_sta; in __sta_info_destroy_part1() local
1246 link_sta = rcu_dereference_protected(sta->link[i], in __sta_info_destroy_part1()
1249 link_sta_info_hash_del(local, link_sta); in __sta_info_destroy_part1()
2294 struct ieee80211_link_sta *link_sta; in __ieee80211_sta_recalc_aggregates() local
2300 link_sta = rcu_dereference(sta->sta.link[link_id]); in __ieee80211_sta_recalc_aggregates()
2301 if (!link_sta) in __ieee80211_sta_recalc_aggregates()
2312 link_sta->agg.max_amsdu_len); in __ieee80211_sta_recalc_aggregates()
2315 link_sta->agg.max_rc_amsdu_len); in __ieee80211_sta_recalc_aggregates()
2320 link_sta->agg.max_tid_amsdu_len[i]); in __ieee80211_sta_recalc_aggregates()
2912 struct link_sta_info *link_sta; in ieee80211_sta_activate_link() local
2917 link_sta = rcu_dereference_protected(sta->link[link_id], in ieee80211_sta_activate_link()
2920 if (WARN_ON(old_links == new_links || !link_sta)) in ieee80211_sta_activate_link()
2924 if (link_sta_info_hash_lookup(sdata->local, link_sta->addr)) { in ieee80211_sta_activate_link()
2952 ret = link_sta_info_hash_add(sdata->local, link_sta); in ieee80211_sta_activate_link()