Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3660048pxu; Sun, 11 Oct 2020 19:10:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRVPqF5VUh05wbNcCCJi5kBpBoSBlygaR9/PsgYEatNymoLqj42nSkysCD9dX96sKnq85q X-Received: by 2002:a50:9502:: with SMTP id u2mr5037021eda.196.1602468644941; Sun, 11 Oct 2020 19:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602468644; cv=none; d=google.com; s=arc-20160816; b=yEtPU5AB0wua3+gQKsey8XPXwx0Kwmc+tw8pdyQtS0gEvQwUk4GvOPZLuDNcLnfX6/ 6kl+5krEWaI9U+rPzzorxHm7zjPgec0bOLCFC5N+lqxWlLFQ7s+XZFV8tgptIcoYRtaD iav2IrZ18+MEs1XpTNSJJ/akIR9LWxNyUNxU9rmKMo9wD3JrrEjWWzxKOu46QzHKnBXP wLKHDCsPqRIHf0FKdwfK+wb0MvGfvjHHpAuiG33alRRPxeSlBx9m0PrUBQ+HkfdhGEx4 3Lq7QH9s1gDaMDoyq/9zFiOlu0m12P5TyPqhoiicUx86u1COpvDm+SqjRBhs8uFCQ+aJ LLeA== 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:from:references :cc:to:subject:dkim-signature; bh=t+TL1U9ATFrnvcxEvpx5NcXpCLcm2ex+63jpmjVkYVI=; b=bqjw0Z2zjjRAf/QZmAwEX1ztqs+r/K0jxV9hgkZ6hxP+aDCtXgLOyTJ24IxJjP6oC1 1vn26++g8bhjqv3UxCYfRKz8+TlVB1XLaaRetVtmJQSY7MrmZ/YuQXBEC5VwanckJJ+/ bY33Ofi/QQp4mZymu3WBIjvk3W6RNa3T43oVTqtHUjNcMGOT/uTlrtWyhpU3KxFZW9Qw jF028MxtWTkTfB7BYxiD1bmfiXs3a19eylQ0MHfYthD3mGnu/1vdDLqf4PCfNSx6ioMp XG4mo8Duvadvesi10Qz3sPMjFleURMPDxzZ0ZX6CTdm48YLjdNfgTTnhkz/8FUgWLPlp jNqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=aAwU3JaB; 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 j1si10972614ejy.674.2020.10.11.19.10.21; Sun, 11 Oct 2020 19:10:44 -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=fail header.i=@nbd.name header.s=20160729 header.b=aAwU3JaB; 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 S1726120AbgJKThc (ORCPT + 99 others); Sun, 11 Oct 2020 15:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbgJKThc (ORCPT ); Sun, 11 Oct 2020 15:37:32 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28A9DC0613CE for ; Sun, 11 Oct 2020 12:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t+TL1U9ATFrnvcxEvpx5NcXpCLcm2ex+63jpmjVkYVI=; b=aAwU3JaBO5NNlLIF0TEdYTcO87 w6lsiun4yGESpIAthlkB17vf0PvNOyRT1BBNOTzXdMG3pK/Pfoa46o0weitkYaYVkq0Y7G0I/ywS4 ERS51g0B3Ts7Nyc0hSjFTwtkV1H63uK1TGfGcExu7DWdlZUyrWfctWrnSimq4gyMPTCM=; Received: from p54ae9462.dip0.t-ipconnect.de ([84.174.148.98] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kRh9p-0006lH-HN; Sun, 11 Oct 2020 21:37:25 +0200 Subject: Re: [PATCH 02/10] mt76: testmode: add snr attribute in rx statistics To: Shayne Chen Cc: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek References: <20201008112904.10620-1-shayne.chen@mediatek.com> <20201008112904.10620-2-shayne.chen@mediatek.com> From: Felix Fietkau Message-ID: Date: Sun, 11 Oct 2020 21:37:25 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <20201008112904.10620-2-shayne.chen@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-10-08 13:28, Shayne Chen wrote: > Support to display snr value when dumping rx statistics. > > Signed-off-by: Shayne Chen > Reviewed-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/testmode.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/wireless/mediatek/mt76/testmode.h b/drivers/net/wireless/mediatek/mt76/testmode.h > index 02c9495..4015f1d 100644 > --- a/drivers/net/wireless/mediatek/mt76/testmode.h > +++ b/drivers/net/wireless/mediatek/mt76/testmode.h > @@ -101,6 +101,7 @@ enum mt76_testmode_stats_attr { > * @MT76_TM_RX_ATTR_RCPI: received channel power indicator (array, u8) > * @MT76_TM_RX_ATTR_IB_RSSI: internal inband RSSI (array, s8) > * @MT76_TM_RX_ATTR_WB_RSSI: internal wideband RSSI (array, s8) > + * @MT76_TM_RX_ATTR_SNR: signal-to-noise ratio (s32) I think u8 makes more sense than s32 as a type for snr. - Felix