Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2270973rda; Tue, 24 Oct 2023 19:12:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0Tns553hoGIbBg2GnJjgbGsTKBPL1h/leAbBF7ysfM5eL7XaM+GAkSXOlWw3BwjQ6tfsH X-Received: by 2002:a05:690c:d81:b0:595:80e4:907d with SMTP id da1-20020a05690c0d8100b0059580e4907dmr19016702ywb.32.1698199967772; Tue, 24 Oct 2023 19:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698199967; cv=none; d=google.com; s=arc-20160816; b=TdPMENhwRwaHzjiO+Hr15fb46+bUDKdXrX/o+sf+uCcZl03Ljq8O/dUf+Mmc8BrT8n AVzkVlqHQgZDuE3p8dK4pxAx6aG3k1mWYA85Zib36j/an2HFwKa+Wks5sUhgKhD7txfz Y9pCS8rLsvVJdTrJShna1cNrsvFF1K3Okp5/fzHuYKFk39pfBe7FMbA2kVQZa8qDqgch kuApYPpnhwdIXd1RoEpp6Js2THc5i6WKH15Gsvwln0YBvtLtNpRMvoQTaeipYU4twBIH 5Ilwk13R8axEIDXMR0wU5B0PMje2zKqCVZtqnZDQjl7VThk0wiOrEEdV2uiTtaM3GeuI /7gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=kR/ncobeZj+XEzT4JRkX9ewzTuQvbB7ReVMegmHNVY8=; fh=pZpLv3JBu7ewThcXtBU3x3uGUeTqUHmHtpmV6AvLzGM=; b=Jl4Gy1bisCMTSqa+1bZF4D6N75PDsleFQPVM67tHtng5zhN1S4Hx1mP2sOEfv58I45 GERKf4qMjJ/0OLs21M3XwW/26GSPRxn3Hpkjy1GWWMg3SqmYovekOlHZ1cdpkK139+bs Ew6UxCcNwR7JQYAIBgG/45FSffl6I+2JXRrN9o8QGLYqKouoTeBt4CqF9D7n1PMosVww KyNKJ0zQF6eoJUnQBE8euBFg06moYSC6THCS2EMK1Lv+QRhOcQDe683wSbU+HgaBjJWO +9xy7pfDm7WZeYwigbDTugMV45XSt8GL62pTS31B0QS77/9f/x2aGolVZAYc8CAE5uHg NA1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c190-20020a814ec7000000b005a7bbdb6b38si9478784ywb.312.2023.10.24.19.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 19:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7C78B80B9502; Tue, 24 Oct 2023 19:12:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbjJYCMk convert rfc822-to-8bit (ORCPT + 52 others); Tue, 24 Oct 2023 22:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjJYCMj (ORCPT ); Tue, 24 Oct 2023 22:12:39 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA8710C6 for ; Tue, 24 Oct 2023 19:12:34 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 39P2CHyeC964703, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.93/5.92) with ESMTPS id 39P2CHyeC964703 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Oct 2023 10:12:17 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Wed, 25 Oct 2023 10:12:14 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 25 Oct 2023 10:12:13 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Wed, 25 Oct 2023 10:12:13 +0800 From: Ping-Ke Shih To: Dmitry Antipov CC: Kalle Valo , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH] wifi: rtw89: fix timeout calculation in rtw89_roc_end() Thread-Topic: [PATCH] wifi: rtw89: fix timeout calculation in rtw89_roc_end() Thread-Index: AQHaBob2+arQHghNX06nliqfXd7SW7BZxCDQ Date: Wed, 25 Oct 2023 02:12:13 +0000 Message-ID: <18db194927c944deb189a0c4dee78df0@realtek.com> References: <20231024143137.30393-1-dmantipov@yandex.ru> In-Reply-To: <20231024143137.30393-1-dmantipov@yandex.ru> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-originating-ip: [172.21.71.113] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 19:12:41 -0700 (PDT) > -----Original Message----- > From: Dmitry Antipov > Sent: Tuesday, October 24, 2023 10:32 PM > To: Ping-Ke Shih > Cc: Kalle Valo ; linux-wireless@vger.kernel.org; Dmitry Antipov > Subject: [PATCH] wifi: rtw89: fix timeout calculation in rtw89_roc_end() > > Since 'rtw89_core_tx_kick_off_and_wait()' assumes timeout > (actually RTW89_ROC_TX_TIMEOUT) in milliseconds, I suppose > that RTW89_ROC_IDLE_TIMEOUT is in milliseconds as well. If > so, 'msecs_to_jiffies()' should be used in a call to > 'ieee80211_queue_delayed_work()' from 'rtw89_roc_end()'. > Compile tested only. > > Signed-off-by: Dmitry Antipov Thanks for the finding. Acked-by: Ping-Ke Shih > --- > drivers/net/wireless/realtek/rtw89/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c > index 4bfb4188de72..15196f07b5c0 100644 > --- a/drivers/net/wireless/realtek/rtw89/core.c > +++ b/drivers/net/wireless/realtek/rtw89/core.c > @@ -2886,7 +2886,7 @@ void rtw89_roc_end(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif) > > if (hw->conf.flags & IEEE80211_CONF_IDLE) > ieee80211_queue_delayed_work(hw, &roc->roc_work, > - RTW89_ROC_IDLE_TIMEOUT); > + msecs_to_jiffies(RTW89_ROC_IDLE_TIMEOUT)); > } > > void rtw89_roc_work(struct work_struct *work) > -- > 2.41.0