]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS-STRICT: Update valid Device Password ID and Config Error range
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 26 Nov 2013 18:04:56 +0000 (20:04 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jan 2014 19:44:31 +0000 (21:44 +0200)
Accept the new values defined for WPS NFC.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/wps/wps_validate.c

index e3662562b40aebb81c4dab5fca48c1e439183be8..1c6a14bce4bcd31edbc8e67bee3338d6a1cbdece 100644 (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;