[PATCH] sme: Check for prev_bssid from sme_event_disassoc

Kalle Valo kvalo
Mon Aug 16 01:31:30 PDT 2010

Samuel Ortiz <sameo at linux.intel.com> writes:

> wpa_s->bssid is already cleared by mark_disassoc() when we're getting the
> disassociation event. wpa_s->sme.prev_bssid holds the BSSID we need to check
> for.

With connman, wpasupplicant from hostap-07, wireless-testing kernel
and using nl80211 I had a problem that I was able to connect to my AP
only once, second attempt would always fail due to authentication
failures in wpasupplicant. I had to disable and re-enable wifi in
connman to make it work again. I didn't have this problem with default
ubuntu 2.6.32-24 kernel, though.

I have tested Samuel's patch and I cannot reproduce the problem
anymore. I'll continue testing the path and will report if I find any
regressions. Jouni, please consider applying this patch also to
hostap-07 branch.

Samuel, thank you for fixing this annoying problem.

Kalle Valo

More information about the Hostap mailing list