mac80211: stop scan before connection
authorDavid Spinadel <david.spinadel@intel.com>
Tue, 17 Mar 2015 17:58:38 +0000 (19:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 30 Mar 2015 08:19:13 +0000 (10:19 +0200)
commit7d830a198689bd33057923e0370147d43241c7f0
treee43608fe1328d857965f6ff2ac3c9fca605cff20
parent21fea567313641b6be69e0c684dc36c871ac848c
mac80211: stop scan before connection

Stop scan before authentication or association to make sure
that nothing interferes with connection flow.

Currently mac80211 defers RX auth and assoc packets (among other ones)
until after the scan is complete, so auth during scan is likely to fail
if scan took too much time.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c