| From eb9916b7e0226793f14616dc98fda76c4d8337bf Mon Sep 17 00:00:00 2001 |
| From: Howard Hsu <howard-yh.hsu@mediatek.com> |
| Date: Tue, 27 Feb 2024 15:32:06 +0800 |
| Subject: [PATCH 096/104] mtk: hostapd: support vht bfee sts can be up to 0x4 |
| |
| Without this commit, the maximum vht bfee sts can only be 0x3. This commit |
| support to read BF-ANTENNA-5 to set vht bfee sts capability as 4. |
| |
| Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com> |
| --- |
| hostapd/config_file.c | 3 +++ |
| 1 file changed, 3 insertions(+) |
| |
| diff --git a/hostapd/config_file.c b/hostapd/config_file.c |
| index ef9bafb28..b9a062193 100644 |
| --- a/hostapd/config_file.c |
| +++ b/hostapd/config_file.c |
| @@ -1190,6 +1190,9 @@ static int hostapd_config_vht_capab(struct hostapd_config *conf, |
| 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, "[BF-ANTENNA-5]") && |
| + (conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE)) |
| + conf->vht_capab |= (4 << 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); |
| -- |
| 2.39.2 |
| |