From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E26428030E; Sun, 18 Oct 2026 10:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792320499; cv=none; b=WAXq77ucM2OeQxZOvowHH1xrON+0MS2KlWam8K5NP/nRQaOyp8VuddiqCLzafypWqyo4h3mDk7fE9F7Mu8CRHptixJSj/Z4JcnZjUWu27NPSvIBArbRX1v7r8RJ45jNtizTGMd5spbmrAMRmbq/geUiAwL5kyo74oZwjs+9ppds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792320499; c=relaxed/simple; bh=7QqqKur/X9xQxCGE9ArCDEIvgdV8jsjy0SuiUFNU6ps=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JAjdXwz46hDl9As8Zrrxf2epcywwxwp76E5q68siUPdYubxAk0NqFKMtoj8YkWwgfqeJ119IB2IAa860MI8dOgPUuaDVfwT+7GEcMlgJYTgotztwJlIuLtlMaB99pgyb1mE7upWZpBkc6bC4NgL5PkfCY+0JpUDfQSk59Ahxvs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=Ypdfi1KT; arc=none smtp.client-ip=117.135.210.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Ypdfi1KT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=aV 3QHZpzOHPfDb9zU7r95hbA5Y2mZWIiVFdWzeyQP7c=; b=Ypdfi1KT70xA7ko7vW 05kpE85n6HwAe36ASITupwv2XJi1lKS4eHzPxJic7DPtSLkFOewf7agxiC6ACR17 n7JBwgC5DnYSbKhKco0QddQgHKC5gS7qcVdC+D6ZcqTvQCY7gt4syXeevFn/xoyl 6MQu3pF+eb6jJxHGJcDFFfEco= Received: from pc.localdomain (unknown []) by gzga-smtp-mtada-g0-4 (Coremail) with SMTP id _____wD3H8HBo9RqgGcOBA--.32358S2; Sun, 18 Oct 2026 18:47:31 +0800 (CST) From: Jiale Yao To: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Peter Chiu , MeiChia Chiu , StanleyYP Wang , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Jiale Yao Subject: [PATCH 0/2] wifi: mt76: mt7996: fix TWT and MLO teardown races Date: Sun, 18 Oct 2026 18:47:28 +0800 Message-Id: <20261018104728.865279-1-yaojiale02@163.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wD3H8HBo9RqgGcOBA--.32358S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF4UKrW3Wr4ftF4xuw4UJwb_yoWfCrg_Gr 95JryUK3Wv9F1DAFWfKrnxJrWjk3y8Wa47Cayrt3y7t3yfArs8CFnxKrnxXrs29a1xWrnx Ja98Z34I939F9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRRXo7JUUUUU== X-CM-SenderInfo: x1dryxhdohiji6rwjhhfrp/xtbC8APoI2rUo8PY4QAA3f Fix two teardown issues in mt7996. The first patch removes a TWT flow from the scheduler list when the firmware rejects the agreement. Without this, the flow slot remains on the list while it is available for reuse, which can corrupt the list. The second patch clears every link WCID of an MLD station before the network synchronization in mac80211. The generic callback only clears the default WCID and allows the RX path to retain pointers to the other links while station removal proceeds. The patches address independent paths and remain independently buildable. Jiale Yao (2): wifi: mt76: mt7996: unlink TWT flow if MCU rejects agreement wifi: mt76: mt7996: clear all link WCIDs before RCU removal .../net/wireless/mediatek/mt76/mt7996/mac.c | 4 ++- .../net/wireless/mediatek/mt76/mt7996/main.c | 27 ++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) -- 2.34.1