Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2409494lqb; Mon, 27 May 2024 20:53:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXou0WNXP8z1Vgf71BQTpwCBwyJx5hxdvYfa8C/elfK0ji+NX1KdYuZeo8BvAWd4eMd3/xjuuKkMFqAQmi4o5LbONT0VFdbYDB0m/eb1g== X-Google-Smtp-Source: AGHT+IEQ3LH/g6f9K5EJr+wXTgqnoXb7LL6pvoVmEUqbvB9rQMCP+vQEGQ9zb13RRxAduMyBb83a X-Received: by 2002:a05:622a:591:b0:43a:cc86:568d with SMTP id d75a77b69052e-43fb0e8f674mr143253431cf.23.1716868396251; Mon, 27 May 2024 20:53:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716868396; cv=pass; d=google.com; s=arc-20160816; b=EJqFsiQ35IZusQO24odFJifwvELvHBVA7CN4LlfMwwvtOfL1qAHlPwej/OoMHd9Jcz 7ClzqYel6fPd0zvO2t8LwjZtoNZvFFBYqmdzioXsCgqKJ7d6C5S3tmyvIecNpSwss0kC hGzC2naU38xNwFSv1bhE/EKxBRNRlMRFYY8Y00pP3Bp5HUWxFx17ym6VaicdOX/EPv8q fgj3BCWscTGnnRPINh58movQbLf8RkGwPSwiIiwpNtEIfEKuw04CeHFO0vNl9DRyQOrR y3e7jlF6ZTOntl2dfisQjn5YXOji3oiw8QQ5DzaO4yAmbbtknwaWS1exPR/cDtI3qxxf B9Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=RexbMUfsv5LY2KAfoPTErG/oTfZgHozA6e6KcrFqqGc=; fh=1irmLcL605UfvecXtgu99BiPtdzLm4UxFxzeaPKIq3o=; b=Frqlhgb8gs7MOXq9fCk7vP1L5k7NcSaeD5MfX052hsHX0kRvbq4071rwlStdEhwBjQ 4vrwI5LZBkHQzhMMF5Yr0T+8+YREPztWXZ+TNiTEKwbO8ZAGfDbFX6jgpBjTczUTXK2m 3LE3rFe8D/ip4Wql8aDepGYUPTmXRYfLKpjfLAZarK28YT5haO3PTI6cj0cM69bQT714 SEXf0qwbsC4SvLljof2cAqem09JszCEXfiXveuutiFmIYhMGzrd5jX47QmAZ9yMPs+vh QHRhlyXXklvrbN+Kaz8HJ5/sYdafclS2M0vDimiUi0kp8R3AHRBSdvWeR7QrArNZdcOi Wn/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-8154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8154-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b1a77si95562911cf.421.2024.05.27.20.53.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 20:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-8154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8154-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E7AF71C21ADF for ; Tue, 28 May 2024 03:53:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C45F44C8C; Tue, 28 May 2024 03:52:19 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 925D14436C for ; Tue, 28 May 2024 03:52:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716868339; cv=none; b=e7HymfKw9C/jxJDbnkYSwbRhYNz0LH9dy3gmZzH5irxJ94aJxSZhGfhVBsqSMytMWpY8TZDlfHydMach7v6Qa2ayTMnMDfrqYU6+0II445eadAZcoVhFYzfy8fB6gLVPLZD/12vEAqyyjc/FQTeOuYFBVakh9zgWpEnpHIvdl7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716868339; c=relaxed/simple; bh=y+nP7OwPyWPY3NdMuJmudGrD0LXFt414Z2UDUeVg6YY=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=edKUxaWwnM6WNiQ2hiLrEBwsdpsZFbWj8ZUNFfGbfaAUWlsccRX5DINg5QumWxXOrDsU/5ukbkDprx47RXZ2ZU9SYCHndVxLcHIm0o3s8kUHHNduWmcsJJFbNLPXZl7I0Xwrk3Ld/3Txp762jF/20H4bxf32RghZF1wKEj2PeaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 44S3q3b051927021, 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.95/5.92) with ESMTPS id 44S3q3b051927021 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 May 2024 11:52:03 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 28 May 2024 11:52:03 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 28 May 2024 11:52:03 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Tue, 28 May 2024 11:52:03 +0800 From: Ping-Ke Shih To: =?utf-8?B?TWFyY2luIMWabHVzYXJ6?= , "linux-wireless@vger.kernel.org" CC: =?utf-8?B?TWFyY2luIMWabHVzYXJ6?= Subject: RE: wifi: rtw88: 8821CU hangs after some number of power-off/on cycles Thread-Topic: wifi: rtw88: 8821CU hangs after some number of power-off/on cycles Thread-Index: AQHasFw+pvHPaxxLgUK305GcfZdkyrGsA2eA Date: Tue, 28 May 2024 03:52:03 +0000 Message-ID: <9bfc8f01e99b43e485b2afc6ae4fd661@realtek.com> References: <20240527173454.459264-1-marcin.slusarz@gmail.com> In-Reply-To: <20240527173454.459264-1-marcin.slusarz@gmail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: yes Content-Type: multipart/mixed; boundary="_002_9bfc8f01e99b43e485b2afc6ae4fd661realtekcom_" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 --_002_9bfc8f01e99b43e485b2afc6ae4fd661realtekcom_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TWFyY2luIMWabHVzYXJ6IDxtYXJjaW4uc2x1c2FyekBnbWFpbC5jb20+IHdyb3RlOg0KPiANCj4g SSBmb3VuZCBvdXQgdGhhdCB0aGUgcmVhc29uIGZvciB0aG9zZSBoYW5ncyBpcyBhIHBvd2VyLW9m ZitvbiBzZXF1ZW5jZSB0aGF0J3MNCj4gdHJpZ2dlcmVkIGJ5IHRoZSBhYm92ZSBzdGVwcy4NCg0K VG8gYXZvaWQgcG93ZXItb2ZmL29uIHNlcXVlbmNlIG9uY2UgZGV2aWNlIGJlY29tZXMgaWRsZSwg SSB3b3VsZCBsaWtlIHRvIGFkZA0KYSBpcHNfZGlzYWJsZWQgaGVscGVyLiBQbGVhc2UgcmV2ZXJ0 IHlvdXIgY2hhbmdlcyBhbmQgYXBwbHkgbXkgYXR0YWNoZWQgcGF0Y2guDQoNCg0K --_002_9bfc8f01e99b43e485b2afc6ae4fd661realtekcom_ Content-Type: application/octet-stream; name="0001-wifi-rtw88-8821cu-disable-idle-power-save-for-8821CU.patch" Content-Description: 0001-wifi-rtw88-8821cu-disable-idle-power-save-for-8821CU.patch Content-Disposition: attachment; filename="0001-wifi-rtw88-8821cu-disable-idle-power-save-for-8821CU.patch"; size=3624; creation-date="Tue, 28 May 2024 03:48:58 GMT"; modification-date="Tue, 28 May 2024 03:48:56 GMT" Content-Transfer-Encoding: base64 RnJvbSBlMTI4NDVmMWY2YWFiNjM5Mzc1YzVmYTVlMTU2ZDQxNDc0NTcyYjkyIE1vbiBTZXAgMTcg MDA6M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