WPS 2.0: Disable WPS workarounds if CONFIG_WPS_STRICT is defined

This commit is contained in:
Jouni Malinen 2010-05-26 11:16:54 +03:00 committed by Jouni Malinen
parent 5314d652d4
commit dcc4d8be75
7 changed files with 59 additions and 13 deletions

View file

@ -865,6 +865,7 @@ static int hostapd_rx_req_put_wlan_response(
*/
sta = ap_get_sta(hapd, mac_addr);
#ifndef CONFIG_WPS_STRICT
if (!sta) {
/*
* Workaround - Intel wsccmd uses bogus NewWLANEventMAC:
@ -878,6 +879,7 @@ static int hostapd_rx_req_put_wlan_response(
break;
}
}
#endif /* CONFIG_WPS_STRICT */
if (!sta) {
wpa_printf(MSG_DEBUG, "WPS UPnP: No matching STA found");