diff options
author | Benjamin Berg <benjamin.berg@intel.com> | 2022-09-06 20:02:04 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-10-07 16:23:38 +0300 |
commit | 1d9e4c91db17c9bf6f94ac234a4d4f2bffd52b97 (patch) | |
tree | 22a2ddfce00cce32f411ae612580ca331dc5561f /net/mac80211 | |
parent | 8af9d4068e86dd5c3221ee495ec09537c7fb458b (diff) | |
download | linux-1d9e4c91db17c9bf6f94ac234a4d4f2bffd52b97.tar.xz |
wifi: mac80211: add pointer from link STA to STA
While often not needed, this considerably simplifies going from a link
to the STA. This helps in cases such as debugfs where a single pointer
should allow accessing a specific link and the STA.
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-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 cebfd148bb40..71b1488bd390 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -511,6 +511,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_info->pub->sta = &sta->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); |