Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp103053ybz; Fri, 24 Apr 2020 12:33:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKm1ANdCFkt4nQp1tTvg9tvFsGvFTCf2w0Q8kdJF66TWBeQ8PPkL9ELmKVVXr6mPZqojos0 X-Received: by 2002:aa7:d689:: with SMTP id d9mr9154549edr.22.1587756819352; Fri, 24 Apr 2020 12:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587756819; cv=none; d=google.com; s=arc-20160816; b=TbwjFyw4hY2uatu0ednV7iDz+swb8kPAicfcRI862kt/0EbbXrsp9LzFWSZrVOuPIJ nEW5YQgQXN9naw7caPxw47tNHoZqFAuyv9wuVPquU8XaLUdXcwVV+QJClTTUJ/WzdvtX o+GIVZ6g9LhmsvT6j+Zwcy0Sx66ThqJ51IDNTpLJ7mSn2Sc87KDBdbA3A0J6kLOIR92O 1Y5nVUDVFhruOpIy4HlRWT24ozqFde3mL9096QjEtqBDuB3tACEI5kS8p6cbaGDVWxfG SA1uRq/XV5/KZJW/m93ZX8TH6Z7PK82nEMzSAIPDGJJ7Uy5rJ0PDF0TlaGif5YDEadc3 d1nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6x+oFqiIGQnnKYYcf2KhwLTXjjhGL/WPlXmNOrOE1gI=; b=FggmPrLLqQe9YKW5EfRZ3w8zdd0Y4/Kihlu6NhXcDlXx83iaVcwFCUvFDZgN3uqAF+ Cd5XpbLcm1RS7UEpe/cgM2um1q+Z8MOWsziLCo+e5hF4f435Ir2rkGeysgFfcWC/qTfY +w1QMbiP5GqAC+JrA9zwZ0Cg3+SuFDHQtGh1b1+uYCJXslc5zsGdLQHiEzqQzt4ZeV6F o2Q91GeWUrmvi9UD42go28grpzla5LGOHvfrSijlUas3+nIaZ/mfDwbpiSgaGWS090fD 1h4K+9eH+wJzo63/gU2mntXtzwfbGMNwjIj84VtDGlmep4yg1DZZdxmcmTjPb+A8/0mU Jp7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PGa5c02s; 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 t6si3258679edj.527.2020.04.24.12.33.11; Fri, 24 Apr 2020 12:33:39 -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=PGa5c02s; 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 S1729364AbgDXTc5 (ORCPT + 99 others); Fri, 24 Apr 2020 15:32:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:14309 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729352AbgDXTc4 (ORCPT ); Fri, 24 Apr 2020 15:32:56 -0400 X-UUID: 3ace4b7544c34adfa5f6a43be8c3afdd-20200425 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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=6x+oFqiIGQnnKYYcf2KhwLTXjjhGL/WPlXmNOrOE1gI=; b=PGa5c02sIoTZnqCyDQqwIFVvHT4D1R+YDLP/Bso0OMOKQAuCiFBWHdg73gUBexC8aoS44D8k3ayV90bSjxH9Z2o4g6YD/Ab0oO0QTm9N7AlwWb073QF4tzKlL1En/l8SQONyxqOp3c429jnBWyVi1HsNM3Q5XmM+CtodQ9FgNoA=; X-UUID: 3ace4b7544c34adfa5f6a43be8c3afdd-20200425 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1536928155; Sat, 25 Apr 2020 03:32:53 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 25 Apr 2020 03:32:48 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 25 Apr 2020 03:32:51 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , YF Luo , Yiwei Chung , Chih-Min Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH v3 07/18] mt76: mt7915: enable Rx HE rate reporting Date: Sat, 25 Apr 2020 03:32:28 +0800 Message-ID: <2dcb775842199f2e4de1c823f2d8e048b352eebb.1587756404.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BE577BE27BEE5889C9CBD23C81B0B930AFEFB468DC7B58C355744931D24A6B592000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org RW5hYmxlIEhFIHJhdGUgcmVwb3J0aW5nIGluIFJ4IHBhdGgNCg0KU2lnbmVkLW9mZi1ieTogUnlk ZXIgTGVlIDxyeWRlci5sZ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