Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp764617rwd; Thu, 1 Jun 2023 06:21:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PmX/YO2RMeJIsIvF4p+zYSJg6CTKxEg8Q0Gdl/kpXvsMfUQzoa+gW89Ejyc6SI7Y+TurN X-Received: by 2002:a05:6a20:72a3:b0:104:28d6:5db3 with SMTP id o35-20020a056a2072a300b0010428d65db3mr2369715pzk.29.1685625713493; Thu, 01 Jun 2023 06:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685625713; cv=none; d=google.com; s=arc-20160816; b=pJrRANc358EVkbJgKVd93ZsdevL8GVAUq8wjhuNxCQxeJEdHtezkOD+WMQQjU3YSeB raMUIAhmO+UKlHIuOcpaV7qENuMWuKkxBKyVcdDYW9AZbxDKA/sHFGxRiIownUFC7laO PSzSU/xMfzqoH8qpKx+e8hMfvXPn4VASemKazjQ3/EAVbYGbJz3itR4Wx4R2nstSdxGF 256fn23oXD1IwSUK5H34CDavzqYvGrNaGC1fuwS65rTgKNDFY62nKh7he6hX+ri4NNt0 ggDBV4+QO0602rBGLOusm5Mqc85fsv0cA+0HVMejdPiMFOTCD1WpNdsk7xlE50BUifmE vFFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=XBM+StuYXMM4c+2Yk6bSLklg35/HdxEWQzE13hBMCBc=; b=wjU5Nu5QLKQMIXsE4HmRls90IGlGDGywk985GPYY7ctlkkQeld57w/OSGrg80ji1xB SmKJOnYj7sg5KyQ40gOrDQjo3JIyfOGmHag1i1qCuacvUl2Fbu5xJUOndS3OmgXAJHQX RtFwZV8gNXgRmoS8UdE2LLqDmE6C8cm1nASruOUdNwGDUP57mehnDQ6jHwcKS7QRSkEy DAyCUMfZO3X9SGQKpD09kzfA2hiyIuG1pkkcRIQvugT2/diLQWkgOTAf6UP/Kuh0RTOT VN/zPSoUZ6Kg5QAbaNqJiwU/K9y9OF2a1q4EfacZOHKzYWCo/XCuLQ87LOVc4xyl51r1 noEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D2p4SMwU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m29-20020a63711d000000b00530b7ef148asi2850523pgc.894.2023.06.01.06.21.44; Thu, 01 Jun 2023 06:21:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=D2p4SMwU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232651AbjFANRL (ORCPT + 65 others); Thu, 1 Jun 2023 09:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbjFANRK (ORCPT ); Thu, 1 Jun 2023 09:17:10 -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 3ED5797; Thu, 1 Jun 2023 06:17:09 -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 C84FA643D2; Thu, 1 Jun 2023 13:17:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AF70C433D2; Thu, 1 Jun 2023 13:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685625428; bh=uHA2wAXM4LSQn/5kIWbNPzoShRHoiSA7gHIIstYntA8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=D2p4SMwUA8YhEQ5YIKtTg8+gO0invp0x7bqf/yIKI7SzFwN6PQieI7qlc2sMqfJUV rCQK0raZYLXHK14qtqr3bIV1rXDKjcP6Kbbv19Tsx2w/Gqb13DqZeiNspqCfYu7mKn ta5167g6SStja+sOM9LRsGDTgPOr9t+pLgFoLJXr4v6h2Z67Ui3u3NAKR6jW9WyW/n YbskrDZvBj++199sw5gJaL1oNb/79kRkaffK+2nLk2wcWNViAPPJp3w1JggcMOKAxy h2FtXx2/dfsimOW+sIIs3tYb0Mmjhs2MUmWy1P63XAQeDMDBAMZgKdQ9fXf+uVpXHt lzjSmtB2cJCKA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/3] wifi: rtw88: correct PS calculation for SUPPORTS_DYNAMIC_PS From: Kalle Valo In-Reply-To: <20230527082939.11206-2-pkshih@realtek.com> References: <20230527082939.11206-2-pkshih@realtek.com> To: Ping-Ke Shih Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168562542522.17673.4276220170409263199.kvalo@kernel.org> Date: Thu, 1 Jun 2023 13:17:07 +0000 (UTC) X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org Ping-Ke Shih wrote: > This driver relies on IEEE80211_CONF_PS of hw->conf.flags to turn off PS or > turn on dynamic PS controlled by driver and firmware. Though this would be > incorrect, it did work before because the flag is always recalculated until > the commit 28977e790b5d ("wifi: mac80211: skip powersave recalc if driver SUPPORTS_DYNAMIC_PS") > is introduced by kernel 5.20 to skip to recalculate IEEE80211_CONF_PS > of hw->conf.flags if driver sets SUPPORTS_DYNAMIC_PS. > > Correct this by doing recalculation while BSS_CHANGED_PS is changed and > interface is added or removed. It is allowed to enter PS only if single > one station vif is working. Without this fix, driver doesn't enter PS > anymore that causes higher power consumption. > > Fixes: bcde60e599fb ("rtw88: remove misleading module parameter rtw_fw_support_lps") > Cc: stable@vger.kernel.org # 6.1+ > Signed-off-by: Ping-Ke Shih 3 patches applied to wireless.git, thanks. 3918dd0177ee wifi: rtw88: correct PS calculation for SUPPORTS_DYNAMIC_PS 26a125f550a3 wifi: rtw89: correct PS calculation for SUPPORTS_DYNAMIC_PS b408f33b35a4 wifi: rtw89: remove redundant check of entering LPS -- https://patchwork.kernel.org/project/linux-wireless/patch/20230527082939.11206-2-pkshih@realtek.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches