Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5680459pxv; Wed, 21 Jul 2021 11:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWH0jj+xZBbehcGDEEI3u5C9KtUy98IIZrWzWzNRoNlYeXfglLfGfx3/nHThAdNQU1N0wS X-Received: by 2002:a17:906:5397:: with SMTP id g23mr39069023ejo.455.1626890970037; Wed, 21 Jul 2021 11:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626890970; cv=none; d=google.com; s=arc-20160816; b=CKOu7nFC3BaPz30VzChE0PSwqZpLdVJVNvBoSQB73DLPLVAxoEEYsZDmmwvnYjnN2o TuON1CJ/HhLdPVwfJmdP7VyOxzFjYsj5ndBRnA/Kb/vo0mLyJnz4LofJ8WzX819+oMso +PU3sWxdUjVpKvrS8kaT59/5YRnqXAMP4PyUx61cz+93+FcyRDogsnfSoryRhbVOooly GbOsCbi5ViqMmlB//AnTEKJVz4dJNmVMZsPXmcVRTBJit4IJNMqSeahSPU5vFWQ7GDeD TnubDqVzBnds5kpZQ5z3vs/7g4JYyDU7vcDSoTQ9O/sMmq9ygARvnwC4xXbACiz9bvPV kB5A== 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=QHPS1WTyQDVEqPmun+UsVZICtnG1iaZHXWu8Tqi7l3c=; b=X7Z3AEevSxKfT3NnYx+NqgpGxcLG4M+luwJsPP/LFvYaiWiczgrv8t/nfXPImtGI5G JqEvhbzW4hPKdvF/UHPaEBjA82l+AYgk4K3xh+j1QS9Gc1gJwknZkpTEJei9o+KC4Wap PrfF2i4Vd4ftEEjNA3t0DdiB/AU/3sZxQGjo3CQcUHRFXu5UDMAC9ql4pdHsCrCDEc0T w34TmdMAS09s10QL30QQvPTA7/dTytCwf3orCF20f1VrdG56OGq5a5Ap/Wl0zTqjOrh2 sm00mw/syZzqjjxky0Zs4+fHCMRTDD3oBnbcRspIswjX3Co47bh+duiDoBZ7XVZfp/OM 94WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=AjuRcVPU; 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 l11si3849414edv.604.2021.07.21.11.09.06; Wed, 21 Jul 2021 11:09:30 -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=AjuRcVPU; 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 S238086AbhGUR2A (ORCPT + 99 others); Wed, 21 Jul 2021 13:28:00 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:42960 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237123AbhGUR17 (ORCPT ); Wed, 21 Jul 2021 13:27:59 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1626890916; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=QHPS1WTyQDVEqPmun+UsVZICtnG1iaZHXWu8Tqi7l3c=; b=AjuRcVPUgWtmTyUabuXJ7OrqNWr8DKMOCPAQP/Q0vVpUNIY1doPPQxfEEyOcciV4/iArpLh2 Yv4S92VXTjGhkFbSr3AEfdqtZkikclaBqTEGQ65qo0iUZ7jM8FtU3ExsHD4GhHkNKYXa57xk AZKd/Uj0ZAsBxUR/gGxP8GFd9e8= 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-n03.prod.us-west-2.postgun.com with SMTP id 60f8629efcf9fe7b78abd545 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 21 Jul 2021 18:08:30 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A3C45C43143; Wed, 21 Jul 2021 18:08:30 +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 985FAC433D3; Wed, 21 Jul 2021 18:08:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 985FAC433D3 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 3/4] ath11k: Fix the spectral minimum FFT bin count Date: Wed, 21 Jul 2021 21:08:08 +0300 Message-Id: <20210721180809.90960-4-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 User was not able to configure the spectral with the FFT bin count 32. In all supported platforms, the expected minimum FFT bin count is 32 but it was wrongly defined as 64. This restrict the user to not configure down to the actually supported minimum FFT bin count. So update the minimum FFT bin count as 32. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-01492-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ6018 hw1.0 AHB WLAN.HK.2.4.0.1-00330-QCAHKSWPL_SILICONZ-1 Signed-off-by: Karthikeyan Periyasamy Signed-off-by: Jouni Malinen --- drivers/net/wireless/ath/ath11k/spectral.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/spectral.c b/drivers/net/wireless/ath/ath11k/spectral.c index aca3c523632e..7473d1f3ddf5 100644 --- a/drivers/net/wireless/ath/ath11k/spectral.c +++ b/drivers/net/wireless/ath/ath11k/spectral.c @@ -11,7 +11,7 @@ #define ATH11K_SPECTRAL_EVENT_TIMEOUT_MS 1 #define ATH11K_SPECTRAL_DWORD_SIZE 4 -#define ATH11K_SPECTRAL_MIN_BINS 64 +#define ATH11K_SPECTRAL_MIN_BINS 32 #define ATH11K_SPECTRAL_MIN_IB_BINS (ATH11K_SPECTRAL_MIN_BINS >> 1) #define ATH11K_SPECTRAL_MAX_IB_BINS(x) ((x)->hw_params.spectral.max_fft_bins >> 1) -- 2.25.1