Do not enable HT/VHT for 6 GHz band 20 MHz width channels also

The previous commit had a rebasing issue that ended up covering only the
center_segment0 != 0 case. These were supposed to apply for all 6 GHz
band cases.

Fixes: 0bfc04b8d0 ("Do not enable HT/VHT when operating in 6 GHz band")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Vamsi Krishna 2020-01-13 14:59:06 +05:30 committed by Jouni Malinen
parent d0e116f61f
commit 1011c79900

View file

@ -468,9 +468,9 @@ int hostapd_set_freq_params(struct hostapd_freq_params *data,
data->bandwidth = (1 << (u8) bw) * 20;
data->center_freq1 = freq1;
data->center_freq2 = freq2;
data->ht_enabled = 0;
data->vht_enabled = 0;
}
data->ht_enabled = 0;
data->vht_enabled = 0;
return 0;
}