Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5403775pxu; Thu, 22 Oct 2020 01:02:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEQrFCh6IFO7P8IRHl6nNYtnKsegH7hN4Hu/Qdrlk4ROeKV3CiVj8Cs09H0RxV+or25Im7 X-Received: by 2002:a05:6402:b66:: with SMTP id cb6mr1043763edb.110.1603353746703; Thu, 22 Oct 2020 01:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603353746; cv=none; d=google.com; s=arc-20160816; b=M8v6dBgzd9FhmAHy+v3+VLRvufq5ZBFKVE6SoCtUpzEIiWYz2E9yzSTEsscKxEuTGg Avrxc3bg1e7A59+J7rAkcEjZFK0k8piR5Lt4RKU5wCEul1mkjPHTNDiC8tQYAgAgk66G 0f9nZUsZxK8OpQnYD/ZtDc3jxcFwzfWhdzHNho8sCNxuYRZnN6UskIjKDf7uz21MuWUX Exf4bo/CktdXYjzBpfRoedfWfERNmYWC/nLG4S3pr2AcIi7catf1HgoF9AhVGK06hG7h SsT+pYswXS+5ItNAEd+RVMxkcBLXun6d1Z7mLoYNQeYr6VT01cBHL7uy78wSgkRTnEo1 t1uQ== 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=Xc9AEzvVsB14dXFTxBdxWUYms3Pt4khR3WyeScYHvVw=; b=r8iGPy5bWpiFJSKtsKYnA8mAfnVaN4M26OIDrbb72BjmfLOkcSI+cn5rb9g6BAwUXB bJhpbtZyXfgHaugYkQEr16/OxjR2sLBmGT2bTzg9MfDWC3IzmoACchqClStQbOGDRArm duzb3kZx42aY9aEL3pns7rz8SYJO8lw1hlNCY7xE0d2HRMr9B2ctZWWZ14rKNIPDYTQh sV//J2yJr+ztqJreVBS/KziRFHtQtZ0RjfyN+N/UbK7YB9DnGRlc5Qtr2HvSAgN5Uggl oMwaG81/Y+XGFJGMpuGNXhHF0lbhz8M2iKnWtuP0Do34XTwp76PCPwFqxURtt1YMdn8c uKlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jz24tWuQ; 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 q25si479911edw.184.2020.10.22.01.02.03; Thu, 22 Oct 2020 01:02:26 -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=jz24tWuQ; 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 S2895047AbgJVC2q (ORCPT + 99 others); Wed, 21 Oct 2020 22:28:46 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:53853 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2895045AbgJVC2q (ORCPT ); Wed, 21 Oct 2020 22:28:46 -0400 X-UUID: f80af63315d1490b9343b2a9f0e4d030-20201022 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=Xc9AEzvVsB14dXFTxBdxWUYms3Pt4khR3WyeScYHvVw=; b=jz24tWuQhDkfvxMkjhqrvDRVk+1SXz3k2e24z76TUGQj5AWAEwz85Twdi17XHwJDoRlmhJuuJLVA67uJUr/TC0K6BDatEy8qvsXjR9lFFuQMVDKiGHAtlOlk+Rv5THi1uFYtpAxP44FKxuc+O0bO0QAkKIfda9M42r1GWfafDts=; X-UUID: f80af63315d1490b9343b2a9f0e4d030-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1957443281; Thu, 22 Oct 2020 10:28:41 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 10:28:40 +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, 22 Oct 2020 10:28:40 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v4 10/10] mt76: mt7915: add support to set tx frequency offset in testmode Date: Thu, 22 Oct 2020 10:28:20 +0800 Message-ID: <20201022022820.3077-10-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201022022820.3077-1-shayne.chen@mediatek.com> References: <20201022022820.3077-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: CB4A3D2A80CB3F71F154246CEE489732BE5F3B5B1E04D93793DBBDF147D4C7B02000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org U3VwcG9ydCB0byBzZXQgdHggZnJlcXVlbmN5IG9mZnNldCBpbiB0ZXN0bW9kZSwgd2hpY2ggaXMg dXNhbGx5IHVzZWQgaW4NCnRo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