wifi: mac80211: maintain link_id in link_sta
To helper drivers if they e.g. have a lookup of the link_sta pointer, add the link ID to the link_sta structure. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -472,6 +472,7 @@ static void sta_info_add_link(struct sta_info *sta,
|
||||
link_info->sta = sta;
|
||||
link_info->link_id = link_id;
|
||||
link_info->pub = link_sta;
|
||||
link_sta->link_id = link_id;
|
||||
rcu_assign_pointer(sta->link[link_id], link_info);
|
||||
rcu_assign_pointer(sta->sta.link[link_id], link_sta);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user