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:
parent
1f41e2ce27
commit
fc5aed2ff2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue