From: Jouni Malinen Date: Tue, 26 Nov 2013 18:04:56 +0000 (+0200) Subject: WPS-STRICT: Update valid Device Password ID and Config Error range X-Git-Tag: hostap_2_1~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75dbf981579fdfe04bdda937a446093868850241;p=thirdparty%2Fhostap.git WPS-STRICT: Update valid Device Password ID and Config Error range Accept the new values defined for WPS NFC. Signed-hostap: Jouni Malinen --- diff --git a/src/wps/wps_validate.c b/src/wps/wps_validate.c index e3662562b..1c6a14bce 100644 --- a/src/wps/wps_validate.c +++ b/src/wps/wps_validate.c @@ -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;