WPS 2.0: Only reject Probe Request frames from WPS 2.0 devices
This commit is contained in:
parent
e69b86b71d
commit
6a4477236e
1 changed files with 5 additions and 0 deletions
|
@ -1167,7 +1167,12 @@ int wps_validate_beacon_probe_resp(const struct wpabuf *wps_ie, int probe)
|
||||||
attr.authorized_macs_len, 0)) {
|
attr.authorized_macs_len, 0)) {
|
||||||
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid %sProbe Response "
|
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid %sProbe Response "
|
||||||
"frame", probe ? "" : "Beacon/");
|
"frame", probe ? "" : "Beacon/");
|
||||||
|
#ifdef WPS_STRICT_WPS2
|
||||||
|
if (wps2)
|
||||||
|
return -1;
|
||||||
|
#else /* WPS_STRICT_WPS2 */
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif /* WPS_STRICT_WPS2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue