Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp45321pxu; Tue, 5 Jan 2021 04:54:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaSx+bj0cjVUF8BpqOm7mPVkPNd/7YaX7veoMgt/x4p0Hpif6ABhzjMEu4CayvQLmRX36u X-Received: by 2002:a05:6402:22ea:: with SMTP id dn10mr74675797edb.67.1609851272464; Tue, 05 Jan 2021 04:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609851272; cv=none; d=google.com; s=arc-20160816; b=XjKFBNnHHGoLq2EnM12o9e2vkEZwXfjdPqrpa03HP/O7JZjiKWzaLkEOOp65/vsM7C xtkpSGSA+2eW6jihRRVmYtOPSHcLfd4vnGw0csI3jlshm8mXmhR7yGTe4Xf0mF6W9Ndz /HdnPfqa4nK+leC40eiNFeNCO4Qeyh2eXTldnWghruLSDHNJmAkhZ7teOJfM8d/lRosW 7iqEKO+r7PFBhkIR3szLJVba5xDNOYWnyVb/JRDdNQ0yzLqR9BeiCcnRe/3LotqstRmT Zk2Mze9duK4GH+QshpBweEzeXn+k4mw2zQdvPs20U1/gc6qWEF+3PKTelreWkCl1/fn1 mSJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Y16O4NGC9i1JE22aNQI523AFd8PBU/B2jvOiquwlCWQ=; b=G+xsOgzJiccQtrJCQ6RVaFugNXgX29q8nsV/m6m6WGI86fB8u751I9U0HuFCu7oObk 0JpS2oSHp0rq2ZC1P9UpvIPAqLoQWKydrL/MOW503mdMhQAl+VgC+4hq3UveLe7xFX24 vot2btlwI5Gm3GqERtPxlMnLmva8Ew0CdnCcSWq4YwBFgx7T6i4EK/jYD3qkbLlTsl+L eie4A6/7EPczYx3ytOrqmCZTdsFEpKyM0ijIb2ainqlLo3WAXHfxgxon0G7EwUJEiO21 uEctUMJsSNZm4V6ROreD4QJkJYrYBfwf2PXuvT+88QtwmxO/u0h62Tdi1xAt4w8MRO0p YOJw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 v26si31491791ejg.723.2021.01.05.04.54.09; Tue, 05 Jan 2021 04:54:32 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbhAELbw (ORCPT + 99 others); Tue, 5 Jan 2021 06:31:52 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:44425 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725815AbhAELbw (ORCPT ); Tue, 5 Jan 2021 06:31:52 -0500 X-UUID: 7e705380f50740189101f6ae80db1669-20210105 X-UUID: 7e705380f50740189101f6ae80db1669-20210105 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] 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 1914351871; Tue, 05 Jan 2021 19:31:07 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 Jan 2021 19:30:58 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 5 Jan 2021 19:30:58 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH 1/4] mt76: testmode: add a new state for continuous tx Date: Tue, 5 Jan 2021 19:30:42 +0800 Message-ID: <20210105113045.17815-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 7E5E07FCAB5EEA3F854DA865564EF26F7A0991E141CB9B2D9F73D132B9646A5F2000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Support to set a special tx state in testmode: continuous tx, which is used for sending tx without time gap. Note that continuous tx mode doesn't send real packets, instead, it's pure phy signal, and the waveform can be observed by instrument. Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/testmode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/testmode.h b/drivers/net/wireless/mediatek/mt76/testmode.h index e4849946f180..6db8109a0945 100644 --- a/drivers/net/wireless/mediatek/mt76/testmode.h +++ b/drivers/net/wireless/mediatek/mt76/testmode.h @@ -140,12 +140,14 @@ enum mt76_testmode_rx_attr { * @MT76_TM_STATE_IDLE: test mode enabled, but idle * @MT76_TM_STATE_TX_FRAMES: send a fixed number of test frames * @MT76_TM_STATE_RX_FRAMES: receive packets and keep statistics + * @MT76_TM_STATE_TX_CONT: waveform tx without time gap */ enum mt76_testmode_state { MT76_TM_STATE_OFF, MT76_TM_STATE_IDLE, MT76_TM_STATE_TX_FRAMES, MT76_TM_STATE_RX_FRAMES, + MT76_TM_STATE_TX_CONT, /* keep last */ NUM_MT76_TM_STATES, -- 2.29.2