wifi-scripts: ucode: make he_twt_required depends on he_twt_responder

Doesn't make sense to have he_twt_required enabled without
he_twt_respodner.

Signed-off-by: Zhi-Jun You <hujy652@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/22577
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Zhi-Jun You 2026-03-23 18:06:19 +08:00 committed by Hauke Mehrtens
parent 3b69cf0844
commit 0a6683e4ab

View File

@ -428,7 +428,7 @@ function device_htmode_append(config) {
config.he_spr_psr_enabled = false;
if (!(he_mac_cap[0] & 0x4))
config.he_twt_responder = false;
if (!(he_mac_cap[0] & 0x1))
if (!config.he_twt_responder)
config.he_twt_required= false;
append_vars(config, [