From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795477091; b=AxnFGJtN7Np7Uwdq6kuMor4COrZX10eI60p/hK/L0np11C5oPyUDhBhXtzXd6E2WkIpR t3Ayb1k0c9wiDvjtT3Z8EHriHHZbRq2Ym/5HJikxkeH1rVmWnCplN2BL09q39kPxo91xW 3mJFm1aw6zR61zvRzlVGuuqwRJtRso9P+Av9vlzdcJolSzacgi0COjvz+tBy071lwxi+r MZGhKAwGy0xgppUOt6dzv8d1LB1kcYPwwt8Y0MLmES0uSHbb68UyKTCRDMBZhmSWDaSCy fzg5rOtg4RRPQQJzKR6dE4WGoTaYPFOMn5g6WzuVJ01a8K4VKc96k5LY9686har+uiA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795477091; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:CC:Subject:In-Reply-To: References:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=M3MtwKOuFl+dVkPkClM84aCSsGawhbDUmnS+lMhewPQ=; b=oJzW9rZSfy1tfj+LcSHVau5RF3zT8/HU9AOyzGugr/XPrkmuL5WBxo2XauX/vtbnzKI5 L05dlUem5NnRXjaNZAh621H7Dhg5j6ahvPwTzK/7sCwEAbjmSkj5hde+z2nx9l8yg6uQq Sj0/WPYl6xdC1SvDfUqsy+q2VOGjC5tbLnevH9LqbeYBBYpBvxl86QlBzbQ3H7BLCXJ9M qAvfyluYl0GZIv5AyV691/8XK9qekZ/nDEZg+G8TbrBYBGytUyCD7vfdCs5XDG2/eYbKu JGlLO8Z4/XKbfSzU/rMAoacgNBmkfSHqhh4sR+qwciklOvTBl9AxE8s4DBj5F7NOoig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=V+tCuVhR; arc=none smtp.remote-ip=91.218.175.211 Received: from mta0.migadu.com (out-211.mta0.migadu.com [91.218.175.211]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11F80606A32A for ; Mon, 23 Nov 2026 23:38:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11F80606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=V+tCuVhR X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=M3MtwKOuFl+dVkPkClM84aCSsGawhbDUmnS+lMhewPQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795477088; v=1; x=1796081888; b=V+tCuVhRkK36JSDiJhj096DwOKeAPFfpVSTBAfAjziHF8MvyomP5IOYxzhhmUGqaqfjwez7O AQwr4vyKqWtMt4LHOXX66WlFvS9sr6lrjEJ4haDoweKx+ABe81Ip8IvNnUxBuXpyMkHF5fyMoEw vwJ1Ry2sjkQfBpDNjMZcVJdE= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id ec0efb3956ba0c06; Mon, 23 Nov 2026 23:38:06 +0000 X-Mizu-Trace-ID: ec0efb3956ba0c06 X-Migadu-Flow: FLOW_OUT Date: Tue, 24 Nov 2026 00:38:04 +0100 From: Luka Gejak To: Mehmet Fide , Ping-Ke Shih CC: Sascha Hauer , Zong-Zhe Yang , Tzu-En Huang , Yan-Hsuan Chuang , Kalle Valo , Stanislaw Gruszka , Brian Norris , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, mehmet.fide@screeningeagle.com Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_rtw-next_v4_2/4=5D_wifi=3A_rtw88=3A_repo?= =?US-ASCII?Q?rt_the_frames_purged_from_the_TX_report_queue?= In-Reply-To: <20261121191528.591334-3-mehmet.fide@gmail.com> References: <20261121191528.591334-1-mehmet.fide@gmail.com> <20261121191528.591334-3-mehmet.fide@gmail.com> Message-ID: <16DD9A9C-4388-447E-8E36-8F65DDDEFE51@linux.dev> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On November 21, 2026 8:15:26 PM GMT+01:00, Mehmet Fide wrote: >From: Mehmet Fide > >Frames waiting for a TX report of the firmware are freed with >skb_queue_purge() when the report times out and in rtw_core_deinit(). >mac80211 gets no TX status for them, and the frames it keeps for the >TX status of user space stay pending until ieee80211_free_hw() warns. >On an RTL8822CE, after a firmware crash and an unbind: > >rtw88_8822ce 0000:01:00.0: failed to get tx report from firmware >[...] >Have pending ack frames! >WARNING: net/mac80211/main.c:1761 at ieee80211_free_ack_frame+0x4c/0x70 [mac80211], CPU#1: sh/24725 >Call trace: > ieee80211_free_ack_frame+0x4c/0x70 [mac80211] (P) > idr_for_each+0x6c/0xf4 > ieee80211_free_hw+0x30/0x8c [mac80211] > rtw_pci_remove+0xd8/0xf0 [rtw88_pci] > >Free them with ieee80211_purge_tx_queue() instead, which reports them >as dropped. Clear the TX status of a frame when it is queued, as >rtw_tx_report_handle() does, so that a purged frame does not report >its leftover TX control data as status flags and link ID. > >Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver") >Signed-off-by: Mehmet Fide >--- > Looks good to me, Reviewed-by: Luka Gejak Best regards, Luka Gejak