From patchwork Tue Mar 4 09:53:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj P Kizhakkethil X-Patchwork-Id: 14000348 X-Patchwork-Delegate: quic_jjohnson@quicinc.com 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 6688342077 for ; Tue, 4 Mar 2025 09:54:14 +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=1741082055; cv=none; b=sklYeXz//u4wZqo38d+bN154qO+IK+6aeaskkSfrRtgXNn5DuFwOvzVRqR8ikzjfvcSn7EOi9yFqw+I3ZEi1aM/PAy7PyLcXyaFjZvwunTS9R8xG1XoGxiYLA4dDLlg9r9TcdnvX/MNJHKFKWPZ1ik9ySTzXC6JBa38w6PVav+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741082055; c=relaxed/simple; bh=7WPS4oVdq6yXEYhCudW+D46qcT3a38/VC1nQg3o7B6k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ga7SoX6Bo4WIsj8TNdebmR3v91KcL9zyd55ch3SpHSjYK+0QHak5cL2lay97tOnuKjFXrIeBwSALpTqm2pXqNg6n5K+6X04jPmLBJNVVWdpdlBFbnmKcsDESpK7OjPHeU9UUFppuXJMHvz5lvH3PQVAhhuthiHCsZUi0Mm0Wm7M= 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=K45pTLIA; arc=none smtp.client-ip=205.220.168.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="K45pTLIA" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5249Sm9n012764; Tue, 4 Mar 2025 09:54:12 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= YlJ0qlR0+66MUXiXPJvUVirWZSEYVjo9iceen10ezWQ=; b=K45pTLIA6TpafRvW XF/qoV2BxgkNIIMDeDzk7qUMdArLRRQwnGm6LgZkRjev+sp2oRIgK8gU5GG3Vj/y inW0UjlqLJquO2GiuWVolf4icEe+1ikDiTMh2r88u56wz5+Dkv0SSU6KioPewFVg mqs0MPLTi7gappNCujc12/11eiP35HLOl3UHAGlaF/Q7ZcMiBE2MbXfgrBKwLAFQ jjLnb2NZED8r8Ceweme/CtXIj4LFyBgsAMvPfza6fq5iZia3JndJv7AhC66qkyWq YGE95OpSq0cemEz2AofbGLYUeNf4bs4V0y2VHLjZ7v6/LvSeH16NwVJuyCWjiw0/ 36XL9A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 455p6t1evp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Mar 2025 09:54:11 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 5249sBsH027937 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Mar 2025 09:54:11 GMT Received: from hu-surapk-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 4 Mar 2025 01:54:09 -0800 From: Suraj P Kizhakkethil To: CC: , Sriram R , Suraj P Kizhakkethil Subject: [PATCH v2 2/2] wifi: ath12k: Pass correct values of center freq1 and center freq2 for 320 MHz Date: Tue, 4 Mar 2025 15:23:15 +0530 Message-ID: <20250304095315.3050325-3-quic_surapk@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250304095315.3050325-1-quic_surapk@quicinc.com> References: <20250304095315.3050325-1-quic_surapk@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: D1josDCKOqByJCmw01A6hbupzwQdkMx1 X-Authority-Analysis: v=2.4 cv=P5XAhjAu c=1 sm=1 tr=0 ts=67c6cdc3 cx=c_pps a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=GEpy-HfZoHoA:10 a=Vs1iUdzkB0EA:10 a=COk6AnOGAAAA:8 a=OyfERs9buAgBwf57kVEA:9 a=iQ38tI3Jhiso9qxjJTu-:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: D1josDCKOqByJCmw01A6hbupzwQdkMx1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-04_04,2025-03-03_04,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=999 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2503040083 From: Sriram R Currently, for 320 MHz bandwidth, center frequency1 and center frequency2 are not passed correctly to the firmware. Set center frequency1 as the center frequency of the primary 160 MHz channel segment and center frequency2 as the center frequency of the 320 MHz channel and pass the values to the firmware. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Signed-off-by: Sriram R Signed-off-by: Suraj P Kizhakkethil --- drivers/net/wireless/ath/ath12k/wmi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c index bed8c24aef20..d6068ae10421 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -1043,7 +1043,15 @@ static void ath12k_wmi_put_wmi_channel(struct ath12k_wmi_channel_params *chan, chan->mhz = cpu_to_le32(arg->freq); chan->band_center_freq1 = cpu_to_le32(center_freq1); - if (arg->mode == MODE_11BE_EHT160) { + if (arg->mode == MODE_11BE_EHT320) { + if (arg->freq > center_freq1) + chan->band_center_freq1 = cpu_to_le32(center_freq1 + 80); + else + chan->band_center_freq1 = cpu_to_le32(center_freq1 - 80); + + chan->band_center_freq2 = cpu_to_le32(center_freq1); + + } else if (arg->mode == MODE_11BE_EHT160) { if (arg->freq > center_freq1) chan->band_center_freq1 = cpu_to_le32(center_freq1 + 40); else