From patchwork Wed Oct 19 08:26:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp212045wrs; Wed, 19 Oct 2022 02:06:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JYcgxojo2tghwC8h39sypW15/sDgvLo7JuKgeTlOOeg9rMYPt0uQzQxI8ACg4WhHhMyz4 X-Received: by 2002:a17:907:60c8:b0:78d:bc56:8f04 with SMTP id hv8-20020a17090760c800b0078dbc568f04mr5677298ejc.560.1666170396058; Wed, 19 Oct 2022 02:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170396; cv=none; d=google.com; s=arc-20160816; b=itTKyGKo3XT2TumU0HBR81aEyZG6RdBn0MOreC6qBtHpIVLN1/5JnlSA4ynWU9m9yn czpy9cJZ9Ul4SicZ3EyrPtiUKQhTd0gqEfMXgxgSJl2NvlCYQJJ643SbINtSTHKeIMAk H9S1QO8Cg6D1ugZWbydm3wFlAQGuVkQwvVjHuKUcLZWjva5yhsJrqVXIwaE3j/fxFvGe TlCI6whTN1vLHiflJJmiPt9fZCAsvggA0fEB4Mtq3RSdO4eb5UviMGJBN0C+XRxXnbRh 1Th7Oo+LQ2GWKHoW6jvA7P5v3LLmO5Gzme+RVmK8OfdfO/NP72Ty5rCAowIQFYT00xTK oyEw== 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=Llq8OCG9KdfyL0BRpf81TnExQuZz39CRblObR+cbLVt0FSk/fTJj76XGY0oWCxwiV8 3heSCxnJJdtWMsmhNvNZnHYjOmczPV/Tu/Kafk720Y4gl5XycqjZJcD7NIjlDtHWPRiI Y173NdFgy2RYLia3ERtfQ7rYOV+DxQy2s9goKTgXjYaJv3oTSHePkGDMMgCXE1Rxn96C Tl/DJ0NmgfPFgfhg6mp+tcaNLhknf3gw3DQ/rP/Wzia0xoaN/AIVZBvoZypgeQQKNzNM h2o6GYS9TyKGDWKba4DnL+y31J2bDBjFraVYd7tupdFjQixcmZZCt+CQAaCa3dIL341G X/YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dIQu+Not; 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 ga13-20020a1709070c0d00b0078db1343eedsi14272233ejc.774.2022.10.19.02.06.04; Wed, 19 Oct 2022 02:06:36 -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=dIQu+Not; 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 S231864AbiJSI5O (ORCPT + 99 others); Wed, 19 Oct 2022 04:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231800AbiJSI4f (ORCPT ); Wed, 19 Oct 2022 04:56:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 447589D516; Wed, 19 Oct 2022 01:52:36 -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 41BD761820; Wed, 19 Oct 2022 08:51:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 567C5C433D6; Wed, 19 Oct 2022 08:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169477; bh=tIBsBLLuzY+hkWm+XuxHlNQ6uSDfN7fZPVjIX6Wp4vk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dIQu+Not6mHqXQXqvM/AHGv/z0v7Zu4pFBGGXeFkIIVK8dQO/FlaCFpm9xzix7ba3 PalNgosjS++MQnEFB07+S61zKhZEhWqOCM+RFrvurNhar1CA61J4F28RNprRKsOgwU KocQ8ymW04QY2KDfZaAjYaPZlkJNFlnxZlppmBUs= 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 6.0 291/862] wifi: mt76: mt7915: do not check state before configuring implicit beamform Date: Wed, 19 Oct 2022 10:26:18 +0200 Message-Id: <20221019083302.867996062@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747106289224343602?= X-GMAIL-MSGID: =?utf-8?q?1747106289224343602?= 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);