]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: SelectedRegistrar expiration for internal PIN registrar
authorAndriy Tkachuk <andriy.v.tkachuk@globallogic.com>
Sun, 1 Nov 2009 20:19:02 +0000 (22:19 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 1 Nov 2009 20:19:02 +0000 (22:19 +0200)
commit72ffc08242cc1b8200ceb4af7bf7b723e2a07012
tree59d84d337025f57e5f1c254399a792fc7f8c5fa2
parent2e7144451697738f55f2864cbc5d7116443fe6c8
WPS: SelectedRegistrar expiration for internal PIN registrar

Though we have such a timeout when handling SetSelectedRegistrar UPnP
message from an external registrar, it looks like we don't have one when
the internal registrar is activated for PIN connection. Thus we set the
SelectedRegistrar flag when AP is activated for PIN connection but we
never reset it - not by some timeout, nor when registration succeeds.
This lead to situations where AP everlastingly declare that it is
activated for WPS PIN connection when in reality it is not.

Use the same timeout (and also success with PIN) to clear the selected
registrar flag when using internal registrar, too.
src/wps/wps_registrar.c