Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5680296pxv; Wed, 21 Jul 2021 11:09:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuYxN0wSrSdCUso80Pk3/o8E6eOB8OGx3PR/Qm+vb2SVParEuLUEt74d9d4KQ5bIfeEGt1 X-Received: by 2002:aa7:ccc1:: with SMTP id y1mr49463215edt.321.1626890954527; Wed, 21 Jul 2021 11:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626890954; cv=none; d=google.com; s=arc-20160816; b=YLTin8EHXPcE57maSOZC4K7eTzHkoYixRLFz4F+1D/cC5lKJM0Um65PerYhUVauPrM xWbvG4nz0i7fZW7LNwn7U64NN1aOQGZ7DADGlLWlVOF7jZWWVR9UXQYRsUcBlS1UAzBg op8HtRkxKtlyw5H96Eps1dQTF9YN+fpxP0+gXDzFPpICkA/Fr7MuNmSt2RP2AxnmzA4W fu1+fBbCkqbmyjmR0Cboxip70qQoiSQzmX+wx8Hcp7TNBhSg8V5BgNpZGbX9k4ofdVlw VJ/3FFEGkNXP0DchnpHZCzr9278BXUnGJGA2GBiWBo+4XTzQcXt6mNWDiwaEiKLB78Ee U3fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=iw56kBFEnPJv2Ml359xnSyawWHHHwQ2ambPGYPjTJLA=; b=PZkNuAVcpE9FHGAUy2P1/5W89UgR64/6rgRzLqKK6q5qRi0r8PurHmnlAiSbc0MZIv 9E5mcn03pO14AzbU92mY1YnhWimguvv+fRKA/Byhj6YM4uzD+OaX0aH/u9vizyGy2rdI 5yi4lKKTAsZkxttNjYT9SH34H2ZAQV447bdXsLYGB4/Lbot73cKJIm1HDkQKJeokqLKY qb7Ud9HEDFzbKovWWvjL45+nswp44/awj6iahfrvDT6MLHqL1rSGF8y2KjVL93RTFcYE wH5NOxN4GHCfu+jzSPmq0b6VjxsXqrpAme3FWWgYU8eoFpxfl7kHXi0PWRaGHNhuvqd/ Y6+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=nGwfqZsU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw15si29602757ejc.96.2021.07.21.11.08.50; Wed, 21 Jul 2021 11:09:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=nGwfqZsU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238059AbhGUR15 (ORCPT + 99 others); Wed, 21 Jul 2021 13:27:57 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:15731 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238011AbhGUR14 (ORCPT ); Wed, 21 Jul 2021 13:27:56 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1626890913; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=iw56kBFEnPJv2Ml359xnSyawWHHHwQ2ambPGYPjTJLA=; b=nGwfqZsUeVs1j2v7v5/qfQG1jBmGC+R1YHiTlfVYCK6x8yAd1x8Tm6lJA0NK7O6sAZcMNJMw rrOEPVfSRvgK3A5s1aYlRvEdi2CDlgppESaT6RR1mIBCMH9t82YYOQbF6CtzL6JGfwgrbAZA If93uHILG8NrDBNkAMB4mrxQSO0= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 60f862a1e81205dd0ad6f47b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 21 Jul 2021 18:08:33 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 06420C43143; Wed, 21 Jul 2021 18:08:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from jouni.codeaurora.org (85-76-67-217-nat.elisa-mobile.fi [85.76.67.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id F273EC433F1; Wed, 21 Jul 2021 18:08:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F273EC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=jouni@codeaurora.org From: Jouni Malinen To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Karthikeyan Periyasamy , Jouni Malinen Subject: [PATCH 4/4] ath11k: Add spectral scan support for QCN9074 Date: Wed, 21 Jul 2021 21:08:09 +0300 Message-Id: <20210721180809.90960-5-jouni@codeaurora.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210721180809.90960-1-jouni@codeaurora.org> References: <20210721180809.90960-1-jouni@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Karthikeyan Periyasamy Populate the below hw parameters as per the QCN9074 support 1. FFT bin size as two bytes 2. Maximum FFT bin count as 1024 3. Summary report pad size as 16 4. FFT report header length as 24 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01492-QCAHKSWPL_SILICONZ-1 Signed-off-by: Karthikeyan Periyasamy Signed-off-by: Jouni Malinen --- drivers/net/wireless/ath/ath11k/core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index 08b2e67c8e19..c97830633f1f 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -201,6 +201,13 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .vdev_start_delay = false, .htt_peer_map_v2 = true, .tcl_0_only = false, + .spectral = { + .fft_sz = 2, + .fft_pad_sz = 0, + .summary_pad_sz = 16, + .fft_hdr_len = 24, + .max_fft_bins = 1024, + }, .interface_modes = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_MESH_POINT), -- 2.25.1