Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 78EF353E0B for ; Thu, 19 Mar 2026 06:56:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773903379; cv=none; b=Jb59kP36u9oTtHfsRZ218bGXcppbfWA1e2izfPSLUyBevh7bOtnL7FJOCJ9vQIwTEZ9MHdpAXSdRDrRb5r11J3EIvvv+YUN1WGe2Im3l/Rb0BKfJTfJhmoTTibVob0uMKWQ4rrkJBr2W64T7zx1rIcqJixILbTjIx8Yf4K0vyJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773903379; c=relaxed/simple; bh=ZHp0NI0zVd5rXj2O0HIm72xLUyfMQCEDbvRyJEcGKXU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZJoPEUwv9UO73xEEk2IzVpt1oNzXVrhVxz8CglN0cF90K62SBCPAt7JRx9dcnHauqXECfcrA4IStlj+SysiDUrBbDWHXtKgmbAVXLQZ6Kpsohw/Mc+LZSt+ctudX2oY1FtqbwAfwWmOoj+gmTr9iESViE3VBOGCvfC4zYT+eTnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=FMW02Pfw; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XXPT5xyc; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="FMW02Pfw"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XXPT5xyc" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62J5XIEa1369704 for ; Thu, 19 Mar 2026 06:56:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=kDL4GcIf7vkqMUVqyyXog+v/pbycVtTqd3k v4sU5Zg4=; b=FMW02PfwyAZSj+X9IA9gdAqsRCeenSU7BewnFtYPzkls4x+37dc BXQlmuo9v8UEZMsaACXft0Jyp1OBeeoKjR9yA+nIjp+Ex1t7+R9IbxdaaEpSrwGs NoK34rtCKCdxkZ+p8zjNkh0b+W+oaSTEI5Ofoi0KtRqD5Qpbpnp+RI5Z2HB9QX/1 y552boR/B1Ee6+pC6Yjxl/o81qeD7zLB3RcZvxil2vGFU6uI1bRvE43nGft4NzBy bqwlMGP2W3Ca8iY5Ifob7hFei98PBqgRyvid2Nio1HO/Ri2EN/JM8UQCWACA0q+C 6QNXoiYd7m78VwJp5vMrRYkZ3PKKI5cvEiA== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d0akxgb1n-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 19 Mar 2026 06:56:17 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3594620fe97so3455976a91.1 for ; Wed, 18 Mar 2026 23:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773903376; x=1774508176; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kDL4GcIf7vkqMUVqyyXog+v/pbycVtTqd3kv4sU5Zg4=; b=XXPT5xyc7vShYSnyppmtQtQPRSQQ8/Qgz+dRRv7aasDuu8nBLMM7MlUwVEUvRwIT7P 6lNQyzyiV28gbB66DJaN7bSJygfGjB0c5JwMILtXK5VaSEJN+mpsviTxm5vPY7Y3VZyN lCPpgUahyhtrUKEkQsrEN6LlaHQJE5EiqtJwF1H8rB/BHA1xwlvfIh35eDY9a3rFMOyP Azdea3aPy/0nbI4PBqcwJA1OR4nU5wrZyDhvCMDifz3QQ2qFVCyRY8UfRkflZcR5STcM ghTRlt7lWyeFWLam3DVkYX4U/0WNl3ooSYif/gui05pDvWgRGkWX1xuMd7/iTbZKD5nR Domw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773903376; x=1774508176; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kDL4GcIf7vkqMUVqyyXog+v/pbycVtTqd3kv4sU5Zg4=; b=kNfEJKFbQpHwZmsp+faloNm8hqnsvOlqQViGbV2wwTKYvaIf+epHF6NOVTnXwGRD0M DPrOaZ/tyu6OyMMRjvVHRu2Pqf1ScK3GK+xEM23ZXTl3paNY3awUIXBc1YFjej5K3H4N EUma/6aYJPI3kWVMdoO+Bko26BK1BhtvgZMKClUDAZy7OVMiHCkXSYpSHO5JvKWTmy7k Ply3NjZA6AU7Ku0KpcQdrptz2U9xZ2wWZYD+uJA+ExKUsUxb6QCiivhI4d/May6r6jFZ jBoAe6nR6nTHYSAyIPouMg7Wz0GeWBIy5A1ZrVisTWwMIITry5RuKcQxCffFVsBV2w4+ S2ng== X-Gm-Message-State: AOJu0YxqECZcSvOjaXzNWZi8sR+qjGC1Ra2CVxGsZw5ZBxPZoQTwUntz dkzDxjT+5dU4Z8XkUJ1rtzo5kmmOdXKLrHzaS5gByYwk5QOR8VBEPehkaQGX37CdTvW3XIWEYCe EqpZi8muPGyLW/nN9ZWIfBZSmKVEatu77VWOIoTih+iOUZWeTvmF2nvYWcgNQe2IboGzyfA== X-Gm-Gg: ATEYQzwfNWZOqXX4n13BvC9SIG62zxZ+ZX3jmTEumpqWwlYz2Y0FEaDHCHTfLnKHWup Q8ydXIsbRjZGEDNqisnJRXGQWXPAZv7IUjOaKdlvxxYVScMkFQhUPyBqHmjHlJw8idrsI9jJABT 3dJPZhYFR9Pv2tHjtFyDEFPrgXr/fH0j87tfgPP4T1kw1nWyN0niQSuE/mv++W6oDTEjN9HKdYr XrUSh6c3OLCRkd+I5KRaqPyI+mXTwLprQQCSUKv58IJSndOJftLbpwUOO11pzOyWyqo3U7+wJed 3fWPR6cs2H6uo61+cICzxNGpLOqT5oO1rvV+InwCHyD4MphJgHtZzEh/DTqldCyxhoTOWYs6eze LHpecxs3ysj65FJg3yWgnEmeGyWNa4WF7chc3tAZS1JxqXw9O1o/snvzU1jN0+FpLUW5B1oOoex pR/w8iRxdbUD6RRY/Lk7cPsspElFA6usp1wmeaO2Gg8ImaQg== X-Received: by 2002:a05:6a20:d504:b0:398:7a23:2779 with SMTP id adf61e73a8af0-39b99ff5f44mr5798908637.52.1773903376227; Wed, 18 Mar 2026 23:56:16 -0700 (PDT) X-Received: by 2002:a05:6a20:d504:b0:398:7a23:2779 with SMTP id adf61e73a8af0-39b99ff5f44mr5798883637.52.1773903375660; Wed, 18 Mar 2026 23:56:15 -0700 (PDT) Received: from hu-rrajkuma-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c741e583626sm4223557a12.30.2026.03.18.23.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 23:56:15 -0700 (PDT) From: Reshma Immaculate Rajkumar To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Reshma Immaculate Rajkumar Subject: [PATCH ath-next v3] wifi: ath11k: Pass the correct value of each TID during a stop AMPDU session Date: Thu, 19 Mar 2026 12:26:08 +0530 Message-Id: <20260319065608.2408179-1-reshma.rajkumar@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzE5MDA1MyBTYWx0ZWRfX7+6c7hTbPaZO leTGRqFkJ1y4wxS9V1AaT1fpj0RUaMCiLD12tzj8q/ICkPuK3H/gwI8o3wyn47GoUaoS2psuVBq O5vn9QKGx8F+mlNvX/0G3glC8A8nIsfnmx51bBcs1n2dbT9/884LnFNcJgniuLtCXr6ws5GSdtP OErOVdkn+MDuckMsdr76Zy7CuQCOH/idCGO8Wk0FDwZWCpvE/Lh13OUK/wMhPvGurVbYYBvhWi4 DKNVEGfB8AcKCuGR/pve1TkqSDmdPGJ7b+QjBfPYoI2ThDGNX41Dx7ch0HSQHJIpNg4Uk/W7JGY g0FoAUHec0bEM1lkGMPqKa8qRrzrJ6SH4AMHoFuFJ8MELWmpb0iyNFBcVkBqVlvz7TPiF6zdZtW 8Db6pZGDPNDQyD20S+cKWf7CRDKfd2bj50iTvJ+dJttwvw39cw/0Y7d90Yi7LfWGc0Ul6hsk728 5ZI7/JR662cvkvDsE9Q== X-Proofpoint-GUID: nnA737DkEXhwDW9A0KSHryg7PfcC1Qcw X-Authority-Analysis: v=2.4 cv=ZeMQ98VA c=1 sm=1 tr=0 ts=69bb9e11 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=vkfXM0Oplov9zySb:21 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=JY0uwkuL_i1N_za9zYAA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-ORIG-GUID: nnA737DkEXhwDW9A0KSHryg7PfcC1Qcw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-19_01,2026-03-17_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 clxscore=1015 spamscore=0 suspectscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603190053 During ongoing traffic, a request to stop an AMPDU session for one TID could incorrectly affect other active sessions. This can happen because an incorrect TID reference would be passed when updating the BA session state, causing the wrong session to be stopped. As a result, the affected session would be reduced to a minimal BA size, leading to a noticeable throughput degradation. Fix this issue by passing the correct argument from ath11k_dp_rx_ampdu_stop() to ath11k_peer_rx_tid_reo_update() during a stop AMPDU session. Instead of passing peer->tx_tid, which is the base address of the array, corresponding to TID 0; pass the value of &peer->rx_tid[params->tid], where the different TID numbers are accounted for. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1 Fixes: d5c65159f2895 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Reshma Immaculate Rajkumar --- v2: * Added QTI yearless copyright v3: * Removed QUIC copyright information --- drivers/net/wireless/ath/ath11k/dp_rx.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index 49d959b2e148..85defe11750d 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: BSD-3-Clause-Clear /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ #include @@ -1110,9 +1110,8 @@ int ath11k_dp_rx_ampdu_stop(struct ath11k *ar, struct ath11k_base *ab = ar->ab; struct ath11k_peer *peer; struct ath11k_sta *arsta = ath11k_sta_to_arsta(params->sta); + struct dp_rx_tid *rx_tid; int vdev_id = arsta->arvif->vdev_id; - dma_addr_t paddr; - bool active; int ret; spin_lock_bh(&ab->base_lock); @@ -1124,15 +1123,14 @@ int ath11k_dp_rx_ampdu_stop(struct ath11k *ar, return -ENOENT; } - paddr = peer->rx_tid[params->tid].paddr; - active = peer->rx_tid[params->tid].active; + rx_tid = &peer->rx_tid[params->tid]; - if (!active) { + if (!rx_tid->active) { spin_unlock_bh(&ab->base_lock); return 0; } - ret = ath11k_peer_rx_tid_reo_update(ar, peer, peer->rx_tid, 1, 0, false); + ret = ath11k_peer_rx_tid_reo_update(ar, peer, rx_tid, 1, 0, false); spin_unlock_bh(&ab->base_lock); if (ret) { ath11k_warn(ab, "failed to update reo for rx tid %d: %d\n", @@ -1141,7 +1139,8 @@ int ath11k_dp_rx_ampdu_stop(struct ath11k *ar, } ret = ath11k_wmi_peer_rx_reorder_queue_setup(ar, vdev_id, - params->sta->addr, paddr, + params->sta->addr, + rx_tid->paddr, params->tid, 1, 1); if (ret) ath11k_warn(ab, "failed to send wmi to delete rx tid %d\n", base-commit: 7bbb578fc43e7dcb8690cfc98844bd67bc311e8a -- 2.34.1