diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-05-13 19:03:14 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-05-16 10:16:20 +0300 |
commit | 5dfad1081215de36f863cd05e70bca56fcbdb9f0 (patch) | |
tree | 111c74232485fd2f2daf96f7c64df3e16f5952af /net/mac80211/ieee80211_i.h | |
parent | 16d0364c722a246933ec4b39cbd5d17d7d4fe758 (diff) | |
download | linux-5dfad1081215de36f863cd05e70bca56fcbdb9f0.tar.xz |
mac80211: mlme: track assoc_bss/associated separately
We currently track whether we're associated and which the
BSS is in the same variable (ifmgd->associated), but for
MLD we'll need to move the BSS pointer to be per link,
while the question whether we're associated or not is for
the whole interface.
Add ifmgd->assoc_bss that stores the pointer and change
ifmgd->associated to be just a bool, so the question of
whether we're associated can continue working after MLD
rework, without requiring changes, while the BSS pointer
will have to be changed/used checked per link.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index d072f20e3c5a..86ef0a46a68c 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -453,9 +453,10 @@ struct ieee80211_if_managed { bool nullfunc_failed; u8 connection_loss:1, driver_disconnect:1, - reconnect:1; + reconnect:1, + associated:1; - struct cfg80211_bss *associated; + struct cfg80211_bss *assoc_bss; struct ieee80211_mgd_auth_data *auth_data; struct ieee80211_mgd_assoc_data *assoc_data; |