WPS: Handle Selected Registrar as a union of info from all Registrars
authorJouni Malinen <j@w1.fi>
Sat, 12 Dec 2009 14:54:59 +0000 (16:54 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 12 Dec 2009 14:54:59 +0000 (16:54 +0200)
commit7e683ceeb49eb25ffcf08318da9499aef256a091
treec68688366f251a2282ba548287ecf9ee3fbd6255
parentc1a853438fa2db871c25ef1bf7e617d6ef004487
WPS: Handle Selected Registrar as a union of info from all Registrars

Instead of using the latest selected registrar change, collect selected
registrar information separately from all registrars and use the union
of this information when building the WPS IE for Beacon and Probe
Response frames.

Note: SetSelectedRegistrar UPnP action does not include a unique
identifier, so the ER matching routine is based only on the IP address
of the ER. In theory, there could be multiple ERs using the same IP
address (but different port or URL), so there may be some corner cases
that would not always match the correct ER entry at the AP. Anyway, this
is not really expected to occur in normal use cases and even if it did
happen, the selected registrar information is not any worse than it was
before when only the last change from any registrar for being
advertized.
hostapd/Makefile
src/wps/wps.h
src/wps/wps_i.h
src/wps/wps_registrar.c
src/wps/wps_upnp.c
src/wps/wps_upnp_ap.c [new file with mode: 0644]
src/wps/wps_upnp_i.h
src/wps/wps_upnp_web.c
wpa_supplicant/Makefile