Initialize the variables before using it in channel update
seg0 and seg1 variables can have any initial value, but they may cause the BSS to have a wrong configuration later on in cases where the separate center frequencies are not set. Signed-off-by: Baligh Gasmi <gasmibal@gmail.com>
This commit is contained in:
parent
97403b7fef
commit
acea0654f0
1 changed files with 1 additions and 1 deletions
|
@ -3831,7 +3831,7 @@ static int hostapd_change_config_freq(struct hostapd_data *hapd,
|
||||||
struct hostapd_freq_params *old_params)
|
struct hostapd_freq_params *old_params)
|
||||||
{
|
{
|
||||||
int channel;
|
int channel;
|
||||||
u8 seg0, seg1;
|
u8 seg0 = 0, seg1 = 0;
|
||||||
struct hostapd_hw_modes *mode;
|
struct hostapd_hw_modes *mode;
|
||||||
|
|
||||||
if (!params->channel) {
|
if (!params->channel) {
|
||||||
|
|
Loading…
Reference in a new issue