From: Jouni Malinen Date: Thu, 11 Nov 2010 12:54:18 +0000 (+0200) Subject: WPS ER: Fix compiler warning on non-WPS2 builds X-Git-Tag: hostap-1-bp~852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c17b1e274fd4b0db4629c123ea2cac2980d14ecd;p=thirdparty%2Fhostap.git WPS ER: Fix compiler warning on non-WPS2 builds --- diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index d0f3f411f..d3aee2d95 100644 --- a/src/wps/wps_er.c +++ b/src/wps/wps_er.c @@ -1461,7 +1461,9 @@ void wps_er_set_sel_reg(struct wps_er *er, int sel_reg, u16 dev_passwd_id, struct wps_er_ap *ap; struct wps_registrar *reg = er->wps->registrar; const u8 *auth_macs; +#ifdef CONFIG_WPS2 u8 bcast[ETH_ALEN]; +#endif /* CONFIG_WPS2 */ size_t count; union wps_event_data data;