mac80211: mlme: track assoc_bss/associated separately
authorJohannes Berg <johannes.berg@intel.com>
Fri, 13 May 2022 16:03:14 +0000 (18:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 16 May 2022 07:16:20 +0000 (09:16 +0200)
commit5dfad1081215de36f863cd05e70bca56fcbdb9f0
tree111c74232485fd2f2daf96f7c64df3e16f5952af
parent16d0364c722a246933ec4b39cbd5d17d7d4fe758
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>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c