Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp130874pxb; Thu, 14 Jan 2021 01:37:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdVbFjmLg+jJoe0wIUGt/Afa6ZalUhFVVNnFvzw7Ue9G2JuMYfg5Y6dDkSuOIYbmQgKokY X-Received: by 2002:a17:906:3094:: with SMTP id 20mr4531714ejv.218.1610617037084; Thu, 14 Jan 2021 01:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610617037; cv=none; d=google.com; s=arc-20160816; b=sjt67AGuctvxxv7UQVBXjGZQGnRqyYNcj4teuRPF7viyOpApEBmlpRX5sdFDzGV3Ns b4W4KTPdY19+SpFb8Dg0EFOByvuiUA/MT40raVbzQB2RbLU7i+HEegG/ij3LFaIGmd5Z RUk/mKTayxX/buINDzrlTKnP/55rK+SXmIgWD+OFzmyg6ELdQngm7Unig2XHnTd6PB6I IOhIfE7VhfS5JPL76gDOkpglzCVJleVuxk/6BS6T4eBtMth2nbEZtDYk+BPYZ/tGOWgj krqt+ZvLNIQZMtCJvc4bVvZ8Waxq901WC0ioyf5R36YMMVseHnazyNCtiJllgd0Xcl2j UamQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=NoyuDLH/uTNtcownHjy45bgi6oB6avEVSl4tL4ZrXdE=; b=0P017S2SYMOlozAmcEot1+rowv1iDwf1N5BD9LV6QnnvOfTBsCuRXIeVPgvog6vg+4 aYqpqmhuP3jSlNGbi4FVBh69ClVg3F5BQaQZYzGtrR5OfNJCsRdnuLSDLaqyrBsYls/L rzxLbAblwijgAi5xpn/g0vYkJLYSU8HbCfn7RTp/a5C3cPXi+m25K76CU0kMeiktttUc gtgoYorCAn4787e/PcE2/qel5PhTZdKgr+IFal0E3b6ra6WdrpqCnc78TaBzhKqhDoAn fFg7yupfnTfTzhPwdJrtnowpiGq4A/HoxWK3PVvLHVn57PeBndvf8qC3zULoZrLAwa0K 5DqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Gk2pDQd6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k23si2353267ejk.337.2021.01.14.01.36.53; Thu, 14 Jan 2021 01:37:17 -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; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Gk2pDQd6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728472AbhANJet (ORCPT + 99 others); Thu, 14 Jan 2021 04:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727778AbhANJer (ORCPT ); Thu, 14 Jan 2021 04:34:47 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6FD2C061575 for ; Thu, 14 Jan 2021 01:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NoyuDLH/uTNtcownHjy45bgi6oB6avEVSl4tL4ZrXdE=; b=Gk2pDQd6svRbj9hZ6kLeg+aUCQ MC0ESatxg/M81/0SGc3OzpqT4Mi4aG4UM07iuVcXjTC7Ay8z9NYM+HaxzJL1I9/xTiXbkeR3S7TqU GgXIKZcqUP5dRR0OT5xQ0Do6U6SSTm5E/l2mF98yz9VdvoefqscDRzJmgPQc7hRDouLw=; Received: from p54ae91f2.dip0.t-ipconnect.de ([84.174.145.242] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kzz0k-0004yu-C7; Thu, 14 Jan 2021 10:33:46 +0100 Subject: Re: [PATCH] mt76: testmode: add support to set user-defined spe index To: Shayne Chen Cc: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek References: <20210105054124.5946-1-shayne.chen@mediatek.com> From: Felix Fietkau Message-ID: Date: Thu, 14 Jan 2021 10:33:45 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210105054124.5946-1-shayne.chen@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-01-05 06:41, Shayne Chen wrote: > Add spatial extension (spe) index as a configurable parameter in testmode. > This is used for specifically configuring TX path, such as different > WF TX priority, number of antennas and spatial streams. > > If spe_idx is not set, TX path depends on tx_antenna_mask; otherwise, > both spe_idx and tx_antenna_mask are referenced to decide TX path. > > Signed-off-by: Shayne Chen > --- > drivers/net/wireless/mediatek/mt76/mt76.h | 1 + > .../net/wireless/mediatek/mt76/mt7915/testmode.c | 15 ++++++++++----- > drivers/net/wireless/mediatek/mt76/testmode.c | 4 ++++ > drivers/net/wireless/mediatek/mt76/testmode.h | 2 ++ > 4 files changed, 17 insertions(+), 5 deletions(-) > > index 7efad685a17c..f215b377d7fb 100644 > --- a/drivers/net/wireless/mediatek/mt76/testmode.h > +++ b/drivers/net/wireless/mediatek/mt76/testmode.h > @@ -29,6 +29,7 @@ > * @MT76_TM_ATTR_TX_LTF: packet tx LTF, set 0 to 2 for 1x, 2x, and 4x LTF (u8) > * > * @MT76_TM_ATTR_TX_ANTENNA: tx antenna mask (u8) > + * @MT76_TM_ATTR_TX_SPE_IDX: tx spatial extension index (u8) > * @MT76_TM_ATTR_TX_POWER_CONTROL: enable tx power control (u8) > * @MT76_TM_ATTR_TX_POWER: per-antenna tx power array (nested, u8 attrs) > * > @@ -56,6 +57,7 @@ enum mt76_testmode_attr { > MT76_TM_ATTR_TX_LTF, > > MT76_TM_ATTR_TX_ANTENNA, > + MT76_TM_ATTR_TX_SPE_IDX,In order to avoid breaking the ABI, please only add new entries at the end of the enum, above the "keep last" line. I'll fix it up locally this time. - Felix