Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3714418pxu; Sun, 11 Oct 2020 21:40:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0lBIK8bUCep7uoRuAYdyfi5qxUivCNj21+rao2WEOlHTpPgtwJp80gmh6de4pP2yk3D24 X-Received: by 2002:a17:906:1b01:: with SMTP id o1mr27383163ejg.539.1602477620759; Sun, 11 Oct 2020 21:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602477620; cv=none; d=google.com; s=arc-20160816; b=siNOfob4w9yLL0rk/IOl3PiwjzYnv7xnaZrqzXvkACoIzwzOsyRiVJy262/aML87L0 35mxOtyJWIib/qoakaLFWnaO+KhusOx/Emhks9QV8WYqn7AxeDtPBu8X/9FsscyW6lWQ PExBTO9Z+9N4gIzjgl+8SlKxzPaNLfaqDeju5hrzR5M80+yLoQWv95lJyJJNKJ7PYkcj hezjfbS5XWu24EIO9U6/vlz4uVVjJCNuZGql8rn3d0Vf+/u18AjATpzDO7f0DMOYEbMt j8gspSmyDKTz57VuV+zE2IAMDKkScvPIuE1A3crVCrPxusn12eDKv2Zsz8IvdD6hudKw VRbw== 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=TMqSvBmESNS5IPfm9vtgflz3MXmwQgGnfDW+MeUZ5gz8EZUyjdzH6TjBsvfoqlz6kU sVGcriKcMYmR/0yWr4HN8NiyZYf5OEfLU1uVIFdseqIkg6XZFbktLRd9kM8qv8z6Tl3R qCUfKMlWCMeiL2jglZkVY/cvkmUoGDQI9SdRBaaaMsHig0L8xYGr23p+2BN+R5rQV/v1 lsEhTJ1A/8CcCQi98oNJoYu+BVaNeJ7m3kHJlWMnRvZw8PfnLU31LqPu1ExH/TcTJIp6 VZIfMPJUrauNF9XoAInx5Jtzt8S3tqOkqcatZQXD9lkPeCssadoE+U5vfN5cwIavSDlN D1NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PxDzf2ic; 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 u5si1940776ejt.657.2020.10.11.21.39.41; Sun, 11 Oct 2020 21:40:20 -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=PxDzf2ic; 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 S1727156AbgJLD0P (ORCPT + 99 others); Sun, 11 Oct 2020 23:26:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:56127 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726371AbgJLD0P (ORCPT ); Sun, 11 Oct 2020 23:26:15 -0400 X-UUID: ca37ffbb6c8f4575b6d1d58d2ac33e28-20201012 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=PxDzf2ichLtPlRBZCUBoWt1W1kSHdjejcStFA/QYP4jSF749vjDPUBM551Zo/a3BH5e6WIUJ/NSwxgi6detf+iTsuwaicnM9G+G4D8lt1HN86aXWNdoMG4QqoHbmPoXrCEt5wESuzVDUp61GcSFK5UzjHSLJtjOQYnS6+4Sqvqg=; X-UUID: ca37ffbb6c8f4575b6d1d58d2ac33e28-20201012 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 630631165; Mon, 12 Oct 2020 11:26:09 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 11:26:06 +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; Mon, 12 Oct 2020 11:26:06 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v2 01/10] mt76: testmode: switch ib and wb rssi to array type for per-antenna report Date: Mon, 12 Oct 2020 11:25:29 +0800 Message-ID: <20201012032538.21314-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 aGF5bmUuY2hlbkBtZW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