WPS: Fix MAC Address inside Credential be that of Enrollee's
authorJouni Malinen <j@w1.fi>
Wed, 18 Nov 2009 22:31:57 +0000 (00:31 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 18 Nov 2009 22:31:57 +0000 (00:31 +0200)
commit4bdd556886fea5790aa4d56e2f416cc82ebf15b5
treeb360b657c3a6fc42b5acf778c2c28733a92572b3
parent62fa124ce2fb44f722ca26388956cc99f3115ada
WPS: Fix MAC Address inside Credential be that of Enrollee's

The WPS 1.0h specification is quite unclear on what exactly should be
used as the MAC Address value in the Credential and AP Settings. It
looks like this should after all be the MAC Address of the Enrollee,
so change Registrar implementation to use that address instead of the
AP BSSID.

In addition, add validation code to the Enrollee implementation to
check the MAC Address value inside Credential (and also inside AP Settings)
to make sure it matches with the Enrollee's own address. However, since
there are deployed implementations that do not follow this interpretation
of the spec, only show the mismatch in debug information to avoid breaking
interoperability with existing devices.
src/wps/wps.h
src/wps/wps_enrollee.c
src/wps/wps_registrar.c