From patchwork Mon Oct 24 11:28:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9308 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp464900wru; Mon, 24 Oct 2022 06:51:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78lkVdH4fFyQCH7GJle2Xt3LEpYJKn6pJ9lv74De5sdBcuqjTpCmqyKVR83QbOPQBn3jSN X-Received: by 2002:a17:902:ef47:b0:179:d18e:4262 with SMTP id e7-20020a170902ef4700b00179d18e4262mr32913256plx.22.1666619480171; Mon, 24 Oct 2022 06:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666619480; cv=none; d=google.com; s=arc-20160816; b=BTqfFGxvoFDlT7/Jcsnap8EF2wG4xX6YoVDimv9ViaA6KTX7q55B+cy0yalUlyOHOS 1rCgVpGh2Hv18bhEeLo/W7cOBrvtXTl0Yp2xVy2ersNbszCrYI1MObD0ViLVUQf2xm8Q 1dG+CihFlGzx1jz56Y0JWxh1Ab8i+DuoAfIOtZ0KBmadOi8T8PQqniZy8y1avnZ9aJVf XpcUceD3jscM3C3TsdYih3HTdob/u6Ho/PCOyLFVGRjWK4Js5OhFmsVPPV/cDtaVtRf+ ufLQJlSUVi+ztN8yVzKMCt8q6LQv/evWkpuR+zG+xlMLAGyKMqbZjVzIPXDd7KHbUUSX Pe0g== 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=ouG/kqCIi62aSdZ5SNlZ71FeUwqFod73Q5TGea4kZS0=; b=gwTnWX1rJOta90hy8doq39TgaTBCPIKbnmCQSJmR9a5Hcf1fkR7xL+dEQk82QVxvTx m0YXKBeeInwQUy0vkIiWTJ6x1Mn3ajIOaYaAFJFbbrOb7C9YCrnfzzC94YXf4GxFw8Px xcl0CwAMlDcZ+BM7BcBhR4Xw0Yo1lACG6pSeR4jTtPkYO3Xu+4QWtm/4T2MEHQgpIoFe YkkIhzFSY3iFVAXBBKY9cKUj+I+cyOlBFRFvpBI2PPxkItyU3GaMcrpF9CRulkSfINzr BQ/Pol0K5L6/oAKQImUifZbvYitl25B0cC8B4ch48v1Ua+41wweX8jYJkUQCVlJpUnIy 3X7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YzkNpK2U; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a17090b068600b00212fd5f1ad5si5164599pjz.160.2022.10.24.06.51.07; Mon, 24 Oct 2022 06:51:20 -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=YzkNpK2U; 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 S236479AbiJXNua (ORCPT + 99 others); Mon, 24 Oct 2022 09:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236583AbiJXNtP (ORCPT ); Mon, 24 Oct 2022 09:49:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA120B601C; Mon, 24 Oct 2022 05:41:27 -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 0DEA161325; Mon, 24 Oct 2022 12:40:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F21BC433D7; Mon, 24 Oct 2022 12:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666615240; bh=Y8i6qm5VeunCheqmpXC5AquJIRvQ8kPAhWHotNHrpjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YzkNpK2Uy+XTjAM4tcuT0KR62sXfQG+vQo12XJYSXDD9/SwkqvnBJm5NLurMw/vvg mgnYE+fHOQzrnNPxnhUkJ+3j3euvwvJsWvI5Bh80TiX3vfRqZsrhNJH2bQbYNFsA/q mf7ZgS4USb84llRXHYoPQs1T9dYeXY8jK81CwL5k= 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.15 176/530] wifi: mt76: mt7915: do not check state before configuring implicit beamform Date: Mon, 24 Oct 2022 13:28:40 +0200 Message-Id: <20221024113052.983268479@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747577188326958080?= X-GMAIL-MSGID: =?utf-8?q?1747577188326958080?= 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 64048243e34b..31c1d4bc78dd 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -12,9 +12,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);