Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3979808pxu; Mon, 12 Oct 2020 06:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9zMPsP6doXvcR/wp/iaq23hWcq2tIa2YhPniKW7BkNc0t/IAtGGFwHuvEochQ4+cNj8by X-Received: by 2002:a17:906:60d3:: with SMTP id f19mr29241283ejk.141.1602509556994; Mon, 12 Oct 2020 06:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602509556; cv=none; d=google.com; s=arc-20160816; b=QemoEN3/3A4LhjiMP7gnLZbkPo74F7IuQT4kK3blfY96mq9dtT5hJoYon0KfSlKmxy YQ0P3/WK4LUVzFAe6xL5ZftKR/c76xM3wlwE2HszbbQQURHT77Rf0oF39tiCsLOsDjTe WLhBwO961jtgDrZzciZaNas/rQI9zxSaEl9cDJKyW+/ggFG9ViPNF56VfC3vvrxqM9rQ gwv58X3cCwMyZBIWKB4n9lllWCgSnSIk6aTnZ+qkHh8JjvYxXMtiIJrrj06c08zNYKV8 twFyBsfjg7ueZuDXiGNX7SsMXnr/xKrNItSvyn5Ib4Ce2XNPNuATBVv1k8KBINBuzq1+ YfZg== 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=j6qJ68jsAKbZ9YKXS9Job211qshOB/7LgiFTP2KAISw=; b=Bu94+klw0g9WmcuLX/YBIRJZdfEyJPWBIeX7fciYhpy+qN9OBkjGWxvjEMRZMjZuXP voALIRDxsNkC4RoD5kFt4BU0xxwkOHpbh5oE/s9zAw6LpQbeDrl+Mv4jbkU8bnQ1Y/97 as09TNVyqZb8YXKkCEeuGb3F6XTR+I3j6SZBDk9qs07a4GsTr6jv4UKPhBXy88hp6VED zPoL5IOQ0htlf7WGEQAr+tSJ9N6iLRDunkRmIYIYBVRtRle26KE9bvs3RHM6iGMK+hct q1dcsncN2N9oGBAt8NJgUML5JeqaIo9C/68o3obdn64ddBX1C0J/JXGObKxuPZMUn+3T urbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=E0myVmfg; 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 dt13si12497655ejb.195.2020.10.12.06.32.08; Mon, 12 Oct 2020 06:32:36 -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=E0myVmfg; 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 S1730241AbgJLM4O (ORCPT + 99 others); Mon, 12 Oct 2020 08:56:14 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53427 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726745AbgJLM4M (ORCPT ); Mon, 12 Oct 2020 08:56:12 -0400 X-UUID: ea4d93450b3d421fa97a2198de2e041f-20201012 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=j6qJ68jsAKbZ9YKXS9Job211qshOB/7LgiFTP2KAISw=; b=E0myVmfgn0Sqsnd1PYxq5Q0QZjV8Y4Y/VpHQIDrOOipsra+Bb+nzMqLycBICtQsYdNv2xq9N1wInXnk/57xvTFn5eG/sBiB+bVNTx1MX98Lvp4i3RvNrB/N8CklgvPTNpw+QUlur8CeLwHLVOFTb6v75ntKAjlqqQ36hYKqP4bE=; X-UUID: ea4d93450b3d421fa97a2198de2e041f-20201012 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.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 158006740; Mon, 12 Oct 2020 20:56:00 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 20:55:57 +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; Mon, 12 Oct 2020 20:55:57 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v3 10/10] mt76: mt7915: add support to set tx frequency offset in testmode Date: Mon, 12 Oct 2020 20:54:03 +0800 Message-ID: <20201012125403.8608-10-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201012125403.8608-1-shayne.chen@mediatek.com> References: <20201012125403.8608-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org U3VwcG9ydCB0byBzZXQgdHggZnJlcXVlbmN5IG9mZnNldCBpbiB0ZXN0bW9kZSwgd2hpY2ggaXMg dXNhbGx5IHVzZWQgaW4NCnRoZSBwcmUtY2FsaWJyYXRpb24gc3RhZ2UuDQoNClJldmlld2VkLWJ5 OiBSeWRlciBMZWUgPHJ5Z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