Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3199958ybb; Mon, 30 Mar 2020 23:52:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt+vVuHIcpPdlDDUnoliBYu9QlVNWHH7OGZx7z/8dvBPsSZVjZXVjGZT88CvXr+Vghm+oS3 X-Received: by 2002:aca:c390:: with SMTP id t138mr1067293oif.117.1585637574849; Mon, 30 Mar 2020 23:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585637574; cv=none; d=google.com; s=arc-20160816; b=0ZAMley24W2OX2667cxtoHyaYcczFctgXfO9U9VDOCv4n5/9KHsFRwFtwG5AwGUth6 hSO4FMID3639odNCkbndRDYeoJI4OckEKdeWKgeGXVYUMTWoU7j8WjXPA2Bb/094uKqD hLWjv78LcTzggS/TmYT+d5dIKH87z81FrBC5BUE4mNcs45JgM9NGYwVAcC6tN/rlanAx xjWq3gmDpEhJY5IQvk1fJgWOWMW5iFbRaO4ayA/9Yu7Bkc2GFaWrcPf6FMF5A/5P5WDQ OqaPfI+z8IhQGcNAfCfxxux/7+8YhHBvZTTxWcqKUgis+hbvNzaD92IcFaxB+ZPHgggo rxyA== 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=dWeUYI7xrUUPpwG9uIR3lS1sfk04c5uMrHZowKdcRA8=; b=wC5fT6WHBfzUIGrPFVWcw84xOSmwcNSXgOCcjn7DOIMNMZn9upH5HPm2usXFLJ8Yyo S5DXfXTh+JvB1iqswzoagzWO74b3Q1zQt1uOmBn+MBlFLNUpCyuz9CztqcaKAoNJ45XO sXzIys+clftuZR6ZSU+qwYmVSmJAsGgLBTuAWUgzs6XhnYPlTZaZtroqdWBnWzcO0aNy KR2xu9VmwBDHOqh+o4j0SxlwfyYcRyVT1EB1JEeUBOMt6FuNTFpNlK0XTb/uo2pup2r+ Dw3u5CAaYcWECe1fMnpAyR2A7DNE3raNt4agnOPiJi9FnHucsesbPvaalj/bzKQScxN2 zakw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kKAvCiQZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x5si5248058otp.126.2020.03.30.23.52.27; Mon, 30 Mar 2020 23:52:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kKAvCiQZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1729928AbgCaGvv (ORCPT + 99 others); Tue, 31 Mar 2020 02:51:51 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:59223 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726299AbgCaGvv (ORCPT ); Tue, 31 Mar 2020 02:51:51 -0400 X-UUID: 4b49966a83ff461db690b092e6bfd3be-20200331 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=dWeUYI7xrUUPpwG9uIR3lS1sfk04c5uMrHZowKdcRA8=; b=kKAvCiQZlWcsvD4NLcuYMZM3Bmt7JKbTHxendko8EMmDGkfrhyT3d/J/qQpNmfP0KWtANPK50DnwjHHvIcj9ZO+3k7P1ZMLwYnnMCJZ8kOyozbF6t4d3zWqeDRpVfOeIzi/G9NhUx59yKaxnHDynAw1b4gaAOgz3B+bEUyOs5L8=; X-UUID: 4b49966a83ff461db690b092e6bfd3be-20200331 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 94718106; Tue, 31 Mar 2020 14:51:41 +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.1395.4; Tue, 31 Mar 2020 14:51:39 +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.1395.4 via Frontend Transport; Tue, 31 Mar 2020 14:51:39 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 3/4] mt76: mt7615: cleanup mib related defines and structs Date: Tue, 31 Mar 2020 14:51:37 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> References: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> 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 U2ltcGxpZnkgbWliIG1hY3JvcyBhbmQgdXNlIHByb3BlciB0eXBlIGZvciByZWxhdGVkIGNvdW50 ZXJzLg0KDQpTaWduZWQtb2ZmLWJ5OiBSeWRlciBMZWUgPHJ5ZGVyLmxlZUBtZWRpYXRlay5jb20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