Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2546734rdb; Wed, 21 Feb 2024 10:56:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKUuqEXekSQTswmzeOhv6DnOt9BpmAulQT3DhA59uqo3vJ27rTmK4S7illfDefV6/LwPL+OxqlIV/ypsLDwduLDPU2sjr7tM6kzQ/aSA== X-Google-Smtp-Source: AGHT+IEDKvpmua3KjqDyV5+KUjHqSxUIumNpECUTQ/RSRF7t8R6MzP81V1jI9fmO6vem+zyMB1HT X-Received: by 2002:a05:6830:1158:b0:6e4:31e7:c158 with SMTP id x24-20020a056830115800b006e431e7c158mr17640719otq.19.1708541781338; Wed, 21 Feb 2024 10:56:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708541781; cv=pass; d=google.com; s=arc-20160816; b=fAakPhHhlkrOb7u3yp9dXzBksOfnFNcDZ6zSk7hdX8AcZi2FPwMqNZ9ZYxGn4mqx2e c7KgigeNZSKk9RHSsIFnGvPtsDOQbBERDrXGeuNGTBGwAud3WpG4Hny8K2rTjLOSPWXI wAJZvq28rkWS6fI9NW0UOyIZ9C+x72zUXVCzRvYIxrTvuePq6zCwYKeGdhOszpIQaG7P Q3OX0oTbfDdVYbzZtCW14QGFzn2ZcAU6hBvmw6QWHllxJKFAZPIVcYJoh+SQnDAN8+bM RIY8dEZ0JMwJRHGW1y3CnGqfSFh3Q6ALeMUZETGh2wQdT0uRCjTaE+uiI5f8bbk2NxSn V05w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=X2bTp5yNl8/Vdfw9pkPZYGxBOIaW32TNiTJUuAY6pZI=; fh=KLYZroe+hx7PXWHWhHVHm3kyvVqb0KvAA/sfTDNY4Ss=; b=VJd6YrfpfO99sY3mUXUy3K65hMZfxzlNc9qEK11VU8dmGsyu+uQMtQS0h4NaC+zqDC t+hYj2S+xJJmTFV6swbUV+YF1BPv+CEkPG0/+wkoDDEWxGaUC319X5DhFh8eadfBFZKO UbCjJwZzo2qmqdiB0FMVp14VsOqTHl3/GJ6TGYwGO0aU4rb6K1AWQlK91M1sp95iR57U qjqSxAun/g8Qx+/pR+sMF0lCXlQoAin2UB8013hEqLRtmpiPCCv/oSuxsnFIbZ5Ymwt2 PTQ3LWMqGnkovYzvcXwaM5OZBx8tNzpzAp2kqjks0y6UGj1ItdxWqaR6N2ex/qK6eTtS NBTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c0sXQRv8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3879-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z25-20020ac84559000000b0042d4c9bac63si10662729qtn.273.2024.02.21.10.56.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 10:56:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c0sXQRv8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3879-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3879-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C56ED1C24F54 for ; Wed, 21 Feb 2024 18:55:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BCF685651; Wed, 21 Feb 2024 18:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c0sXQRv8" X-Original-To: linux-wireless@vger.kernel.org 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 57ED685940 for ; Wed, 21 Feb 2024 18:55:11 +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=1708541712; cv=none; b=XHJ+J7vfUDxfrLQYG3oBFV8CkZmzlNNYtXY2YYCGICOLvJJzIAzwL/myqPa05K3/Ye7BsBL+KL6xgdSFuWbE1HzfOW4IsEEpIRxxpN9J/CScUBZDX4rIiiXE6dUdoSUKISDkl4F+3r0OHqBVLgOFR+YotlBkxm0XstoilPRk5hk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708541712; c=relaxed/simple; bh=AzAZhTVawrpAHrCPRPkS3Sy3hzsVEHlOpWaWhRG8quM=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=LdzH4Da9lbLF1PAoQDWkse8gckcx+yMFp5t++sUZtgXichcSUpgblD/n8RfquEV7QCcu1nHNE8tuu4xo7ja4hpRIuCzBaagPpDzzGNjl5r/oixEZ7MkKpQ3XnLLg6pmiKz/7Xjt8iB36/1kN8NG93Zlakqx3mHsycOOmbawMaYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c0sXQRv8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCEB9C433C7; Wed, 21 Feb 2024 18:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708541711; bh=AzAZhTVawrpAHrCPRPkS3Sy3hzsVEHlOpWaWhRG8quM=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=c0sXQRv8BzG8qwsq+YcIBdcWkv7U68g7cyJxZfofiU1slFbGMcRk0j1nq05u/5CdD TfvR1SVYFhINjvjm2JvpmoPnl2Kg9jjwREIoXzDq49MDSCwhaWrSAWOW0wNBlxeIgR hzcsRC3N8jp/y1P3jkqHepQRzauvsiqHwjrLmTnZoSCrmVPiHcZIqrOip6rJU+gqny 3xh3eaXVZKXsSF+my4hrJcuOkCfZy1k21r1IVGNjmgf8ybWTHhiiJqgxQtoRziZcaM 4WkQFgQlCiUDIwpOkZ9TOKcO4ln02FZ24ijI/DG3YplFxzIBfmoQu0XTqoJlTuG3rc Zn6Veb6PoU1Tw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: rtlwifi: rtl8192cu: Fix TX aggregation From: Kalle Valo In-Reply-To: <4e936334-5f81-403f-a495-0628ebfb6903@gmail.com> References: <4e936334-5f81-403f-a495-0628ebfb6903@gmail.com> To: Bitterblue Smith Cc: "linux-wireless@vger.kernel.org" , Ping-Ke Shih , Larry Finger User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170854170880.1918455.13905629998790956767.kvalo@kernel.org> Date: Wed, 21 Feb 2024 18:55:10 +0000 (UTC) Bitterblue Smith wrote: > rtl8192cu is checking rtl_mac.tids when deciding if it should enable > aggregation. This is wrong because rtl_mac.tids is not initialised > anywhere. Check rtl_sta_info.tids instead, which is initialised. > > Also, when enabling aggregation also enable RTS. The vendor driver does > this, my router does this. It seems like the thing to do. > > Also also, it seems right to set the AMPDU density only when enabling > aggregation. > > Also also also, delete the unused member rtl_mac.tids and the unused > macros RTL_AGG_ON and RTL_AGG_OFF. > > Naturally, with working AMPDU the download/upload speeds are better. > Before: 59/32 Mbps. > After: 68/46 Mbps. > > Signed-off-by: Bitterblue Smith > Acked-by: Ping-Ke Shih Patch applied to wireless-next.git, thanks. 8ca4cdef9329 wifi: rtlwifi: rtl8192cu: Fix TX aggregation -- https://patchwork.kernel.org/project/linux-wireless/patch/4e936334-5f81-403f-a495-0628ebfb6903@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches