Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2654657imi; Mon, 25 Jul 2022 04:46:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sr82BQIOCfagqMEuTFVJUM9DlzrABRR5AT8JGQUNj5NpZ+bjaVwxVWpY01j49TwivdpqJC X-Received: by 2002:a05:6a00:841:b0:52b:15d2:e50f with SMTP id q1-20020a056a00084100b0052b15d2e50fmr12334408pfk.47.1658749576721; Mon, 25 Jul 2022 04:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658749576; cv=none; d=google.com; s=arc-20160816; b=fsf2njQTUzp6vM4oZjI2EW7OtRsef+VCWpKsz6bzkOC/QykHi+Z+yIY68YbrpTl4Sd OZ/NT6BIXwd+zXQt77X0PnC7rwS0VAOwgcEw69T5zQaYorzZFmn6wyZv8S3zo4Nx7lwi WXvwXs/vuCG5CglTubwkwng4dKTT4zyqGv8VR1GsniDZTYnPCA1bVvktiNhM8FXRCWIW bAFACSUObQy38oh4jM0XKgMN8VLY65o4arSDQBJgwSiegQZsuVibhSGixRCiYR19UNT6 vz7G7B1QJn6TyQ113BHVGK7LZ0ztuVQweMODGW/55VHIRzrBb2Gtc7JwWa0JKkWCTQYu IZAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=jVYLLy3WNbF+BEzdr6PEz3IVLcJeeJXVsGIM3qFp5V8=; b=OAihvSPaJcfJDoRZm6KcDDZxOU6OXHCfeZVXLhqAHnRnZCFiIX5YOMLUV0cgXMklJo p3ckHrU6zc7fkxeZ3z7UlYDWzy/rztSSueAck5dVOLV5j3QVl7SeFVBdJTfMiO+GPGJk CrbJMFS6/RCcfMgpIdY/Oc9hPhy+jOKmlIDSeyNqoQQdp8WHnkqHoc6DuaTQP0cR8eZ3 NRcvjCPOiR57QZez1nVxaaVrdYxfCG/qukULI3qdK2wDx3yQLz7q9Gxjf6CCs+s41V2l LXJBtTdjmg1oC0aZ21aE3nlit8KDJuJLChysWp8PuygJh9RfLTbDDvYwyQyA2BJDzuDO EW5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFKAUIBK; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020aa78887000000b00528a45a239fsi15818308pfe.273.2022.07.25.04.46.02; Mon, 25 Jul 2022 04:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFKAUIBK; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235056AbiGYL07 (ORCPT + 65 others); Mon, 25 Jul 2022 07:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235054AbiGYL06 (ORCPT ); Mon, 25 Jul 2022 07:26:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC31117E29 for ; Mon, 25 Jul 2022 04:26:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8B296B80E4B for ; Mon, 25 Jul 2022 11:26:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 595B9C341C6; Mon, 25 Jul 2022 11:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658748415; bh=ByzNrFzGDisnp6Rd1c9XlWdax0TrZxDkLwMrmCNll9g=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=uFKAUIBK4FHMWe6SnIoPT4S3BYt9mzZ8XCzEVtbTTiM7PhdQVVEGcN1yRCLup6ri0 rfPFEeECRv6FDXp8wSiKqiz8rlAnPpBOQyPy4fhNGzdPGkocKcnNsUhXKokNjZDhhH XQaW5ne9M8gZXMJKxBfGu1O5j3D06Y+dFWor8kdk2V8BIZ8WpWCGS9SSq7yzgFy38g yPxNNwNPpOklCdb47XRDhYxGXknhnZvN/Te8KDYNhHLQvjekRNpgSwAGXjxkDkNNkR /tYfrznx5qhzg1YfcUoDKDYfIhP9hJMTbH4o6gbKiLSwJfrwX/lZ2+kPb7VnMXt7wy VhF7zs30Qjnug== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCHv2] ath11k: Add spectral scan support for 160 MHz From: Kalle Valo In-Reply-To: <20220725055001.15194-1-quic_tamizhr@quicinc.com> References: <20220725055001.15194-1-quic_tamizhr@quicinc.com> To: Tamizh Chelvam Raja Cc: , , Tamizh Chelvam Raja User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165874840987.809.11956403256946513470.kvalo@kernel.org> Date: Mon, 25 Jul 2022 11:26:54 +0000 (UTC) X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Tamizh Chelvam Raja wrote: > There are two types of 160 MHz spectral scan support mentioned below > > 1. Fragmented approach > 2. Single event approach > > In this fragmented approach, single 160 MHz will be split as two > 80 MHz buffer. First fft sample buffer will contain spectral scan > result of primary 80 MHz and the second fft sample buffer will contain > secondary 80 MHz and here cfreq1 and cfreq2 will be mentioned. > In case of 160 MHz on 36th channel will contain cfreq1 as 5210 and > cfreq2 as 5290. Chipsets which support this approach are IPQ8074/IPQ6018. > > Replacing freq1 with freq2 in every secondary sepctral scan event to > distinguish between two different 80 MHz spectral event data. > > In the 2nd approach each fft sample buffer will contain spectral scan > result for whole 160 MHz by mentioning cfreq1 as 5250 which is center > frequency of whole 160 MHz. Chipset which support this approach is QCN9074. > > Host will receive spectral event from target for every 5 fft samples. > > Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01120-QCAHKSWPL-1 > Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01120-QCAHKSWP > > Signed-off-by: Tamizh Chelvam Raja > Signed-off-by: Kalle Valo This added a new warning: drivers/net/wireless/ath/ath11k/spectral.c:682:43: warning: incorrect type in assignment (different base types) drivers/net/wireless/ath/ath11k/spectral.c:682:43: expected restricted __be16 [usertype] freq1 drivers/net/wireless/ath/ath11k/spectral.c:682:43: got unsigned short [assigned] [usertype] freq Remember to use ath11k-check to check your code. I fixed this in the pending branch. -- https://patchwork.kernel.org/project/linux-wireless/patch/20220725055001.15194-1-quic_tamizhr@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches