Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3979809pxu; Mon, 12 Oct 2020 06:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0EulIMA8TTeK4oK9RM4cGHUOphW3CnmIDIyNmHOyA0oRzqtH8/oRFKu4sfZG45v9LbgWK X-Received: by 2002:a17:906:1107:: with SMTP id h7mr27877400eja.481.1602509556993; Mon, 12 Oct 2020 06:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602509556; cv=none; d=google.com; s=arc-20160816; b=jQ3ZJekkUcUI5DjQpC5laxG/GFhriM+ivd8P622/Fj4kpXymLbbsF3zbuJ51YD5g9z qs6uLjZntZ1jdy177oXWu+grciJvK9B1GI8lYLffk2xq4vBnq6/uBGcsa05yHt56Y3Kp yCkG5Qq5R9HZUxp+Hs/+YKnTH89Sp89uxOjcL3lETFKEHxmTf2dr3HjxhPbShVbsJGtd slXBtTa5NbT+t8z9GY/2QUEzR3891iveltpRphw+9eu7/bmxKr0SHt3F/+iliLqXY0/3 smylgqNX5Hlx/ptodWsTCMblkiyetgkWPvum0cL/sCESUrrJKGbpFTIvA+c28TNVuGZo WFWw== 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=zNbWdsakiJChfMTXxDZnZsalRsGBp7V8ZTW2euDgolB3Q68+fgqprzk0Rctw9HhHR4 y48UzVxrZikdKNM+cpMWRF2Kvc9Pb7CwwfHSxXay5H0cSSBEbcwfPKs9UNJ4IwYunmo8 JPQcqPcrl9ZDF8huz2HnCDFb7ABqIRlTGxG8y13no4wSqYhMuUll4fihm7rzp4qmjI++ 7gDP88g8yChiTKCGOml1ELilnvDbUKIfCDcBc9KG1GtLls0pFm9cspK1gWvC6+iLQ/ds zblD7mmCcsR4qFbRtxuHmVBwhQzneuC8vGZ61edCXij0N+JsFAdinvigwZaIdeJgTpBS kplQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Fo5+ZtfD; 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 f1si11377708ejh.159.2020.10.12.06.32.02; Mon, 12 Oct 2020 06:32:36 -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=Fo5+ZtfD; 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 S1730224AbgJLM4K (ORCPT + 99 others); Mon, 12 Oct 2020 08:56:10 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53376 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726769AbgJLM4J (ORCPT ); Mon, 12 Oct 2020 08:56:09 -0400 X-UUID: 9614a937790543708f0625878a6a0dd9-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=Fo5+ZtfDwT4nuJit7a+MMCt3VVCwO3s4gSr1haVT8y75JzGzeiH91usr/wRQs8969pyKQaXATxe6PUHmi+FmhKQ/8hNWfU59Wx+fF0US+udhbRuw56em4vXRFnLwVeMMhXr+ZT3RS6rdPXGPTYXbojrt3mSQARnPhBtyKdDuEZ0=; X-UUID: 9614a937790543708f0625878a6a0dd9-20201012 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.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 336217629; Mon, 12 Oct 2020 20:55:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 20:55:55 +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 20:55:55 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v3 01/10] mt76: testmode: switch ib and wb rssi to array type for per-antenna report Date: Mon, 12 Oct 2020 20:53:54 +0800 Message-ID: <20201012125403.8608-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 378ADA0831A9C3A396325DD3B430A82D067BF03C513305CCBFFB0905147A65CF2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Q2hhbmdlIGliX3Jzc2kgYW5kIHdiX3Jzc2kgaW50byBhcnJheSB0eXBlLCBzaW5jZSB0aGV5IGNv dWxkIGJlIHJlcG9ydGVkDQpieSBwZXItYW50ZW5uYS4NCg0KUmV2aWV3ZWQtYnk6IFJ5ZGVyIExl ZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NClNpZ25lZC1v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