[patch] WPS: SelectedRegistrar expiration timeout for PIN connection

Jouni Malinen j at w1.fi
Sun Nov 1 15:23:02 EST 2009


On Fri, Oct 30, 2009 at 06:48:23PM +0200, Andriy Tkachuk wrote:

> Though we have such timeout (see $subj) when handling  
> SetSelectedRegistrar UPnP message from external registrar (see  
> wps_registrar_set_selected_registrar() in src/wps/wps_registrar.c -  
> http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob;f=src/wps/wps_registrar.c;h=cfe63aeb5e6cdf07ed3649844cc6cb8fae194461;hb=HEAD#l2687), 
> it looks like we don't have the one when internal registrar is activated  
> for PIN connection. Thus we set the SelectedRegistrar flag when AP is  
> activated for PIN connection  
> (http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob;f=src/wps/wps_registrar.c;h=cfe63aeb5e6cdf07ed3649844cc6cb8fae194461;hb=HEAD#l534) 
> but we don't ever reset it - not by some timeout, nor when registration  
> succeeded. This lead to situations when AP everlasting declare that it  
> is activated for WPS PIN connection when in reality it is not.

Thanks! Applied.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list