Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5403159pxu; Thu, 22 Oct 2020 01:01:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEZwEonrk6Tuwqn7fuK+Ve2KVzdGk4mKB7YrvoGGvl++Ider5MY1l81uaCSybsC9XK1Qjd X-Received: by 2002:a50:fe98:: with SMTP id d24mr1091666edt.223.1603353689818; Thu, 22 Oct 2020 01:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603353689; cv=none; d=google.com; s=arc-20160816; b=rFQB6VBxG6ktl/8IiN6Wcdr25V63t4jKHvUuQU53GG3Oo5l2kwwu37239W2MNWuWsx x1115ZO1660vT2yleRMs7p4wqGiIRyJOWgIrxWeeERi7k5w80dHAe0YhHOkA5q1zZCT2 ggK80YdUUR2v4umfs4IHO5cRHGWFvtS2HfvjrP4MiU9HO1YS1ON60V6wzguvUmJ0R4TP hNcyKEDbW64DybfXen01p/VhpRvNLMkizQIMS/DNlKShrUU++g/vLZobFfB2tPu8jenR qxwNx0Kr+qMkkvdtRIi2YNEd73U7skfkrih1rFoUXV59RBP52GPcTsSDu+23J+t507oO S0Eg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zY34pkVXqvHFrUkI7Cdx5qzwRfOG6aaDums30Ks561c=; b=K477JQVNyYye0qRuiGMKLQ9ZO4AF4RdX3VAxxnHacH94MYJXT7XFsvEgc6LlhpUEah 3olhO9jKOthcAfAdnNFAjnjM8L953au/4qIviKZktwa4E+UZF990t+/njI3gkCMl7eyM OPExVhg5OaPbuwwG3JjDUhAZYwf2uboXQ9LERtzPnl/m/xg781CJ/qF1Q/E706lytpW/ eIZvrc8r78Hzzn0Rfc8z8nqWZRyA9bBsM3rRcfSwOjDFzfD+M5fMH04rZGHLVJCsKznD HRlWy2y5H1wiSWtm60APtezPuWUqMF7MKn3TrpbB5Ry250BN9Liwj4SKYAVSPCRran/X 1suw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AYnbKNot; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si479911edw.184.2020.10.22.01.01.06; Thu, 22 Oct 2020 01:01:29 -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=@mediatek.com header.s=dk header.b=AYnbKNot; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895043AbgJVC2p (ORCPT + 99 others); Wed, 21 Oct 2020 22:28:45 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:53862 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2894984AbgJVC2o (ORCPT ); Wed, 21 Oct 2020 22:28:44 -0400 X-UUID: bca0bcd69b9e47059601a3b2b5a4f0bc-20201022 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=zY34pkVXqvHFrUkI7Cdx5qzwRfOG6aaDums30Ks561c=; b=AYnbKNotQmgZrH4s0YgSIkP7/GQf9rOu8doL5BcTV8QPFu+btsvdZ5OZG0LlUH+6gMnBweWiijJT46wsRXbG9e/mNaw3QHkw5+rmLeb/MiuCEzVgy6L0yK0D+xL114a5GKtCnUQGltLH2ObZl6ByH33RXLxfqgf1xLgUPsj05iU=; X-UUID: bca0bcd69b9e47059601a3b2b5a4f0bc-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1725977676; Thu, 22 Oct 2020 10:28:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 10:28:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 10:28:38 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v4 01/10] mt76: testmode: switch ib and wb rssi to array type for per-antenna report Date: Thu, 22 Oct 2020 10:28:11 +0800 Message-ID: <20201022022820.3077-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Q2hhbmdlIGliX3Jzc2kgYW5kIHdiX3Jzc2kgaW50byBhcnJheSB0eXBlLCBzaW5jZSB0aGV5IGNv dWxkIGJlIHJlcG9ydGVkDQpieSBwZXItYW50ZW5uYS4NCg0KUmV2aWV3ZWQtYnk6IFJ5ZGVyIExl ZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NClNpZ25lZC1vZmYtYnk6IFNoYXluZSBDaGVuIDxz aGF5bmUuY2hlbkBtZWRpYXRlay5jb20+DQotLS0NCnYyO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