mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
hostapd: Fix wrong VHT configuration capabilities flags
Wrong capabilities flags were used when certain VHT capabilities were defined. Signed-hostap: Eliad Peller <eliadx.peller@intel.com>
This commit is contained in:
parent
6651f1f9f1
commit
7066a8e7dd
@ -1060,9 +1060,9 @@ static int hostapd_config_vht_capab(struct hostapd_config *conf,
|
||||
if (os_strstr(capab, "[RX-STBC-1234]"))
|
||||
conf->vht_capab |= VHT_CAP_RXSTBC_4;
|
||||
if (os_strstr(capab, "[SU-BEAMFORMER]"))
|
||||
conf->vht_capab |= VHT_CAP_MU_BEAMFORMER_CAPABLE;
|
||||
conf->vht_capab |= VHT_CAP_SU_BEAMFORMER_CAPABLE;
|
||||
if (os_strstr(capab, "[SU-BEAMFORMEE]"))
|
||||
conf->vht_capab |= VHT_CAP_MU_BEAMFORMEE_CAPABLE;
|
||||
conf->vht_capab |= VHT_CAP_SU_BEAMFORMEE_CAPABLE;
|
||||
if (os_strstr(capab, "[BF-ANTENNA-2]") &&
|
||||
(conf->vht_capab & VHT_CAP_MU_BEAMFORMER_CAPABLE))
|
||||
conf->vht_capab |= VHT_CAP_BEAMFORMER_ANTENNAS_MAX;
|
||||
|
Loading…
Reference in New Issue
Block a user