developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 7e0e24bc6487a6664b6fa209758d00773ed38a8d Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: Howard Hsu <howard-yh.hsu@mediatek.com> |
| 3 | Date: Tue, 27 Feb 2024 15:32:06 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 074/126] mtk: hostapd: support vht bfee sts can be up to 0x4 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 5 | |
| 6 | Without this commit, the maximum vht bfee sts can only be 0x3. This commit |
| 7 | support to read BF-ANTENNA-5 to set vht bfee sts capability as 4. |
| 8 | |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 9 | Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com> |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 10 | --- |
| 11 | hostapd/config_file.c | 3 +++ |
| 12 | 1 file changed, 3 insertions(+) |
| 13 | |
| 14 | diff --git a/hostapd/config_file.c b/hostapd/config_file.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 15 | index 50d63e259..c1bc344dd 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 16 | --- a/hostapd/config_file.c |
| 17 | +++ b/hostapd/config_file.c |
| 18 | @@ -1190,6 +1190,9 @@ static int hostapd_config_vht_capab(struct hostapd_config *conf, |
| 19 | if (os_strstr(capab, "[BF-ANTENNA-4]") && |
| 20 | (conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE)) |
| 21 | conf->vht_capab |= (3 << VHT_CAP_BEAMFORMEE_STS_OFFSET); |
| 22 | + if (os_strstr(capab, "[BF-ANTENNA-5]") && |
| 23 | + (conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE)) |
| 24 | + conf->vht_capab |= (4 << VHT_CAP_BEAMFORMEE_STS_OFFSET); |
| 25 | if (os_strstr(capab, "[SOUNDING-DIMENSION-2]") && |
| 26 | (conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE)) |
| 27 | conf->vht_capab |= (1 << VHT_CAP_SOUNDING_DIMENSION_OFFSET); |
| 28 | -- |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 29 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 30 | |