wifi: mac80211: verify state before connection
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 9 Jun 2025 18:35:15 +0000 (21:35 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Jul 2025 09:52:35 +0000 (11:52 +0200)
commiteb7186bd827d055f026e5464c02f95ba6b1f2d03
treeb5eeac391aff93c03185fab4a0b48a4f809b718f
parentbe1ba9ed221ffb95a8bb15f4c83d0694225ba808
wifi: mac80211: verify state before connection

ieee80211_prep_connection is supposed to be called when both bitmaps
(valid_links and active_links) are cleared.
Make sure of it and WARN if this is not the case, to avoid weird issues.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20250609213231.f616c7b693df.Ie983155627ad0d2e7c19c30ce642915246d0ed9d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c