]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS 2.0: Only reject Probe Request frames from WPS 2.0 devices
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 22 Jul 2010 02:13:31 +0000 (19:13 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 9 Sep 2010 13:07:49 +0000 (06:07 -0700)
src/wps/wps_validate.c

index 755f1d4f401d34d2e59869e991ab511e05c07827..55d3677e9fa29c2a3cbc7ce1f6c9737d54d92dd6 100644 (file)
@@ -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;