diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 6a9b07e86..d6e3e4ede 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -3831,7 +3831,7 @@ static int hostapd_change_config_freq(struct hostapd_data *hapd, struct hostapd_freq_params *old_params) { int channel; - u8 seg0, seg1; + u8 seg0 = 0, seg1 = 0; struct hostapd_hw_modes *mode; if (!params->channel) {