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:
parent
da8570f4c9
commit
0bfc04b8d0
1 changed files with 2 additions and 0 deletions
|
@ -451,6 +451,8 @@ int hostapd_set_freq_params(struct hostapd_freq_params *data,
|
||||||
data->bandwidth = (1 << (u8) bw) * 20;
|
data->bandwidth = (1 << (u8) bw) * 20;
|
||||||
data->center_freq1 = freq1;
|
data->center_freq1 = freq1;
|
||||||
data->center_freq2 = freq2;
|
data->center_freq2 = freq2;
|
||||||
|
data->ht_enabled = 0;
|
||||||
|
data->vht_enabled = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue