wpa_supplicant: why is BSS blacklisted twice ?

Jouni Malinen j at w1.fi
Sat Apr 14 14:10:14 PDT 2018


On Mon, Apr 09, 2018 at 03:08:58PM +0000, Jean Pierre TOSONI wrote:
> Reading the code in wpa_supplicant.c, in function wpas_connection_failed(),
> I see that a BSS may be blacklisted twice in a row.
> 
> This happens if another AP is known for the same network, resulting in the
> blacklist count being directly set to 2.
> 
> So I just wonder why it is needed to blacklist twice? Anybody knows?

The comments in that function explain the high level reason for this.
The matching code is in wpa_scan_res_match() for determining when to
consider a BSS blacklisted where the default behavior is to require at
least count 2 if multiple networks are enabled.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list