[1/9] hostapd: fix wrong vht configuration capabilities flags

Submitted by Eliad Peller on Oct. 17, 2013, 8:03 a.m.

Details

Message ID 1381997026-2324-2-git-send-email-eliad@wizery.com
State Accepted
Commit 7066a8e7dddcd985b648fe94277a7450228d549e
Headers show

Commit Message

Eliad Peller Oct. 17, 2013, 8:03 a.m.
From: Eliad Peller <eliad@wizery.com>

Wrong capabilities flags were used when certain vht
capabilities were defined.

Signed-hostap: Eliad Peller <eliadx.peller@intel.com>
---
 hostapd/config_file.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index dc68fc8..bee5028 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1060,9 +1060,9 @@  static int hostapd_config_vht_capab(struct hostapd_config *conf,
 	if (os_strstr(capab, "[RX-STBC-1234]"))
 		conf->vht_capab |= VHT_CAP_RXSTBC_4;
 	if (os_strstr(capab, "[SU-BEAMFORMER]"))
-		conf->vht_capab |= VHT_CAP_MU_BEAMFORMER_CAPABLE;
+		conf->vht_capab |= VHT_CAP_SU_BEAMFORMER_CAPABLE;
 	if (os_strstr(capab, "[SU-BEAMFORMEE]"))
-		conf->vht_capab |= VHT_CAP_MU_BEAMFORMEE_CAPABLE;
+		conf->vht_capab |= VHT_CAP_SU_BEAMFORMEE_CAPABLE;
 	if (os_strstr(capab, "[BF-ANTENNA-2]") &&
 	    (conf->vht_capab & VHT_CAP_MU_BEAMFORMER_CAPABLE))
 		conf->vht_capab |= VHT_CAP_BEAMFORMER_ANTENNAS_MAX;