wifi: mac80211: mlme: unify assoc data event sending
authorJohannes Berg <johannes.berg@intel.com>
Mon, 27 Jun 2022 20:23:42 +0000 (22:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:17 +0000 (11:43 +0200)
commitafa2d65938fec74baf6307fd906b4f86e4a411ab
treea0d8bc861d02e8f8c2e4c86dc200a7016ded8b02
parentf662d2f4e22e5d5a9215e9c881875a4769494ef6
wifi: mac80211: mlme: unify assoc data event sending

There are a few cases where we send an event to cfg80211
manually, but ieee80211_destroy_assoc_data() also handles
the case of abandoning; some cases don't need an event
and success is handled yet differently.

Unify this by providing a single status argument to the
ieee80211_destroy_assoc_data() function and then handling
all the different cases of events (or no events) there.

This will help simplify the code when MLO support is
added.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c