Skip to content

Commit f8860ce

Browse files
lucacoelhojmberg-intel
authored andcommitted
mac80211: bail out from prep_connection() if a reconfig is ongoing
If ieee80211_hw_restart() is called during authentication, the authentication process will continue, causing the driver to be called in a wrong state. This ultimately causes an oops in the iwlwifi driver (at least). This fixes bugzilla 195299 partly. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195299 Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 2f242bf commit f8860ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎net/mac80211/mlme.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4382,6 +4382,10 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
43824382
if (WARN_ON(!ifmgd->auth_data && !ifmgd->assoc_data))
43834383
return -EINVAL;
43844384

4385+
/* If a reconfig is happening, bail out */
4386+
if (local->in_reconfig)
4387+
return -EBUSY;
4388+
43854389
if (assoc) {
43864390
rcu_read_lock();
43874391
have_sta = sta_info_get(sdata, cbss->bssid);

0 commit comments

Comments
 (0)