]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix channel switch without 'ht' for HE and EHT modes in 2.4 GHz band
authorPradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
Wed, 8 May 2024 18:04:05 +0000 (11:04 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2024 09:25:55 +0000 (12:25 +0300)
commit7d314d6bdfa6f8cd268f9279513892bf45da8487
treef09d1f99a93a04ce9fd79ba0a131103dd5271ac8
parent99e82880e8cade5661d3b08d726889e58bf5db26
Fix channel switch without 'ht' for HE and EHT modes in 2.4 GHz band

hostapd_cli chan_switch command fails in 2.4 GHz band for HE and EHT
modes if the user does not explicitly specify 'ht' option in the
command.

For example:
"hostapd_cli -i wlan2 chan_switch 10 2412 sec_channel_offset=0 \
 center_freq1=2412 bandwidth=20 blocktx he"

Fix this by enabling HT by default if HE is enabled in the 2.4 GHz and 5
GHz bands. Similarly, enable VHT by default when HE is enabled in the 5
GHz band.

Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
hostapd/ctrl_iface.c