diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 69e895665..efaae8533 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -2049,6 +2049,7 @@ static int hostapd_build_beacon_data(struct hostapd_iface *iface, int ret; struct hostapd_data *hapd = iface->bss[0]; + os_memset(beacon, 0, sizeof(*beacon)); ret = ieee802_11_build_ap_params(hapd, ¶ms); if (ret < 0) return ret;