[PATCH] scan: reset normal scan counter when a connection succeeds

Jouni Malinen j at w1.fi
Thu Apr 24 05:48:53 EDT 2014


On Thu, Apr 24, 2014 at 08:45:36AM +0300, Ilan Peer wrote:
> The normal scan counter is used to trigger a few normal scans before a
> scheduled scan is issued.  The reason for doing this is that we get
> results faster and some drivers support more SSIDs per normal scan
> than during sched scan.  After 2 normal scans, we start using
> sched_scan.  But the problem is that when a connection succeeds, we do
> not reset this counter, so we will keep using sched scans.
> 
> To fix this, now we reset the counter when we switch to WPA_COMPLETED
> state.

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list