aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_upnp_ap.c
Commit message (Collapse)AuthorAgeFilesLines
* WPS: Fix clearing of SetSelectedRegistrar with multiple interfacesJouni Malinen2012-02-131-7/+9
| | | | | | | | | | | | | | | | | | The SetSelectedRegistrar timeout was registered for each registrar instance, but the only context pointer (struct subscription *) was shared with each registrar which resulted in the timeout getting cancelled for some of the registrar instances before the selected registrar (ER) information was cleared. In addition, when an ER unsubscribed from receiving events, the selected registrar information got cleared only from a single registrar. Fix these issues by registering a pointer to the registrar instance in the timeout and by iterating over all UPnP interfaces when removing a subscription. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* WPS 2.0: Add strict validation of SetSelectedRegistrar attributesJouni Malinen2010-09-091-0/+2
|
* WPS 2.0: Add wildcard AuthorizedMACs if Enrollee address is not knownJouni Malinen2010-09-091-0/+6
|
* WPS 2.0: Add support for AuthorizedMACs attributeJouni Malinen2010-09-091-0/+8
| | | | | | | | | | Advertize list of authorized enrollee MAC addresses in Beacon and Probe Response frames and use these when selecting the AP. In order to provide the list, the enrollee MAC address should be specified whenever adding a new PIN. In addition, add UUID-R into SetSelectedRegistrar action to make it potentially easier for an AP to figure out which ER sent the action should there be multiple ERs using the same IP address.
* WPS 2.0: Add new attributes and update version negotiationJouni Malinen2010-09-091-5/+0
| | | | | | | This adds definitions and parsing of the new attributes that were added in WPS 2.0. In addition, the version negotiation is updated to use the new mechanism, i.e., accept everything received and use the new Version2 attribute in transmitted messages.
* WPS: Handle Selected Registrar as a union of info from all RegistrarsJouni Malinen2009-12-121-0/+80
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.