Skip to content

Commit

Permalink
hostapd: keep HE capability after channel switch in AP+STA/Mesh
Browse files Browse the repository at this point in the history
The auto-ht option already kept HT and VHT support, but wasn't updated
to support HE (11ax).

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
  • Loading branch information
arnout authored and dangowrt committed Dec 21, 2021
1 parent 3684b49 commit 0210f37
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -235,13 +235,14 @@

--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -2883,6 +2883,11 @@ static int hostapd_ctrl_iface_chan_switc
@@ -2883,6 +2883,12 @@ static int hostapd_ctrl_iface_chan_switc
return 0;
}

+ if (os_strstr(pos, " auto-ht")) {
+ settings.freq_params.ht_enabled = iface->conf->ieee80211n;
+ settings.freq_params.vht_enabled = iface->conf->ieee80211ac;
+ settings.freq_params.he_enabled = iface->conf->ieee80211ax;
+ }
+
for (i = 0; i < iface->num_bss; i++) {
Expand Down

0 comments on commit 0210f37

Please sign in to comment.