From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 ACE2B3B95F0 for ; Thu, 14 May 2026 05:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778735610; cv=none; b=GnOD9rIJfxW57KzehN7TU9N8agr6eFDBIs1nEDmehTTAFrxs0nBykdf1YqiaXhgXjKZ5mHs3fwxu4KSM6VtAtaPDVeI6hMBhd3i/OJhq6hgo2zGXsUOt1VTG7gzgHRbik/IGV8tlY1c9/3rbY33Fnrl5Q13+4CuSlvtP+fVjNx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778735610; c=relaxed/simple; bh=VJEi+LQjQvpb2sBPTQT1s79F8yD/a6RpDiryNNJ90X8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hgsErdDUEMw2+vg5vmctp0xEsjZ0WhGOBw20ujj8SAYWt61VDSkFp5g/VR21Xwen9CikJwcDrkKmjIU6qqB01GsKkptSDWL6Vc6wOvSNZukaECc7gHSH2Cj3/d9mMmfO3zO8+QsWj/opfCVVU9rDTZsVhrMW4oRtlcVMA2JuGd0= 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=YVTUu3HB; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Bu2Kg7KM; arc=none smtp.client-ip=205.220.168.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="YVTUu3HB"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Bu2Kg7KM" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64E1rSRN1764143 for ; Thu, 14 May 2026 05:13:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /5XMCJRSZDY0XJc+QOdRMaoXWGMiebQeGgCNmc9Dhbs=; b=YVTUu3HB0OTW8g6S R9JolPsDru3tA2U0h83Ia7AiNOV20/+g7nHPh8dtQ64n/gt9wr44JLeIe+Ttrodx 1ZMGUHQzywewPAW1GQ1l4bM9ATYLhgiUQ6gpeH/7JXBwLIwQSDpWdbigaZEqhAtR PMl8XvAlReEfSe4hgiJ9wwhYSG1WleqysuXTTSAqPpMtP750KWrxGPtbjcq4FUB4 5a+Wrwk8rLTIEEmuT0b6ibbziYLc6d/DQR3WhcmOOUAbs6bO47rd1TTsnLDFN2LK 0dK3UDAlDMtgDeFSYLOmrhofF9RP0UdOMOwepIREPFNpfHGszISEUPJNUgOkV4jE 3STyjw== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e554a8hew-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 14 May 2026 05:13:27 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2ba838d3fa4so82971515ad.3 for ; Wed, 13 May 2026 22:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778735607; x=1779340407; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/5XMCJRSZDY0XJc+QOdRMaoXWGMiebQeGgCNmc9Dhbs=; b=Bu2Kg7KM0cRiA6S1QedtfjPnqPhg2oEVy7n1zh8hxlyqctNy1CLyLCbceWvmhjV5HM Ie4gd/jCngrdQDrjbmzZZCCFx4d6XQVBpiMWgLy/5Uk0HaMbKcrYH/QYzjroE4Q0Mlth 7xoUzbSjJHbtje/J0sdAKDtaNxPGmoBzmfYrsCkNDLAJ07jISDB3DVJWirRZ+YtAm7Lx tRTMNnF1jH3jsH++9GiWQcKnCH/SvsgbCYpAWWqNZ1gKTcWEmfBX0qNup3ZNUV1iVhJc H4J3L7t/3XGSF8QOFlWk+Sk+/v6NyCmIF0ecQrkQ5byE+NKveIjB14GpX30leqXTWUEM bMSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778735607; x=1779340407; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/5XMCJRSZDY0XJc+QOdRMaoXWGMiebQeGgCNmc9Dhbs=; b=Xb/71ymI9FFZEbV7jCc/Ip4suNhnFNdwELyNgtwDYE4wM4J11D5ui3CdmP/HkgkQap gPX5jcyJY16CRT/I9eHFL0YSXBEGBhegnh0zXLPlm+rtxBuyb7Fd360mMKQUm0P3hkKH m4+f7jWYR+QwTnqKNocauU+kmYngkRR4EyOXIQytBMJf69af2RrH7pkBl3OK/cqkJlv6 9GXmCW3PSHWsd0n43myF4kEUks2QO5puYHbu763zTaWbssAPKRtONsnbb+XN46vFkmdV /wy4t5DsGxPk3lxojW4EOWAKeaE5zJkzO3Bi8vzH/T4LFappKL7cnWdftEOLb4nxN7wi Mp0A== X-Forwarded-Encrypted: i=1; AFNElJ9R0K9BZcHnzodF35R6NR6EfzIyh9rrY9XNjQ2Cw6xG1RntHbAgRZel5n/72ONmiJd8+N6YMWPf2w4i0rM=@vger.kernel.org X-Gm-Message-State: AOJu0YzpftHWDvSFY4mW/pMl6k197c4KzThLbs5EVd3vo8ipTjB0x8ps xkxiNYwM3daOrJLgcMqp2T4tTzdTguWkqnlzwGIyjkQ7/Dl+J3lRTxZshc65A1M1FNxGUevz+tK NXqaDjycsmZBRwntGpZBjXQGAxtmL7HBoL2YcB2W9G6+xd8ANqeIV4C5jGGAgm7msdrqPv6c4/i 44EQ== X-Gm-Gg: Acq92OHFZgIx800tpo7uVqSiL0iskHfKWA97jC6VbCfQ921IiGiFsrsybXfKx3ffFur +hV5R6P2C/KOqgm5dw5tcPfUTdT+M1GOnSlHFscRs4sqSlQ/jFPxpMvAqXaDhL/IBQ+QpDIXJDu 45iks/XcNoALHNXFapSP1b6EHppyKMLQXzzl9UGqi9AkDBOgjKX4F3FmACcO9pvQSUh+HxelsK4 vNBEL2ARQ4q2jkiuajYRY+PsI0qDizRkwI0k24xqrgjbt4RoTmlvke7tCZGNf2bUXKO7otufB/q 0YP7Izzwwzk2FGauHjbOK36P8Rac27hP/0Ptj3nAPC9eBK4DSUhd6Khjoz/qXW396hFSPOZ1KD5 AX2HbPkIYWG0EMqvxhyhfWPuLwYjKpTOLgDBPu9OXvw88/z1a5vwxN4MqMbfyzw== X-Received: by 2002:a17:90b:3c8e:b0:367:e244:4c40 with SMTP id 98e67ed59e1d1-368f7a19606mr6334598a91.26.1778735607036; Wed, 13 May 2026 22:13:27 -0700 (PDT) X-Received: by 2002:a17:90b:3c8e:b0:367:e244:4c40 with SMTP id 98e67ed59e1d1-368f7a19606mr6334573a91.26.1778735606406; Wed, 13 May 2026 22:13:26 -0700 (PDT) Received: from [10.152.199.23] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-368eea199fbsm5025698a91.17.2026.05.13.22.13.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2026 22:13:26 -0700 (PDT) Message-ID: <781c9c44-bd2e-4d12-b29b-daff0f86aea0@oss.qualcomm.com> Date: Thu, 14 May 2026 10:43:22 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH ath-current] wifi: ath12k: fix EHT TX MCS limitation due to wrong 20 MHz-only parsing To: Baochen Qiang , Jeff Johnson Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260514-ath12k-fix-20mhz-only-mcs-map-v1-1-a38d4a9b21a2@oss.qualcomm.com> Content-Language: en-US From: Rameshkumar Sundaram In-Reply-To: <20260514-ath12k-fix-20mhz-only-mcs-map-v1-1-a38d4a9b21a2@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: UgF6GH0RNEqx-X5LYQtGecQtB5kyc78N X-Authority-Analysis: v=2.4 cv=Wag8rUhX c=1 sm=1 tr=0 ts=6a0559f7 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=j4ogTh8yFefVWWEFDRgCtg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=Iu_Yf0RYHa-hsXmiW2AA:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-ORIG-GUID: UgF6GH0RNEqx-X5LYQtGecQtB5kyc78N X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTE0MDA0OSBTYWx0ZWRfX/iYuponF7B9A NzVme//di/SlpjA4/IgJvPxBBifjWAY8KKt8oymEPII9vQ2xK2B9FQfwBXvcDUqdmvDiaSManXZ 1rx1a3urGDCE7w1alQUWWat6zfZOrLEH1f+WzD9PT7CYkDXyC1xhRWX0lbvtRtKdDHjLZYpYf3e bLdxe93VJ66GViCjNza/lgHhlGwnn/FQcb6gV97DzDKUVm2aVMTZkfEHmG4Hsv0uY+5yq+WvWos O22Z9iJrFDTHUG1I8jamChUO6qB+zkc32ZNHzAc+onZBmXEaMO06DbDuUafBJ/ujGqA5BXqAarA yiQlqXDtuWziXlrgbwG3ZzGUQ1oG+8l6ep499bq4xE8+4m7xy6W8F8wxvP4v0JRFvzHLjTTQrx0 uiYYxLC0aEcJAG8mrLJ6RT1TvV4JacpPxyp968kShViYbwu15G+bQmiCE4dBDasHAxDg1rxVwgZ 8jGeJlcCRtne6eoCSYA== 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-05-14_01,2026-05-13_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 priorityscore=1501 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605140049 On 5/14/2026 9:02 AM, Baochen Qiang wrote: > When connecting to an AP configured for EHT 20 MHz with a full EHT > MCS/NSS map (supporting MCS 0-13) > > Supported EHT-MCS and NSS Set > EHT-MCS Map (BW <= 80MHz): 0x444444 > .... .... .... .... .... 0100 = Rx Max Nss That Supports EHT-MCS 0-9: 4 > .... .... .... .... 0100 .... = Tx Max Nss That Supports EHT-MCS 0-9: 4 > .... .... .... 0100 .... .... = Rx Max Nss That Supports EHT-MCS 10-11: 4 > .... .... 0100 .... .... .... = Tx Max Nss That Supports EHT-MCS 10-11: 4 > .... 0100 .... .... .... .... = Rx Max Nss That Supports EHT-MCS 12-13: 4 > 0100 .... .... .... .... .... = Tx Max Nss That Supports EHT-MCS 12-13: 4 > > TX throughput is observed to be significantly lower than expected. > Investigation shows that TX rates are limited to EHT MCS 11, even though > the AP advertises support for EHT MCS 12/13. > > The root cause is an incorrect parsing of the Supported EHT-MCS and NSS > Set element in ath12k_peer_assoc_h_eht(). > > IEEE Std 802.11be-2024 Figure 9-1074as describes the format for 20 > MHz-Only Non-AP STAs. > > IEEE Std 802.11be-2024 Figure 9-1074at describes the format for all > other AP and non-AP STAs. > > Currently the first format is parsed when the peer advertises no wider > HE channel width support, without considering whether it is an AP or a > non-AP STA. This is incorrect: the peer AP's capabilities must be parsed > using Figure 9-1074at even when it operates on 20 MHz only. Parsing it > as Figure 9-1074as causes rx_tx_mcs13_max_nss to be interpreted as zero, > which is then passed to firmware, leading firmware to assume the peer > does not support MCS 13 and to limit TX rates at MCS 11. > > Fix this by parsing the Figure 9-1074as format only when the peer is a > 20 MHz-Only non-AP STA, i.e. when the local interface operates as AP or > mesh point. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3 > > Fixes: 6c95151e2e77 ("wifi: ath12k: Add EHT MCS/NSS rates to Peer Assoc") > Signed-off-by: Baochen Qiang Reviewed-by: Rameshkumar Sundaram