On Wed, Jun 13, 2012 at 9:51 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > From: David Spinadel <david.spinadel@xxxxxxxxx> > > Stop connection monitor poll during disassociation. > This clears the polling flags and if a scan was > deferred it will be run. > > Without this fix, if a scan was deferred due to > connection monitoring while disassociation happens, > this scan blocks further scan requests until interface > down/up which causes problems connecting to another AP. > > Signed-off-by: David Spinadel <david.spinadel@xxxxxxxxx> > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > --- [...] > @@ -1329,6 +1329,8 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata, > u32 changed = 0; > u8 bssid[ETH_ALEN]; > > + ieee80211_stop_poll(sdata); > + > ASSERT_MGD_MTX(ifmgd); it doesn't matter much, but maybe better add the call after the function "prologue" (lockdep, WARN_ONs, ...)? Eliad. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html