wifi: mac80211: fix NULL pointer deref with non-MLD STA
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jul 2022 07:14:30 +0000 (09:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jul 2022 12:27:47 +0000 (14:27 +0200)
commit206c8c0680b15d2630900ca27eb971c5d25557e8
tree18b873381272941f08983c1a6b500be7ab3ad2bd
parent553a282cb25eb62fdda1f3425d48b12372366e03
wifi: mac80211: fix NULL pointer deref with non-MLD STA

If we have a non-MLD STA on an AP MLD, we crash while
adding the station. Fix that, in this case we need to
use the STA's address also on the link data structure.

Fixes: f36fe0a2df03 ("wifi: mac80211: fix up link station creation/insertion")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c