Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1152688pxu; Thu, 8 Oct 2020 04:52:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxvZo66Mm/Gm7Lk9FRs782E2kyJryOTPEnzNvRKDfic1XedfWA2nS8FxesxVMD/T/gvm/T X-Received: by 2002:a50:d98d:: with SMTP id w13mr8963712edj.37.1602157974033; Thu, 08 Oct 2020 04:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602157974; cv=none; d=google.com; s=arc-20160816; b=FX1gQEINX4jWvzx9Ke/QPnKeLHlH6dusCvBKcTZUM2Tm4fNm92Cfu7cMjZw+RfPEdZ lSyyjF+uwNzc0p1L/sTmOO03zVoFuo568JB2dJ8a9f/miMgcqxg2qhgoSLdUmN4FEBag iC7jU54RgBlCdZWPfdpBAwILXdI/6Tp4NA5/eBPBIrYPHqE/fw/RVeLJdI6raYRjE/EC xnUxIVm7fUJW1eDgj1AktiOoHtZr4U9hg0Yd+l0ZKYxpsl9KJr/J3T0cHRfkRAV+mTeZ GWh0XQsGig29dBKHPliB8G3Iibwte62i8UXz36bZ1OI1dHt11Ae9kklGnoVVOAMQK/nl K1Lg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y8SErLPJ/2MtYnV7AZG7G84PhcKcS0BnSRx4cxeN2zk=; b=tJS1TaFMAIguWpKB9kLJ2E2/Kcbpk0l+HNg8HAUnNPRH3P/x9uuefCW+2cekKJEnlZ mNK0f76eOaPAcvdBoASbIQ6Z/uRwgdDX+LPjXgpzmOLstW9arAa8ItFQ4ZcmsDqaVqK2 P0P74SC3yA3KbiHXHN+g5YAVZyTRSRjHRZvrzJNxGbRQ9VW0Q6L28QJmhXspFJ1bmZ7g CuSGcHUlI90bbj0eLMLWOk7nPbLYgi0jtkB58gIxNUdZ0Dd81M8SkdRjLDfrRbjM8E0/ RKu+F+CQQ7U9YXR6AQlKH0OqWRwm1rKeg9eUMIjeGWIqJ/DnNW59+vYX/LT4iNqE2Eld 5LDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=cxDuUVTV; 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 h5si3335263ejy.563.2020.10.08.04.52.29; Thu, 08 Oct 2020 04:52:54 -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=cxDuUVTV; 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 S1729847AbgJHLd1 (ORCPT + 99 others); Thu, 8 Oct 2020 07:33:27 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33947 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729833AbgJHLd0 (ORCPT ); Thu, 8 Oct 2020 07:33:26 -0400 X-UUID: 037c8011df074a2a8d09ce0e34844743-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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=y8SErLPJ/2MtYnV7AZG7G84PhcKcS0BnSRx4cxeN2zk=; b=cxDuUVTV+rMwARyrx1Hi4Gfw73u2Lp+g4ceF1pyG4i1GIQ9W9CppAqGiD7Nu1ZaD3Yxq4zrRvqyUmiV+CYpypWdRQEVioNGAB7Yz/O1yG2Q5OnYOUxsZcrjGXNc8mO+tRSGiyKHbKxuW2Xx6HN/1H7k8Vr2JuT3CRxArgo4DuiY=; X-UUID: 037c8011df074a2a8d09ce0e34844743-20201008 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 520007122; Thu, 08 Oct 2020 19:33:16 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Oct 2020 19:33:15 +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:14 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH 10/10] mt76: mt7915: add support to set tx frequency offset in testmode Date: Thu, 8 Oct 2020 19:29:04 +0800 Message-ID: <20201008112904.10620-10-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201008112904.10620-1-shayne.chen@mediatek.com> References: <20201008112904.10620-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E7BEB9366F865D62E26A1C70124A8D3E09C346FDFA2E958A7CA0B96678545CC02000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org U3VwcG9ydCB0byBzZXQgdHggZnJlcXVlbmN5IG9mZnNldCBpbiB0ZXN0bW9kZSwgd2hpY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