mac80211: mlme: remove duplicate AID bookkeeping
authorJohannes Berg <johannes.berg@intel.com>
Fri, 17 Apr 2020 10:38:04 +0000 (12:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Apr 2020 09:46:11 +0000 (11:46 +0200)
commit1db364c88695272e3410eb4b5d4595c8cb15db30
tree5633ad4af6e54bb27cd62b572ec688cfd73e927a
parent5cc58a9ecfa1bbf5fb587ec65e42f15dd5051238
mac80211: mlme: remove duplicate AID bookkeeping

Maintain the connection AID only in sdata->vif.bss_conf.aid, not
also in sdata->u.mgd.aid.

Keep setting that where we set ifmgd->aid before, which has the
side effect of exposing the AID to the driver before the station
entry (AP) is marked associated, in case it needs it then.

Requested-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/20200417123802.085d4a322b0c.I2e7a2ceceea8c6880219f9e9ee4d4ac985fd295a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs_netdev.c
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/tdls.c
net/mac80211/tx.c