Do not enable HT/VHT when operating in 6 GHz band

Only HE mode is allowed in the 6 GHz band hence do not enable HT/VHT
even if they are configured by the user.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Vamsi Krishna 2019-12-13 14:31:00 +05:30 committed by Jouni Malinen
parent da8570f4c9
commit 0bfc04b8d0

View file

@ -451,6 +451,8 @@ 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;
}
return 0;