Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp177629ybz; Wed, 15 Apr 2020 06:45:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJGMjYqvv/eSg4GZ9q0ro+egJ66Uhz4L2zIH0AMaXnxiFGYKma7chp3lbBDjjpgDgUarEKn X-Received: by 2002:a05:6402:543:: with SMTP id i3mr8484524edx.255.1586958334739; Wed, 15 Apr 2020 06:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586958334; cv=none; d=google.com; s=arc-20160816; b=QPZVhbYzFPGAoQvrLRjRJV2xmB7PosBl7+z36DP/0YxuOtqw1BdxrBSW389pmrHqUp XyTKAypQWndU/6D6euGeWma5RxNoPiAZw1SOOPslhzOj2oTZwM8cHTvsLyyYb10MiFO/ PLrOgWKe+SE/WmogFaGXP1n8SQtYduyI3w7mOFvghRxJJE3agjFjtzur5AHUeteM/Gvv wkBs4UigAWChWXEY4LecRGzJzn9Ny4KIBj4Z6yRQ1psFfrDkRDJDdrVgC9ic5oO07OdI Y0JrtBXcAHGa8p7SrCDiRSentyE2V8b2+gpkT54i4qVhyBiycBZ3FvsePU5wD/oChVfQ l9Rg== 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=Q0KuVQkH3OPUeMZiYOYmpsxrkYmoMi9sq3Xu3C/T3Nw=; b=oUrPnboC1AVbT5NPL0jWUHAEocBqmYF0jyJkPyc4mbDIu8SRPQ3oMhrWPY2rTjBV5O nQKMAiWNfVwHtB2DSvaUjxz/T5TSeLbh6hsSlq/Doijme4npuxvaU7npo5jEKbdXtuFc Fz58h3lxXXQjLKja1Ig8T7gk9qmb/pYvKIWJCq+ESwiLx/gHuXn+d5PP6OmJjxpDA/Eh e4wiMeki6HkMpXyri0Cux5M14Kmw+R1/uKvCbmJA6uQmtmq2gl5o5bYLkLPLa5BBxvKN jdCjkzu++0u3rVgcTpEEiq0G76Gw/QFTg9BGpvvqFDUhUdyTw8bfTVb8rAonqYgxV9Jo /lxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Cn7tUqQr; spf=pass (google.com: best guess record for 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 by14si565518edb.380.2020.04.15.06.45.11; Wed, 15 Apr 2020 06:45:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=Cn7tUqQr; spf=pass (google.com: best guess record for 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 S2633579AbgDNVCM (ORCPT + 99 others); Tue, 14 Apr 2020 17:02:12 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47633 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2633564AbgDNVBu (ORCPT ); Tue, 14 Apr 2020 17:01:50 -0400 X-UUID: ade5d2f928d343c9a82687ceee4dcecc-20200415 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=Q0KuVQkH3OPUeMZiYOYmpsxrkYmoMi9sq3Xu3C/T3Nw=; b=Cn7tUqQr7tCpBcbqF+cDN9lIIbFPiEwQM6UlHwJ7wPhppDZ2+8e768dnI/1gaZIg4sDwusz0QyXlgsh8y/MTk23HF/bl8yzlC80pjhyfnPL4J1OowOeHzArKHDBtPg1rIW7LkZvF/i4vJAj78t06HXyBrEkkRTrfOr1aaM+2ZPM=; X-UUID: ade5d2f928d343c9a82687ceee4dcecc-20200415 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1203836020; Wed, 15 Apr 2020 05:01:29 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Apr 2020 05:01:25 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 15 Apr 2020 05:01:23 +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 v2 07/18] mt76: mt7915: enable Rx HE rate reporting Date: Wed, 15 Apr 2020 05:01:05 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain 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 ZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tPg0KU2lnbmVkLW9mZi1ieTogU2hheW5lIENo ZW4gPHNoYXluZS5jaGVuQG1lZGlhdGVrLmNvbT4NCi0tLQ0KIC4u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