[PATCH 5/8] WPS: Select only correct AP following provisioning

Eyal Shapira eyal
Mon Dec 23 13:35:36 PST 2013

On Mon, Dec 23, 2013 at 8:11 PM, Jouni Malinen <j at w1.fi> wrote:
> On Thu, Dec 19, 2013 at 12:03:27PM +0200, Arik Nemtsov wrote:
>> If there are other saved enabled networks a scan following
>> a successful WPS provisioing may connect to one of those
>> instead of the AP with which the provisioning was just done.
>> Avoid that by allowing only selection of a scan result with
>> a matching bssid to the WPS AP. This will be limited to a number
>> of scans following WPS provisioing using the same counter
>> wpa_s->after_wps used to optimize scan frequency post provisioning.
> Are you trying to address selection of the same BSS here? Different
> networks (SSID) should already be handled by other network blocks
> getting disabled temporarily. I'm not sure that I would agree with the
> connection having to be with the same BSS, though, so I would like to
> understand why this change would be needed.

Sorry for the noise. Please drop this.
It's an old patch being upstreamed only now. The problem it fixes was
already fixed differently in
ec947ff "WPS: Reenable the networks disabled during wpa_wpas_reassoc"
as you've indicated.

More information about the Hostap mailing list