WPS-STRICT: Update valid Device Password ID and Config Error range

Accept the new values defined for WPS NFC.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-11-26 20:04:56 +02:00 committed by Jouni Malinen
parent 5cd4740580
commit 75dbf98157

View file

@ -267,7 +267,7 @@ static int wps_validate_config_error(const u8 *config_error, int mandatory)
return 0;
}
val = WPA_GET_BE16(config_error);
if (val > 18) {
if (val > 20) {
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Configuration Error "
"attribute value 0x%04x", val);
return -1;
@ -290,7 +290,7 @@ static int wps_validate_dev_password_id(const u8 *dev_password_id,
return 0;
}
val = WPA_GET_BE16(dev_password_id);
if (val >= 0x0006 && val <= 0x000f) {
if (val >= 0x0008 && val <= 0x000f) {
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Device Password ID "
"attribute value 0x%04x", val);
return -1;