Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1152653pxu; Thu, 8 Oct 2020 04:52:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvQxXRdCTosjUSaVVqx7pfxK14GzqZu2JYw0BQU/SHi/YMyupxRmN187Z3LPkVFtMpjiP7 X-Received: by 2002:a17:906:a4e:: with SMTP id x14mr8242217ejf.112.1602157970118; Thu, 08 Oct 2020 04:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602157970; cv=none; d=google.com; s=arc-20160816; b=xhlks+Tk3BiKMyNwQDpnRD38oJrHY/LvIidfD8rg19u+zrvif713dCNunJ+JPLc5Ne ygEx8OqrTqKg1Q5HbnkFOGga3Ktcc87aN7+TIqBgs7VmfnVHDQZ5mte/u+J0qjz0jHec sumHsCquhjniJwBtv76TDcNXah27SDC/U/uUYxnPgVWKKVmpDZb8IHcaz711LUQyNbL1 zPWVQ77frYMVLun2bV8V1fhRrEu3POqMxb8g57oHw5iPboJJtG9KFSY/H1g/rGJlaj6O yg01KJSx3lAI3BYBFrduhs21uA0kIOE/79OBV3Mi9Ue5kLow2Gbr8pBlSSMA4GavqWCZ YbbQ== 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=L9HcqXYh0UIB0ftwAv+ad21m25sYMDZDQwwYxfNdi/c=; b=xOLhuvaQpRPOCt/U+iiB5HfR6jcovvA/kUbu35zJZcJnZ7IFgOALzV0pPKJCE+T0Tb XagEXpLzX74rv15cfFcuglbwx5Lz0VZKOi4OALmNwj93oNkpty7Oknsj7MNbN4opfgIv oQEpNQMaTuTt/LYe/iA92b3QDKd5NwHtN7orcCAubuHM1QyjOyuPaNwO6W2AYvTFuw5A VrNBdZ4JQ7xQeiXAZYmFs6pP8QxO/iw6xFwiXT5zJYGAKQL+YrO2jXBrmcspJdG2lKb9 s83oUnYQQFPVNMumY9A8DJ4ijF2Ioelr/EzJy+tu9i+XNNamPh62977FGu1XeP/IwLOy JBgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tZ66Ql7Y; 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 d12si4226298ejj.33.2020.10.08.04.52.25; Thu, 08 Oct 2020 04:52:50 -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=tZ66Ql7Y; 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 S1729805AbgJHLdW (ORCPT + 99 others); Thu, 8 Oct 2020 07:33:22 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33957 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729404AbgJHLdW (ORCPT ); Thu, 8 Oct 2020 07:33:22 -0400 X-UUID: 3d919c7cd7c7402ba8355c9eef4544bb-20201008 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=L9HcqXYh0UIB0ftwAv+ad21m25sYMDZDQwwYxfNdi/c=; b=tZ66Ql7YbQ+vG6JPULSi7ntvJN/FCPN/fwK+ItWjgeE4aHJlesihbEaHjIBmZx06H8lFBPn08DtW0o6CLOKdQ7sjdWxSjbJwluOpD1wQtwAvQV+uwPabqSTrU8E3KsJ6peiRrKsiZnN2EKEwE8MBFGB56ixrFidHD3UzXmGiA8U=; X-UUID: 3d919c7cd7c7402ba8355c9eef4544bb-20201008 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] 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 45700535; Thu, 08 Oct 2020 19:33:15 +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; Thu, 8 Oct 2020 19:33:12 +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, 8 Oct 2020 19:33:12 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH 01/10] mt76: testmode: switch ib and wb rssi to array type for per-antenna report Date: Thu, 8 Oct 2020 19:28:55 +0800 Message-ID: <20201008112904.10620-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: CEC5AF2513BDE0641BE4BBC15B8E06AFDAFC97331E636F028CA4989A32A310C22000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Q2hhbmdlIGliX3Jzc2kgYW5kIHdiX3Jzc2kgaW50byBhcnJheSB0eXBlLCBzaW5jZSB0aGV5IGNv dWxkIGJlIHJlcG9ydGVkDQpieSBwZXItYW50ZW5uYS4NCg0KU2lnbmVkLW9mZi1ieTogU2hheW5l IENoZW4gPHNoYXluZS5jaGVuQ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