diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-08-19 13:12:38 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-08-25 10:41:25 +0200 |
commit | c73993b865bf0b2ea1cbb3e9616f18a6508fc49c (patch) | |
tree | eb9d558468ba4954a4a503838639c69d205d5c56 /net/mac80211/sta_info.c | |
parent | ea5cba269fb1fe22b84f4d01bb3d56320e6ffa3e (diff) |
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>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 05dc56811cb4..6649c2483e49 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -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); } |