wpa_supplicant: Allow disabling VHT SGI capability
This provides similar features to what was already available for HT overrides. Probe Request frames look correct, and VHT capabilities shown in debugfs look as expected. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
parent
02f52ab6f5
commit
fd83a80815
1 changed files with 10 additions and 0 deletions
|
@ -4642,6 +4642,16 @@ void wpa_supplicant_apply_vht_overrides(
|
||||||
vhtcaps_mask->vht_capabilities_info = host_to_le32(ssid->vht_capa_mask);
|
vhtcaps_mask->vht_capabilities_info = host_to_le32(ssid->vht_capa_mask);
|
||||||
|
|
||||||
#ifdef CONFIG_HT_OVERRIDES
|
#ifdef CONFIG_HT_OVERRIDES
|
||||||
|
if (ssid->disable_sgi) {
|
||||||
|
vhtcaps_mask->vht_capabilities_info |= (VHT_CAP_SHORT_GI_80 |
|
||||||
|
VHT_CAP_SHORT_GI_160);
|
||||||
|
vhtcaps->vht_capabilities_info &= ~(VHT_CAP_SHORT_GI_80 |
|
||||||
|
VHT_CAP_SHORT_GI_160);
|
||||||
|
wpa_msg(wpa_s, MSG_DEBUG,
|
||||||
|
"disable-sgi override specified, vht-caps: 0x%x",
|
||||||
|
vhtcaps->vht_capabilities_info);
|
||||||
|
}
|
||||||
|
|
||||||
/* if max ampdu is <= 3, we have to make the HT cap the same */
|
/* if max ampdu is <= 3, we have to make the HT cap the same */
|
||||||
if (ssid->vht_capa_mask & VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX) {
|
if (ssid->vht_capa_mask & VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX) {
|
||||||
int max_ampdu;
|
int max_ampdu;
|
||||||
|
|
Loading…
Reference in a new issue