]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS ER: Fix compiler warning on non-WPS2 builds
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 11 Nov 2010 12:54:18 +0000 (14:54 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 11 Nov 2010 12:54:18 +0000 (14:54 +0200)
src/wps/wps_er.c

index d0f3f411fce3e5d52d1c051b4a586b6c92ecc772..d3aee2d953326faf8a424838e06320a138f25b60 100644 (file)
@@ -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;