]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/wps/wps_enrollee.c
WPS: Lock AP Setup on multiple AP PIN validation failures
[thirdparty/hostap.git] / src / wps / wps_enrollee.c
index dda8fc6ac2ad8f148711283e4c04b54d2b191849..d02f1c0dadff61fe8d475eaf475a3e19eaedb28b 100644 (file)
@@ -580,6 +580,7 @@ static int wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1)
                wpa_printf(MSG_DEBUG, "WPS: R-Hash1 derived from R-S1 does "
                           "not match with the pre-committed value");
                wps->config_error = WPS_CFG_DEV_PASSWORD_AUTH_FAILURE;
+               wps_pwd_auth_fail_event(wps->wps, 1, 1);
                return -1;
        }
 
@@ -619,6 +620,7 @@ static int wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2)
                wpa_printf(MSG_DEBUG, "WPS: R-Hash2 derived from R-S2 does "
                           "not match with the pre-committed value");
                wps->config_error = WPS_CFG_DEV_PASSWORD_AUTH_FAILURE;
+               wps_pwd_auth_fail_event(wps->wps, 1, 2);
                return -1;
        }