WPS: Ignore PBC-to-PIN change from M1 to M2 as a workaround
authorJouni Malinen <jouni@qca.qualcomm.com>
Sat, 14 Sep 2013 19:02:33 +0000 (12:02 -0700)
committerJouni Malinen <j@w1.fi>
Sat, 14 Sep 2013 19:02:33 +0000 (12:02 -0700)
commitd047ae6278324fdb73c7b8bff22eda71697d7a93
treeaddeddae99adf6237bbf0ab64042f757bf742067
parent79986bf69ea592118ee52c6934dc150bb3611e2e
WPS: Ignore PBC-to-PIN change from M1 to M2 as a workaround

Some APs may incorrectly change Device Password ID from PBC in M1 to
Default PIN in M2 even when they are ready to continue with PBC. This
behavior used to work with earlier implementation in wpa_supplicant, but
commit b4a17a6ea74b2ffba082e05c84730e979513042c started validating this
as part of a change that is needed to support NFC configuration method.

While this kind of AP behavior is against the WSC specification and
there could be potential use cases for moving from PBC to PIN, e.g., in
case of PBC session overlap, it is justifiable to work around this issue
to avoid interoperability issues with deployed APs. There are no known
implementations of PBC-to-PIN change from M1 to M2, so this should not
reduce available functionality in practice.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/wps/wps_enrollee.c