From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796190647; b=5arj09k+KBvXML2yspbUdheydBS06bZjBMbU0oxgXPZKFs5Vz14NcdyHhHYcBKZi8GSk vYVfhvh8dr+C9U4GkIiEKjlRVnm8BUpeKYGYksdzcZbWtV812H7c3x9CdMUE48Hju4Mtg OH3DVf8KAkEOvtE0VbTlBxWnQuuVq9u6kfBKIywVTKcAZ3mZS+IuTgG0Oyo5VnKSa8ctq PORgPjEKvujV+waoHA6Cbf2OpkbIh893UI5puRx8ziu2a4RJt9cwq2kAy79wwZpQx+HU7 jqnYnLWmnwawtePehXhLfT0RYk2oq65u9mes2t8M0kaEf0q0XkSOCrIUaNR3bYt4gQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796190647; h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received: Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: x-originating-ip:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=k4LCw5ek0a+/Y3rtd8FoLSXnceAoovdxugkmNskIhz8=; b=ysIahq33Cx+TycTqlL/Sil73syiRso34pzi6pSNqhYkrdgh0Zoj8MvNj4hgLpdvolIM6 S8ecYRbws+XfqNHmqDfOSHAFuRaLfFuppCZSIK1Wm3vcqXHu2QXR7zxa5QsOeCenc5HUn 2pYTu2ay5qrDmtothYHfma9XA0CFMuqzjlDXztOtwmEUWnE/fm2Q7c6Hb9NV9J5knBvvV 4AsAGRHIozb4cpEUv/37od3XvEhgx4G4vQ4ULRZbh0hk7d4GhpXXrBJoI2ZMWPrLAMBez BgV7hWTv6FlieutVE2nWqHtEzjw/S3qfmd5EHQ2l0QyPOdSKgBo5m9wHNIxoRNWN5YA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=m4017ogW; arc=none smtp.remote-ip=211.75.126.72 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C2E5606A338 for ; Wed, 2 Dec 2026 05:50:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0C2E5606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=m4017ogW X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6B25noAaB728960, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1796190591; bh=k4LCw5ek0a+/Y3rtd8FoLSXnceAoovdxugkmNskIhz8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=m4017ogWdgSFk0dWqtN8SPmpPituHq2rYovG9OFpDPAX3y3gWlFM/A5linR1NS6WV PEuL41xNwA0Y1i6vjbxuCKy32/nHWWvYxpB+T3kgkD9PqWzIe3TAn7r2w9oLtI145x GjudNZjmPC1HvQttzYpL+0z6CCn0Cv51wMFfu4cm1L8wPXphPxX1NBwUF/XKNRVJCB Myeorj90d3jRZ9a401TabxP4/b2hMtys4i9NyQF7gxjOFGMlnyx6nW8aNF3kJbTVUK kJOa5PXVeGCyNP4Oa0Nv5vVDDGfK6Of/0jOItK1aYtlXypF36y2EXmles2FcqDOsfZ JaD5LR8+qHddA== Received: from mail.realtek.com (rtkexhmbs04.realtek.com.tw[10.21.1.54]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6B25noAaB728960 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Dec 2026 13:49:50 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS04.realtek.com.tw (10.21.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Wed, 2 Dec 2026 13:49:50 +0800 Received: from RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef]) by RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef%10]) with mapi id 15.02.2562.056; Wed, 2 Dec 2026 13:49:49 +0800 From: Ping-Ke Shih To: Mehmet Fide CC: Jes Sorensen , Martin Kaistra , Kalle Valo , Taehee Yoo , Andrea Merello , "Bitterblue Smith" , =?iso-8859-1?Q?Georg_M=FCller?= , Shreyansh Khajanchi , "linux-wireless@vger.kernel.org" , "mehmet.fide@screeningeagle.com" Subject: RE: [PATCH rtw-next 1/2] wifi: rtl8xxxu: keep the A-MPDU session state per station Thread-Topic: [PATCH rtw-next 1/2] wifi: rtl8xxxu: keep the A-MPDU session state per station Thread-Index: AQHdgXcuknj0BQQsX0qRiP4MgLkEHLdJPRBQ Date: Wed, 2 Dec 2026 05:49:49 +0000 Message-ID: <5be7b26350544a1ba31468e188e40e53@realtek.com> References: <20261201093430.1771546-1-mehmet.fide@gmail.com> <20261201093430.1771546-2-mehmet.fide@gmail.com> In-Reply-To: <20261201093430.1771546-2-mehmet.fide@gmail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Mehmet Fide wrote: > From: Mehmet Fide >=20 > rtl8xxxu keeps the TX block ack state per TID for the whole device, > which was enough while it supported station mode only. In AP mode only > the first station that sends on a TID gets a block ack session, and > the frames to every other station still get AGG_ENABLE, as the TID is > marked operational for the device. >=20 > Keep the started sessions in rtl8xxxu_sta_info, and aggregate a frame > when mac80211 marks it with IEEE80211_TX_CTL_AMPDU. >=20 > With an RTL8188EU AP (AP mode patches for it applied, initial gain set > to 0x2e) and nine stations downloading at once, two stations got 14 > and 33 Mbit/s and the other seven 0.05 to 1.2 Mbit/s. With this change > each station got 1 to 9 Mbit/s, 35 Mbit/s in total. >=20 > Fixes: b468481c9ad3 ("wifi: rtl8xxxu: Declare AP mode support for 8188f") I'd like to treat this patch as a feature. How about you? > Signed-off-by: Mehmet Fide Acked-by: Ping-Ke Shih [...] > - if (ampdu_enable && test_bit(tid, priv->tid_tx_operational)) > + if (ampdu_enable && (tx_info->flags & IEEE80211_TX_CTL_AMPDU)) At first glance, I'd check IEEE80211_TX_CTL_AMPDU by rtl8xxxu_tx() and=20 concrete into ampdu_enable. But there are many (tricky) conditions to ampdu_enable. Could you help to check if it is possible? And remove the comment " /* (tx_info->flags & IEEE80211_TX_CTL_AMPDU) && */= " by the way, if possible.=20 > tx_desc->txdw1 |=3D cpu_to_le32(TXDESC32_AGG_ENABLE); > else > tx_desc->txdw1 |=3D cpu_to_le32(TXDESC32_AGG_BREAK);