diff --git a/src/wps/wps_enrollee.c b/src/wps/wps_enrollee.c index fbc41e5d2..68bc802b2 100644 --- a/src/wps/wps_enrollee.c +++ b/src/wps/wps_enrollee.c @@ -782,7 +782,8 @@ static enum wps_process_res wps_process_m2(struct wps_data *wps, return WPS_CONTINUE; } - if (wps->wps->ap && wps->wps->ap_setup_locked) { + if (wps->wps->ap && + (wps->wps->ap_setup_locked || wps->dev_password == NULL)) { wpa_printf(MSG_DEBUG, "WPS: AP Setup is locked - refuse " "registration of a new Registrar"); wps->config_error = WPS_CFG_SETUP_LOCKED;