[patch] WPS: SelectedRegistrar expiration timeout for PIN connection

Andriy Tkachuk andriy.v.tkachuk
Fri Oct 30 09:48:23 PDT 2009

Hello folks.

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 - 
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 
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.

Maybe I'm missing something and it is how it was designed - not sure. So 
I tried to solve it somehow with attached patch. Comments are welcome!

Thank you,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: selreg-tmo-pin.pach
Url: http://lists.shmoo.com/pipermail/hostap/attachments/20091030/064db953/attachment.txt 

More information about the Hostap mailing list