hostapd: Fix wrong VHT configuration capabilities flags
authorEliad Peller <eliad@wizery.com>
Sun, 27 Oct 2013 16:59:37 +0000 (18:59 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 16:59:37 +0000 (18:59 +0200)
Wrong capabilities flags were used when certain VHT
capabilities were defined.

Signed-hostap: Eliad Peller <eliadx.peller@intel.com>

hostapd/config_file.c

index fdd7504..35ea3b1 100644 (file)
@@ -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;