]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: SET ht_capab support for disabling 40 MHz bandwidth
authorSathishkumar Muruganandam <murugana@codeaurora.org>
Wed, 25 Jul 2018 12:46:20 +0000 (18:16 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 21 Aug 2018 16:04:44 +0000 (19:04 +0300)
commit47abe29aa9865f475f0de187e5f3e21e39570fed
tree81e3ccc5458fc17a8050dcf0f53d826ab8a79170
parent307324bf79eb003fb98814e66ecbb1a8d5350083
hostapd: SET ht_capab support for disabling 40 MHz bandwidth

'hostapd_cli SET ht_capab' only checked for [HT40+] or [HT40-] or both
to be present. Based on the offset + or -, secondary_channel is updated
but HT20/VHT20 mode can be brought up only from config file and can't be
done using the SET command when the current HT mode is HT40+ or HT40-.

When managing AP+STA mode from userspace doing hostapd_cli: "disable ->
set channel, ht_capab -> enable" sequence, channel switch from
HT40/VHT40 to HT20/VHT20 was not possible with this SET ht_capab
limitation.

Cover this additional case by resetting secondary_channel to 0 for
HT20/VHT20 when ht_capab has neither [HT40+] nor [HT40-] present.

Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
hostapd/config_file.c