1
0
Fork 0
forked from mirror/openwrt

wifi-scripts: ucode: use correct antenna count for SU beamformee

The hostapd configuration for SU-BEAMFORMEE was incorrectly using the
beamformer antenna count instead of the beamformee antenna count for the
[BF-ANTENNA-N] capability string.

Fix this by using config.beamformee_antennas instead.

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22511
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Andrew Sim 2026-03-20 06:21:26 +01:00 committed by Christian Marangi
parent 1f41e2ce27
commit fc5aed2ff2
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7

View file

@ -351,7 +351,7 @@ function device_htmode_append(config) {
if (vht_capab & 0x800 && config.su_beamformer)
config.vht_capab += '[SOUNDING-DIMENSION-' + min(((vht_capab >> 16) & 3) + 1, config.beamformer_antennas) + ']';
if (vht_capab & 0x1000 && config.su_beamformee)
config.vht_capab += '[BF-ANTENNA-' + min(((vht_capab >> 13) & 3) + 1, config.beamformer_antennas) + ']';
config.vht_capab += '[BF-ANTENNA-' + min(((vht_capab >> 13) & 3) + 1, config.beamformee_antennas) + ']';
/* supported Channel widths */
if ((vht_capab & 0xc) == 8 && config.vht160 >= 2)