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:
parent
5cd4740580
commit
75dbf98157
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ static int wps_validate_config_error(const u8 *config_error, int mandatory)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
val = WPA_GET_BE16(config_error);
|
val = WPA_GET_BE16(config_error);
|
||||||
if (val > 18) {
|
if (val > 20) {
|
||||||
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Configuration Error "
|
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Configuration Error "
|
||||||
"attribute value 0x%04x", val);
|
"attribute value 0x%04x", val);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -290,7 +290,7 @@ static int wps_validate_dev_password_id(const u8 *dev_password_id,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
val = WPA_GET_BE16(dev_password_id);
|
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 "
|
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Device Password ID "
|
||||||
"attribute value 0x%04x", val);
|
"attribute value 0x%04x", val);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue