From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BB331267731; Tue, 8 Apr 2025 12:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744115075; cv=none; b=hnhEiIWDGY1opub3VpCqUmK3gDZv9ztHZrGA8P08yOUjnrHLJHLRj/+6uv+1OJ1WK7raM9fgr/jz1Ek9tfrn/s4SMpsctbOknitpl2QH6xtjN7wCBsjhKAz6oNBDwbzYlMYl9T5TIF44s9KXxHfIgyaN4buvYN+sNyWARDHOcIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744115075; c=relaxed/simple; bh=cvGnORBftZLwpvAu3SGEYc+mIVUGdduWXVYVj3BUbwY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WDXv9urCpUZMPj2GAvx05ybrgxiyacShJ+Nhzwag4DNEPdIL0v/GFe0D8Dy/qvj7Sdvb1MMOfLSK2xbcdsKCos3WSm9x+oa30ijiInGsVruvIt7duxT5kWfqBemMJj5pkmyzXj4FN62Fwz96XWe1Creeg4M2KOEbV8tX2TGkdtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WYiBbSoj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WYiBbSoj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CAE1C4CEE5; Tue, 8 Apr 2025 12:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744115075; bh=cvGnORBftZLwpvAu3SGEYc+mIVUGdduWXVYVj3BUbwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WYiBbSojiwudppWpXx7XtE07qQDI/5oGJXbGdfabPyxJ0o58CnWKeYKVZ939qRqZ1 uw61RrmPYom4YjcPt8DWR+OsPkBwxfT2JdTTEUi5zGR7CV496y0+DFe/81AmPp59Ig K1QfVsKvR6lGN6KcgkRJJgprXcBzp9is6qhQCQFI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Wetzel , Johannes Berg , Sasha Levin Subject: [PATCH 6.13 300/499] wifi: mac80211: Cleanup sta TXQs on flush Date: Tue, 8 Apr 2025 12:48:32 +0200 Message-ID: <20250408104858.698454136@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104851.256868745@linuxfoundation.org> References: <20250408104851.256868745@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexander Wetzel [ Upstream commit 5b999006e35ea9c11116ddff7e375b256421d0af ] Drop the sta TXQs on flush when the drivers is not supporting flush. ieee80211_set_disassoc() tries to clean up everything for the sta. But it ignored queued frames in the sta TX queues when the driver isn't supporting the flush driver ops. Signed-off-by: Alexander Wetzel Link: https://patch.msgid.link/20250204123129.9162-1-Alexander@wetzel-home.de Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 5ee7fc81ff8cf..de84260247ef1 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -685,7 +685,7 @@ void __ieee80211_flush_queues(struct ieee80211_local *local, struct ieee80211_sub_if_data *sdata, unsigned int queues, bool drop) { - if (!local->ops->flush) + if (!local->ops->flush && !drop) return; /* @@ -712,7 +712,8 @@ void __ieee80211_flush_queues(struct ieee80211_local *local, } } - drv_flush(local, sdata, queues, drop); + if (local->ops->flush) + drv_flush(local, sdata, queues, drop); ieee80211_wake_queues_by_reason(&local->hw, queues, IEEE80211_QUEUE_STOP_REASON_FLUSH, -- 2.39.5