mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
hostapd: Extend the sounding and BF steering capabilities
Depending on the number of antennas, the txbf sounding and steering capabilites need to be extended. Signed-off-by: Vivek Natarajan <nataraja@qti.qualcomm.com>
This commit is contained in:
parent
087632168b
commit
442ffc51ac
@ -1160,9 +1160,21 @@ static int hostapd_config_vht_capab(struct hostapd_config *conf,
|
||||
if (os_strstr(capab, "[BF-ANTENNA-2]") &&
|
||||
(conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE))
|
||||
conf->vht_capab |= (1 << VHT_CAP_BEAMFORMEE_STS_OFFSET);
|
||||
if (os_strstr(capab, "[BF-ANTENNA-3]") &&
|
||||
(conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE))
|
||||
conf->vht_capab |= (2 << VHT_CAP_BEAMFORMEE_STS_OFFSET);
|
||||
if (os_strstr(capab, "[BF-ANTENNA-4]") &&
|
||||
(conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE))
|
||||
conf->vht_capab |= (3 << VHT_CAP_BEAMFORMEE_STS_OFFSET);
|
||||
if (os_strstr(capab, "[SOUNDING-DIMENSION-2]") &&
|
||||
(conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE))
|
||||
conf->vht_capab |= (1 << VHT_CAP_SOUNDING_DIMENSION_OFFSET);
|
||||
if (os_strstr(capab, "[SOUNDING-DIMENSION-3]") &&
|
||||
(conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE))
|
||||
conf->vht_capab |= (2 << VHT_CAP_SOUNDING_DIMENSION_OFFSET);
|
||||
if (os_strstr(capab, "[SOUNDING-DIMENSION-4]") &&
|
||||
(conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE))
|
||||
conf->vht_capab |= (3 << VHT_CAP_SOUNDING_DIMENSION_OFFSET);
|
||||
if (os_strstr(capab, "[MU-BEAMFORMER]"))
|
||||
conf->vht_capab |= VHT_CAP_MU_BEAMFORMER_CAPABLE;
|
||||
if (os_strstr(capab, "[VHT-TXOP-PS]"))
|
||||
|
@ -582,14 +582,16 @@ wmm_ac_vo_acm=0
|
||||
# 0 = Not supported (default)
|
||||
# 1 = Supported
|
||||
#
|
||||
# Compressed Steering Number of Beamformer Antennas Supported: [BF-ANTENNA-2]
|
||||
# Compressed Steering Number of Beamformer Antennas Supported:
|
||||
# [BF-ANTENNA-2] [BF-ANTENNA-3] [BF-ANTENNA-4]
|
||||
# Beamformee's capability indicating the maximum number of beamformer
|
||||
# antennas the beamformee can support when sending compressed beamforming
|
||||
# feedback
|
||||
# If SU beamformer capable, set to maximum value minus 1
|
||||
# else reserved (default)
|
||||
#
|
||||
# Number of Sounding Dimensions: [SOUNDING-DIMENSION-2]
|
||||
# Number of Sounding Dimensions:
|
||||
# [SOUNDING-DIMENSION-2] [SOUNDING-DIMENSION-3] [SOUNDING-DIMENSION-4]
|
||||
# Beamformer's capability indicating the maximum value of the NUM_STS parameter
|
||||
# in the TXVECTOR of a VHT NDP
|
||||
# If SU beamformer capable, set to maximum value minus 1
|
||||
|
Loading…
Reference in New Issue
Block a user