diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c index 81ac8adc3..400c7b095 100644 --- a/src/drivers/driver_bsd.c +++ b/src/drivers/driver_bsd.c @@ -335,7 +335,7 @@ bsd_set_ieee8021x(void *priv, struct wpa_bss_params *params) HOSTAPD_LEVEL_WARNING, "No 802.1X or WPA enabled!"); return -1; } - if (params->wpa && bsd_configure_wpa(drv) != 0) { + if (params->wpa && bsd_configure_wpa(drv, params) != 0) { hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, HOSTAPD_LEVEL_WARNING, "Error configuring WPA state!"); return -1;