]> git.ipfire.org Git - thirdparty/hostap.git/commit
Enable TWT responder AP role only if IEEE 802.11ax/HE is enabled
authorManaswini Paluri <quic_mpaluri@quicinc.com>
Wed, 6 Jul 2022 13:57:59 +0000 (19:27 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 13 Sep 2022 01:24:03 +0000 (04:24 +0300)
commit122cdd59258e208f334aa3ada20643cf78c0b057
treea22c9d83fdcb54fb7c8172617e879fea2f007047
parented442e8dc7d94f7b0293d5427af47fb96d224643
Enable TWT responder AP role only if IEEE 802.11ax/HE is enabled

Set TWT responder configurator in the driver parameters only when the AP
is configured with HE enabled. This was already done for the extended
capability bit generation in commit 8de0ff0fa1de ("HE: Add TWT responder
extended capabilities field"), but this parameter for the driver command
to start the AP in _ieee802_11_set_beacon() missed the condition.

Move the ieee80211ax check into the common helper function to cover both
cases. In addition, add a check for disable_11ax to cover the case where
HE is disabled for a specific BSS.

Fixes: ab8c55358e10 ("HE: Dynamically turn on TWT responder support")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/ieee802_11_he.c
src/ap/ieee802_11_shared.c