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 <lavaks@codeaurora.org>
This commit is contained in:
parent
43a65b40b9
commit
e72e322539
1 changed files with 4 additions and 2 deletions
|
@ -107,7 +107,8 @@ static void hostapd_reload_bss(struct hostapd_data *hapd)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (hapd->conf->wmm_enabled < 0)
|
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
|
#ifndef CONFIG_NO_RADIUS
|
||||||
radius_client_reconfig(hapd->radius, hapd->conf->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)
|
if (conf->wmm_enabled < 0)
|
||||||
conf->wmm_enabled = hapd->iconf->ieee80211n;
|
conf->wmm_enabled = hapd->iconf->ieee80211n |
|
||||||
|
hapd->iconf->ieee80211ax;
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211R_AP
|
#ifdef CONFIG_IEEE80211R_AP
|
||||||
if (is_zero_ether_addr(conf->r1_key_holder))
|
if (is_zero_ether_addr(conf->r1_key_holder))
|
||||||
|
|
Loading…
Reference in a new issue