From 074472e615e94db31e23d0fef4a9ca9b085f5ce1 Mon Sep 17 00:00:00 2001 From: Howard Hsu Date: Mon, 27 Jul 2026 15:04:31 +0000 Subject: [PATCH] wifi: mt76: mt7996: reject iTWT setup requests from MLD stations The firmware does not support individual TWT agreements with non-AP MLDs, and the driver only tracks TWT flow state on the default link, which may not be the link the agreement was negotiated on. Reject TWT setup requests from MLD stations instead of programming an unsupported configuration. Signed-off-by: Howard Hsu Link: https://patch.msgid.link/20260727150434.1778520-12-nbd@nbd.name Signed-off-by: Felix Fietkau --- mt7996/mac.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mt7996/mac.c b/mt7996/mac.c index 22aa7213..154a03a7 100644 --- a/mt7996/mac.c +++ b/mt7996/mac.c @@ -3223,6 +3223,12 @@ void mt7996_mac_add_twt_setup(struct ieee80211_hw *hw, struct mt7996_twt_flow *flow; u8 flowid, table_id, exp; + /* the firmware does not support iTWT agreements with MLD peers, and + * driver TWT state is only tracked on the default link + */ + if (sta->mlo) + goto out; + if (mt7996_mac_check_twt_req(twt)) goto out;