mesh: Fix HE enablement on 5 GHz with VHT

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: 6e711e7ab3 ("mesh: Do not enable HE on 5 GHz without VHT")
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
This commit is contained in:
Pradeep Kumar Chitrapu 2019-12-05 02:57:28 +00:00 committed by Jouni Malinen
parent 8b077a42e5
commit 43282f7329

View 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++) {