From: Lavanya Suresh Date: Tue, 16 Mar 2021 16:01:19 +0000 (+0530) Subject: hostapd: Enable WMM automatically when HE is configured X-Git-Tag: hostap_2_10~333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e72e322539ae36961bb15a3a43d70482bd7d597c;p=thirdparty%2Fhostap.git hostapd: Enable WMM automatically when HE is configured If WMM is not set explicitly in the configuration, it can be set based on HT/HE config. As HE can be used without HT/VHT (which was introduced as a special behavior for the 6 GHz band), add a similar automatic enabling of WMM for HE without HT. Signed-off-by: Lavanya Suresh --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 7bb0f0976..e9aae6dcf 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -107,7 +107,8 @@ static void hostapd_reload_bss(struct hostapd_data *hapd) return; if (hapd->conf->wmm_enabled < 0) - hapd->conf->wmm_enabled = hapd->iconf->ieee80211n; + hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | + hapd->iconf->ieee80211ax; #ifndef CONFIG_NO_RADIUS radius_client_reconfig(hapd->radius, hapd->conf->radius); @@ -1173,7 +1174,8 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first) } if (conf->wmm_enabled < 0) - conf->wmm_enabled = hapd->iconf->ieee80211n; + conf->wmm_enabled = hapd->iconf->ieee80211n | + hapd->iconf->ieee80211ax; #ifdef CONFIG_IEEE80211R_AP if (is_zero_ether_addr(conf->r1_key_holder))