wifi: cfg80211: fix assoc response warning on failed links
authorJohannes Berg <johannes.berg@intel.com>
Wed, 18 Oct 2023 09:42:51 +0000 (11:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 11:25:30 +0000 (13:25 +0200)
commitc434b2be2d80d236bb090fdb493d4bd5ed589238
treeaad8870cfdfbc07aca57a6104b98381696ea2471
parent3e3929ef889e650dd585dc0f4f7f18240688811a
wifi: cfg80211: fix assoc response warning on failed links

The warning here shouldn't be done before we even set the
bss field (or should've used the input data). Move the
assignment before the warning to fix it.

We noticed this now because of Wen's bugfix, where the bug
fixed there had previously hidden this other bug.

Fixes: 53ad07e9823b ("wifi: cfg80211: support reporting failed links")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/mlme.c