WPS: Workaround broken Credential encoding from some D-Link APs
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 11 Oct 2010 13:07:49 +0000 (16:07 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 11 Oct 2010 13:07:49 +0000 (16:07 +0300)
commit68d6fe5693309aba0c89fcf2c25d527fd2b2b35a
treeae1f8eeb1b9e73a3604229679899cb55a1f74451
parent5582a5d1b3c4916c42f2916d20dae0545b059546
WPS: Workaround broken Credential encoding from some D-Link APs

At least D-Link DIR-600 and DIR-825 have been reported to include
an extra octet after the Network Key attribute within a Credential
attribute. This can happen at least when they are provisioning an
open network.

Add a workaround to detect this incorrectly encoded attribute and
to skip the extra octet when parsing such a Credential.
src/wps/wps_attr_parse.c