IBSS/mesh: Skip VHT channel setup with vht_disabled=1
If the VHT capability override vht_disabled=1 is used in the network profile, skip VHT configuration of the local channel. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
adc6a5d81a
commit
b301f54e55
1 changed files with 7 additions and 0 deletions
|
@ -2071,6 +2071,13 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
|
||||||
|
|
||||||
vht_freq = *freq;
|
vht_freq = *freq;
|
||||||
|
|
||||||
|
#ifdef CONFIG_VHT_OVERRIDES
|
||||||
|
if (ssid->disable_vht) {
|
||||||
|
freq->vht_enabled = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_VHT_OVERRIDES */
|
||||||
|
|
||||||
vht_freq.vht_enabled = vht_supported(mode);
|
vht_freq.vht_enabled = vht_supported(mode);
|
||||||
if (!vht_freq.vht_enabled)
|
if (!vht_freq.vht_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue