Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp96066lqt; Wed, 5 Jun 2024 19:07:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUe0/Sy0F9HFZtTGf0yehZHCPNOpr1R4+TnKC+Bs3sE3P60wQZUJPMV3ccyHSWkJzf8LbBiiCBItTAb2Ibl4ECndvoZjdBNSyRIDhPV9g== X-Google-Smtp-Source: AGHT+IE34Hnjeyq/TlENh5Pb+Ij5EPmMzjpPcHK3D/p/KbeBDrsLt2sYeacws0QGTR0F8XWuIVuP X-Received: by 2002:a05:6214:3383:b0:6b0:48:c134 with SMTP id 6a1803df08f44-6b030a74094mr40475196d6.51.1717639640962; Wed, 05 Jun 2024 19:07:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717639640; cv=pass; d=google.com; s=arc-20160816; b=Ol7NLVtPw+MPoo1/lawu5+/t6Wpm7ip+MXeIdoJBA0XpeFAsdF1F4AkWU33pCQKNmJ o6XnfjRjhgNvyubkDL4VcH8NCz0k8b1MOKeOpktKd9YZ+5LO9KuIryvaCMh10HPe7oDf MoXtJQ78FJNuPphjLYmSiRD541rHELpODH62b8UJOQE0VciXGY3EXlGwSp1JHaBpEc/x byNHWs7MXFUX1EqsI9dpCEEp2EopDsaYZeHaZP2YxU2UCngJVqzmhNgC2hZORd+CcmLa KV3S1A/c50c4Z9E5kwYYTsF6oWgH/Wa+Jbw7/GshOwXnp0hVQ1KmVv7gkeuCzKDpyIu9 bCNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xo+dRSSiGx6tb5CUOHQoXBNXcFbOU3SmB+4PVbM3LxM=; fh=OtSS4Qwc2M6Nx291wz0xGPt6MVgzn2kgh3qQFsiYTMU=; b=a+vQEysyJSUZSWD2xXj88brpgVb8mQA6vnQ+xhGy/l6HA2thQs81RkAuCf6bQ4zlK7 9SVbv9JtJyA458s5A/uWrrMUdAElMexUCPvZrCVr6JG673o3Pc/wIkVmQSPdq2ThPoh0 A7cGj9/EuPAd0hpgVrTP9FkgIyRAkCJXZM9j/Q+ZMPvcqWJOA20KEYJuNUtQDY/Qqavb J6XnrHtTuiaf/3I5PdIo/YwIxbHsF4Me+vxSTMwFJshlsqW/5+fqvOlCYe789OtUj9xh EGWETfCWWKsDe9C9XEc65aCeizzmLWxY/MFfsfPOz2vPcEr/5GQwpjVF+wkEIHEnYoiB KiJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OVmlhUwr; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04fa1e94esi4387386d6.457.2024.06.05.19.07.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 19:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OVmlhUwr; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 08F291C218D2 for ; Thu, 6 Jun 2024 02:07:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEE18171A7; Thu, 6 Jun 2024 02:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="OVmlhUwr" X-Original-To: linux-wireless@vger.kernel.org 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 29EB81798C for ; Thu, 6 Jun 2024 02:07:15 +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=1717639637; cv=none; b=esFB7xQHI9gMpsATaDL1728soEkhVrmUT4/c9/nZtELBZYJq+uuVlKlpvQfAWpHoO9HUFpJ8Va4EcnumWj5dMThn3EnwtXOHJfhw9J+mvtKX4d3U9b4OJpftTcxts88FoenBxbycqyIE9EMkk3KqBQUgG1gy374hZwXqGxH5jOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717639637; c=relaxed/simple; bh=9+tKp1mSo16zp0DXjc1fSarDiR06RXtx/7ECqVjsCCk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qeZ9o2h1dpv1PsAuRUh5elny0XpDTEkpBG+SMv0DWC8RQ/g9VcOfUtWOL5wmQ4thTUT+pZF22e3AzNClCt62ZtqDW3yqHzdGLolnYDelQOGas92dkhhEJDMJztad5LWU+BrlyDMGN1505YHlzo2dmUhASCBU+vo5eCMTfh0j2BI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=OVmlhUwr; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 455KxBkw007623; Thu, 6 Jun 2024 02:07:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= xo+dRSSiGx6tb5CUOHQoXBNXcFbOU3SmB+4PVbM3LxM=; b=OVmlhUwr1uGnt+Zc G8xjaoEboOVNqm/rRoc42NgR0JvBCltuIHcxmnNyxmSM+3/q8fqh6J7Ex6yOERhC /rcykBgp3zav6SOgckd7T+mffg/4v9xgYnmddrgbZgadRcSEbvBUNMd9/HMLwGj5 mZpvCVlyEshvwynHm3RH6JSLMP0gMlMyngJiONDCoVjtUn4qGkzeNJ5fTtBH/HV5 RjY+LLMQSbdwPfsyRddce6sBi3dKHRvJwVo/+XE82qdZtNymtQs+k5ZAXDzuKC3s c/0LvrdNHmiLFVA8709oJ4umkqDkotfPnqX/3GG7DeDOfFA+To4PfxOjFW+au4+7 uEt6rg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yj7urbqyk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jun 2024 02:07:07 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 456276El021585 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jun 2024 02:07:06 GMT Received: from bqiang-SFF.qca.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 5 Jun 2024 19:07:05 -0700 From: Baochen Qiang To: CC: , , Subject: [PATCH 1/2] wifi: cfg80211: fix typo in cfg80211_calculate_bitrate_he() Date: Thu, 6 Jun 2024 10:06:52 +0800 Message-ID: <20240606020653.33205-2-quic_bqiang@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240606020653.33205-1-quic_bqiang@quicinc.com> References: <20240606020653.33205-1-quic_bqiang@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 8HLEKbboUkjMg-WfA2Wv0ZCOFRRUR7q0 X-Proofpoint-GUID: 8HLEKbboUkjMg-WfA2Wv0ZCOFRRUR7q0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-05_08,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=959 malwarescore=0 mlxscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406060014 rates_996 is mistakenly written as rates_969, fix it. Fixes: c4cbaf7973a7 ("cfg80211: Add support for HE") Signed-off-by: Baochen Qiang --- net/wireless/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/wireless/util.c b/net/wireless/util.c index 2bde8a354631..39e19e2386b7 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1504,7 +1504,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate) 5120, /* 0.833333... */ }; u32 rates_160M[3] = { 960777777, 907400000, 816666666 }; - u32 rates_969[3] = { 480388888, 453700000, 408333333 }; + u32 rates_996[3] = { 480388888, 453700000, 408333333 }; u32 rates_484[3] = { 229411111, 216666666, 195000000 }; u32 rates_242[3] = { 114711111, 108333333, 97500000 }; u32 rates_106[3] = { 40000000, 37777777, 34000000 }; @@ -1529,7 +1529,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate) else if (rate->bw == RATE_INFO_BW_80 || (rate->bw == RATE_INFO_BW_HE_RU && rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_996)) - result = rates_969[rate->he_gi]; + result = rates_996[rate->he_gi]; else if (rate->bw == RATE_INFO_BW_40 || (rate->bw == RATE_INFO_BW_HE_RU && rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_484)) -- 2.25.1