Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp596368pxb; Tue, 15 Feb 2022 23:15:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMliK0VN4oNRVrA3F1gX/4DjYpREdolKzDqwNUXcmArH7SHpxzP2Cpz8+H9NzWuPGO7Cre X-Received: by 2002:a05:6a00:134c:b0:4e1:75b:ca4b with SMTP id k12-20020a056a00134c00b004e1075bca4bmr1568478pfu.37.1644995717581; Tue, 15 Feb 2022 23:15:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644995717; cv=none; d=google.com; s=arc-20160816; b=dlRu49rm2st8NJ8QTITKPIH2FCajnngeHvheaIbuemNctEMCInjmAVsqjpKHds1DPN oEy4/EnKLfWLSC/b+CWiCZfZQgY3pB37mWXWhPuPeoffXlk6nl1hF9ZlZXKre3DxyMq4 Ef+LeQ8rHNrw/P4d69R7JtnSoRRIXCDRxKZjPydRoWzuVyEkS8No9MJ7oyozvhaRVDUC BFaaG1xM2fK0nKuW+RypKgwxRz0UDIluTQ8X3HDbZaYCw5kuuRyl57H46wdjGZwDsmm4 sRUfI8RKLX3sQSYb7Rsps0R0bN1eeBrdPO5hcHyD3G0c1likxJKDnrQ21DP5OruTEZpj hVBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:to:subject:dkim-signature:dkim-filter; bh=JbUv4Rbs6RLpQYBibRzYQWcjepyQiMGDTbOJNS5vaWY=; b=07sF6vPsr9byhNJeBKV3IUaWOcloEDeCO/AvstJbeg3xc18/RRuHzl3tuMsIRRfXY+ o6JESXgxj0EZprpOW0DskVO53E1ChWobDLOVs2KNew+LRi1rZtE9qGC7TpVJnV5x3xGf BLVRhlpAAyWqOCKGbhPAEnYzfiLB+Syc9znXR6bKAm+z0ITgbtm6DYAia49+Ovc0sNL5 Vt1WSY/Qwb1JP30susjNeWm5zFpGPELQP3283dCMqfasoSCvm9lwNLklJidXbqxplila M6nX9LDn3HzBVbv5iROZ5BjOTmu4RHB7lDBA3SI1h5G80l3DUZ4AlC4Yz6XZXmlf5VO4 b5/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=ZjDtXOve; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m13si12327541plx.368.2022.02.15.23.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:15:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=ZjDtXOve; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC27B1F3F33; Tue, 15 Feb 2022 22:47:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243069AbiBOS3I (ORCPT + 72 others); Tue, 15 Feb 2022 13:29:08 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233594AbiBOS3H (ORCPT ); Tue, 15 Feb 2022 13:29:07 -0500 X-Greylist: delayed 386 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 15 Feb 2022 10:28:57 PST Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C7A3E0D1 for ; Tue, 15 Feb 2022 10:28:57 -0800 (PST) Received: from dispatch1-us1.ppe-hosted.com (localhost.localdomain [127.0.0.1]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 594C522E11E for ; Tue, 15 Feb 2022 18:22:31 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.168]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 9888CA0075; Tue, 15 Feb 2022 18:22:29 +0000 (UTC) Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 5DEFD880077; Tue, 15 Feb 2022 18:22:29 +0000 (UTC) Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id CF92913C2B1; Tue, 15 Feb 2022 10:22:28 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com CF92913C2B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1644949348; bh=xukAeKiIiy7xKmN5tSmEFO3RjasO7/qn5qu3f1W8b98=; h=Subject:To:References:From:Date:In-Reply-To:From; b=ZjDtXOveuZxCFFpBsOeJtcMMEh7X9GVXqc69mrBClGSV5pR0rB0ClR+k/FVIHrCcu 70ZiIgEm0/lM9Zd4NAMIiCvwqYhujBPsHFK0wRzuP9j5UTV77+vT1WcHg0RQVU9TmY dD6SLjo1W/ikfr/VO80pzVyHXYgXHt18VtVvyO9I= Subject: Re: [PATCH] mt76: improve signal strength reporting To: Felix Fietkau , linux-wireless@vger.kernel.org References: <20220215125808.72378-1-nbd@nbd.name> From: Ben Greear Organization: Candela Technologies Message-ID: <9bb8329d-b2c7-139a-9f0d-a10bba3f4d8b@candelatech.com> Date: Tue, 15 Feb 2022 10:22:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20220215125808.72378-1-nbd@nbd.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-MDID: 1644949350-FfkK2nRImbKK X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 On 2/15/22 4:58 AM, Felix Fietkau wrote: > Instead of just taking the maximum per-chain signal strength values, > add an approximation for the sum of the combined signal. > This should more accurately reflect the real signal strength, especially > if the per-chain signal strength values are close to each other My concern with this patch is that many of the mtk radios do not provide enough info to know how many RX chains are used when receiving a frame. I think we should not be summing more chains than the number of spatial streams received. That said, this code may still be a closer estimate than existing code, and some radios, like 7921 appear to report enough info by default to properly determine the NSS count on a per frame basis. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com