From: Jouni Malinen Date: Thu, 22 Jul 2010 02:13:31 +0000 (-0700) Subject: WPS 2.0: Only reject Probe Request frames from WPS 2.0 devices X-Git-Tag: hostap-1-bp~1172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a4477236ebe1ebc808415c8bbd1f8a3ab0f6777;p=thirdparty%2Fhostap.git WPS 2.0: Only reject Probe Request frames from WPS 2.0 devices --- diff --git a/src/wps/wps_validate.c b/src/wps/wps_validate.c index 755f1d4f4..55d3677e9 100644 --- a/src/wps/wps_validate.c +++ b/src/wps/wps_validate.c @@ -1167,7 +1167,12 @@ int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe) attr.authorized_macs_len, 0)) { wpa_printf(MSG_INFO, "WPS-STRICT: Invalid %sProbe Response " "frame", probe ? "" : "Beacon/"); +#ifdef WPS_STRICT_WPS2 + if (wps2) + return -1; +#else /* WPS_STRICT_WPS2 */ return -1; +#endif /* WPS_STRICT_WPS2 */ } return 0;