Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3714416pxu; Sun, 11 Oct 2020 21:40:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1AYAIpkoOs+btxPxO0v5bsHxUBK2tnAyC4tKDB1THXSekN+OEDyRZgQCGooYlntM6XR5b X-Received: by 2002:aa7:c054:: with SMTP id k20mr12356135edo.224.1602477620757; Sun, 11 Oct 2020 21:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602477620; cv=none; d=google.com; s=arc-20160816; b=UdANJv5AluKRnNIvwt5QwJuRCH7Hp6muDtLlWt0pfBHuVLUDsbZSzV0gIg29iT5LEK IjGsuwu4h9uZV9Qh3Juf0zYYfHjADDvDf/LJyMKR3BuhzKfzBxIP6qOptt3obnzthchn Rc7043yiR2ruN873nJU02eZ1YybP0qAUU3EWH7+lVN/+pXKjzIhRnwX31mqT7bnRBvJ5 76YRwFvzG7s+E0gGkj0305ppwYfav7LkOw81lnxwOYyyxvWDs9k+k01ZODDuNWxe2+ox wc0zjnPyRu3dkFxE74Vt/nek5Qi8hdP1UJKVJymwKJ/eV4HocrzTrL3PAGIUn3y095oD ZITw== 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=fa3GiKW0m/TxGK+4xfgHHEVJH2JwT2npql2UYkdfI8I=; b=y4hHSeSuu8jn4B5FK8B7A4K0c9ZHQ1QIgTyCAhr/nTY4fblXf8P1haqSyJzou3I3ec izi/WZDcCQte+zp7247CF3v4TM35mK6iYoJFfFO15n0hvXa7mqxrjY5Y41HWzHslbkKW C/AouuIoBfN7/DS3KL1Rows/203hCuSFMOVpo8DfgfHxYGRfpa9ch6XziHfpGzFYDJ/7 ANqYymvO/kPOqge0g4oROi1zWMbbkCqMeOlzTaXx2PPJHjWRoQ55m+Xqy/pwas2F2H9O KwEd6S0Vot1Ob3tt0q6lQjDn1uqRAmwl0x2wRe6gzkrNuOYXc9E8nwM8tWmPXDpl+2fd uR6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TqMThGDv; 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 d23si3470971edy.397.2020.10.11.21.39.43; Sun, 11 Oct 2020 21:40:20 -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=TqMThGDv; 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 S1727236AbgJLD0l (ORCPT + 99 others); Sun, 11 Oct 2020 23:26:41 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54570 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727207AbgJLD0l (ORCPT ); Sun, 11 Oct 2020 23:26:41 -0400 X-UUID: 57472bf0d34c4d20a272869716ce12c5-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=fa3GiKW0m/TxGK+4xfgHHEVJH2JwT2npql2UYkdfI8I=; b=TqMThGDvVBbqM4v3PGn5vQtxwaaNZqe7rSBvV6sEbnIh7O+LyfDVL+wuWW8PPmV6oPx55As7kr1OtsuE/YzOujRdIyTkb66P8xyrWTsuAEwYSe7oGOFpv0FDs3JVGQkH3RT6SkiahcZP/gcrDJbtEf2iES8cGMHA9VcwaiZ9VEA=; X-UUID: 57472bf0d34c4d20a272869716ce12c5-20201012 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] 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 1265121055; Mon, 12 Oct 2020 11:26:35 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 11:26:31 +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 11:26:30 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v2 10/10] mt76: mt7915: add support to set tx frequency offset in testmode Date: Mon, 12 Oct 2020 11:25:38 +0800 Message-ID: <20201012032538.21314-10-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201012032538.21314-1-shayne.chen@mediatek.com> References: <20201012032538.21314-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 OiBSeWRlciBMZWUgPHJ5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