]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Fix HE enablement on 5 GHz with VHT
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Thu, 5 Dec 2019 02:57:28 +0000 (02:57 +0000)
committerJouni Malinen <j@w1.fi>
Mon, 2 Mar 2020 17:54:35 +0000 (19:54 +0200)
Incorrect he_enabled parameter was being passed to
hostapd_set_freq_params() in mesh which caused HE to be not fully
enabled on the 5 GHz band. Fix this by setting freq->he_enabled instead
of vht_freq.he_enabled so that the hostapd_set_freq_params() uses the
correct he_enabled value (and then ends up copying this to
vht_freq.he_enabled in the success case).

Fixes: 6e711e7ab32 ("mesh: Do not enable HE on 5 GHz without VHT")
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
wpa_supplicant/wpa_supplicant.c

index 81ffa7264646329471d264e1fcdd882f906997f9..839afe32d32ba1f2c20ef44f23f55564df241216 100644 (file)
@@ -2494,8 +2494,8 @@ skip_ht40:
        if (!vht_freq.vht_enabled)
                return;
 
-       /* Enable HE for VHT */
-       vht_freq.he_enabled = mode->he_capab[ieee80211_mode].he_supported;
+       /* Enable HE with VHT for 5 GHz */
+       freq->he_enabled = mode->he_capab[ieee80211_mode].he_supported;
 
        /* setup center_freq1, bandwidth */
        for (j = 0; j < ARRAY_SIZE(vht80); j++) {