From: Jouni Malinen Date: Fri, 12 Aug 2011 08:58:32 +0000 (+0300) Subject: WPS: Drop responses from ER to a STA that is not in WPS protocol X-Git-Tag: hostap-1-bp~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ca47fff8c5adc74b620d58573efb87e866295ba;p=thirdparty%2Fhostap.git WPS: Drop responses from ER to a STA that is not in WPS protocol If an ER tries to send a message to a STA that is not in the middle of WPS protocol, do not try to deliver that. This can help with issues where an ER takes long time to reply to M1 and another Registrar has already completed negotiation. --- diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index ff1048904..ebafc8660 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -1188,7 +1188,7 @@ static int hostapd_rx_req_put_wlan_response( } #endif /* CONFIG_WPS_STRICT */ - if (!sta) { + if (!sta || !(sta->flags & WLAN_STA_WPS)) { wpa_printf(MSG_DEBUG, "WPS UPnP: No matching STA found"); return 0; }