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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Howard Hsu
2026-08-25 11:55:25 +02:00
committed by Felix Fietkau
parent 2d6d69e716
commit 074472e615
+6
View File
@@ -3223,6 +3223,12 @@ void mt7996_mac_add_twt_setup(struct ieee80211_hw *hw,
struct mt7996_twt_flow *flow; struct mt7996_twt_flow *flow;
u8 flowid, table_id, exp; 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)) if (mt7996_mac_check_twt_req(twt))
goto out; goto out;