From 2d5e0d78e98a8209a53ee8f5539fef751fc23adc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 22 Sep 2010 19:19:33 -0700 Subject: [PATCH] WPS ER: Fix debug message for protocol run done case This is not a failure and should not be indicated as such in the debug log. --- src/wps/wps_er.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index d51d53ba3..4726e5261 100644 --- a/src/wps/wps_er.c +++ b/src/wps/wps_er.c @@ -1563,6 +1563,10 @@ static void wps_er_ap_process(struct wps_er_ap *ap, struct wpabuf *msg) wps_deinit(ap->wps); ap->wps = NULL; } + } else if (res == WPS_DONE) { + wpa_printf(MSG_DEBUG, "WPS ER: Protocol run done"); + wps_deinit(ap->wps); + ap->wps = NULL; } else { wpa_printf(MSG_DEBUG, "WPS ER: Failed to process message from " "AP (res=%d)", res);