Fix build with CONFIG_WPS_OOB

This commit is contained in:
Jouni Malinen 2010-10-06 16:40:20 +03:00 committed by Jouni Malinen
parent 416192628d
commit d9c8a7c44c

View file

@ -826,7 +826,8 @@ int wpas_wps_start_oob(struct wpa_supplicant *wpa_s, char *device_type,
if ((wps->oob_conf.oob_method == OOB_METHOD_DEV_PWD_E ||
wps->oob_conf.oob_method == OOB_METHOD_DEV_PWD_R) &&
wpas_wps_start_pin(wpa_s, NULL,
wpabuf_head(wps->oob_conf.dev_password), 0) < 0)
wpabuf_head(wps->oob_conf.dev_password), 0,
DEV_PW_DEFAULT) < 0)
return -1;
return 0;