Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3884576rwi; Sat, 22 Oct 2022 01:32:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7hE9grLmhne0oMaGRrXdZHzhtB9mQ4a6yWjBZCgMUG3nxBETvgAatA4hYHdA1gDmxy3k8X X-Received: by 2002:a17:902:e849:b0:17f:f3c4:a2c4 with SMTP id t9-20020a170902e84900b0017ff3c4a2c4mr23097716plg.125.1666427518895; Sat, 22 Oct 2022 01:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666427518; cv=none; d=google.com; s=arc-20160816; b=BPrtb+Mey20+Z25OZyYAOP2UoFvr+8eGwGSHrNx63yEQ4mrHD/yJZjVMolgZk0vvUR /JLj5kjLsJE6NZJPgF5O2gavQ3S/0BdzlMceKwazW9rFwtqJWy7lGMmdNWR2z5tKOYqC 5itQHhGvnOewJ9F/dDwwvsb+GLpehWnF5dNDht8uOfRfzgJobQ6tr3+53rvzLUzXaRsc WgDDIElwVhuL3acAwsDLe/SfF+TgYI64Y9Yj9I3tL7Ts1XzKKjZ8Yai0gA/gqCRv+jcK u/+GcY5YZdnEewQe6dxnP0i2T1+6SxA2cfjnkNJT9xOd2uKJBfGaseGNbNJtPdp6PFC/ nDEA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9OkU7jflebU7ac1SOB6VUMqY0HxBV2bUBpUPRMJ7S+c=; b=smgbY+JuRbp/9BbMQyrEZiPkvSZREOSnvfxn0Y9mQhi/3ipzeRa1UOL5URi7n1jRrO ymBrJZHoKn1ajBdBl9hLeRcRctIBwfh2sjTFb32Fup+PGS4zRdQKpB2ofTXR5L/82cYD l5bQSECmFapIauVEOUbnLz2ErWZVaQzcwbVJfSFnWZqjlebihn26VUNl3yUBOvZSXX/a d8Sv+otaccu2T7Lw9ply6gNtKAWe13myUG2Z85G6ydGLgg/Dh7tpR4F/ZDu7nATa6ooi jjJY0EQZvl2aUtge8TxhdptCacjbPYojzW/phDWigHpGNO9ps/xoMG6ar1gH8K7FKteV kHDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PYlEwSdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a170902db1000b001865c1ecf30si1834849plx.176.2022.10.22.01.31.45; Sat, 22 Oct 2022 01:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PYlEwSdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232227AbiJVH6F (ORCPT + 99 others); Sat, 22 Oct 2022 03:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231847AbiJVHxt (ORCPT ); Sat, 22 Oct 2022 03:53:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 065CA29B8A4; Sat, 22 Oct 2022 00:46:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DFF1C60BB9; Sat, 22 Oct 2022 07:45:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F40DBC433D6; Sat, 22 Oct 2022 07:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424716; bh=tIBsBLLuzY+hkWm+XuxHlNQ6uSDfN7fZPVjIX6Wp4vk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PYlEwSdFGbUMqTGAZufY+87fuA3b8XGCo0NJH/rd68EDQmOugrQtgjJF5enkmvBeo ovskoGHRdviYlu0ir8lNUzn7LTRheuOhSYhveaHP3tcGirN6mbinnSGKMwADkyMtj9 8dmzIAWkjQH1nYFQOFBFzHwNry3996lubT2axyXI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Howard Hsu , Felix Fietkau , Sasha Levin Subject: [PATCH 5.19 249/717] wifi: mt76: mt7915: do not check state before configuring implicit beamform Date: Sat, 22 Oct 2022 09:22:08 +0200 Message-Id: <20221022072458.937520590@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Howard Hsu [ Upstream commit d2b5bb6dfab29fe32bedefaade88dcd182c03a00 ] Do not need to check running state before configuring implicit Tx beamform. It is okay to configure implicit Tx beamform in run time. Noted that the existing connected stations will be applied for new configuration only if they reconnected to the interface. Fixes: 6d6dc980e07d ("mt76: mt7915: add implicit Tx beamforming support") Signed-off-by: Howard Hsu Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c index fd76db8f5269..6ef3431cad64 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -23,9 +23,9 @@ mt7915_implicit_txbf_set(void *data, u64 val) { struct mt7915_dev *dev = data; - if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) - return -EBUSY; - + /* The existing connected stations shall reconnect to apply + * new implicit txbf configuration. + */ dev->ibf = !!val; return mt7915_mcu_set_txbf(dev, MT_BF_TYPE_UPDATE); -- 2.35.1