Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2406472lqo; Mon, 13 May 2024 18:50:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsFhJuLWDC5KKFmAEoLbOGhGoPozLvBUDoNB3JfMmxhtMDPNL1kaoMdpYC2JdTpbLfIx3yzTa50SV/DiAIP73wqHqhlLck5wt4bJVNYg== X-Google-Smtp-Source: AGHT+IETMUNHQThp4PPmY4lL6SRHmO75mTIbnc7sSYeoUMg0FTdayzhu+Hf9oTK0lKDrIaBCqQuy X-Received: by 2002:a17:90a:5502:b0:2b2:7d28:f4a7 with SMTP id 98e67ed59e1d1-2b6cc03f3f5mr9436412a91.1.1715651409220; Mon, 13 May 2024 18:50:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715651409; cv=pass; d=google.com; s=arc-20160816; b=O1upAmWtZ9diTTSPT6MLLJXoPoPD5pIawefXT/GwpJWXN3dx3a61J/DWyAqk/qzcYJ y/NkaPBSr64s+1B5FnFutJms5SOThldAK46nDZ2WySDSkzukWDMaxwQFUWc5K8fLL3nw O2n0DHzOFfb3FezUffceVvuPHkrIygcSjief0qC8fjKEqpKxVs2typX0UANx/ztm+zY1 FHMxsquPWJxkXKYUpGYkbZ6gBWdDc7G35AOOq3pECnkgNLc23QnZelnXuUbsPAlpmmI6 poF4trNLS/Ja1GcwrFNw53w2u9ibZSTHsONODxIA2DGuka7NMryG6zZL4mgOY6yD7qeN fSvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:subject:cc:to:from; bh=5JmIaGJSKrzLlYl1hbLd1+XqZ2LFT7jtVtS/4DDzlGs=; fh=526McPioDjQLnMJlQCDl5TtIB+IOE2o3iFi614o/4f4=; b=cIy191nR4f7ispo4s2c+u/TdRisaQlkGIf/H4GZsGL962/54rNjInuy1CCSacmnDwE nKxBTpyErJglPVTI2WFI4s4y7QOriSUMt3EvfKLoE8U6e1qfBkROe28oUAm6TEi1t6Cj v1o9D0n26ZTaEwNgZ5de6WB5gpkhCTBjBAxoGZEIbXaDVCTE0A8QyQDPKrSGcAW4ISNj 38guLsh+L4ctjqZdqejrW3EsCXbubgxplt1IyS7eUrVggQ+SF8sBqSJohHqlcUi7O0PT VqIOEe+bDlymFh9EAbraldF5+iKAYApsVsnXnhyxRw1LHS0NXz226NGFDlLgJ1pooZdW 9Ifg==; 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-7624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7624-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a5d60csi12589573a91.62.2024.05.13.18.50.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 18:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-7624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7624-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 05FD4286FE1 for ; Tue, 14 May 2024 01:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECFCD125B2; Tue, 14 May 2024 01:40:45 +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 E4FA7125AC for ; Tue, 14 May 2024 01:40:43 +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=1715650845; cv=none; b=JJv8bRkq7sl5HZhE1x9jwb4cPT0n/7iuPHjQGF37laJTx3HKDMqZIin+ykUA8iauisajAB+yz0/BJP3i9IjtGlg93Ov9i3EPiR7O2d5RxdTfNhO3Y6OyCP604D7/rOIyPIrNRQUST/3xJcisJXOdnUf8UVJVRPaG/GndxpI4Qeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715650845; c=relaxed/simple; bh=2CIlUJ7AZMOpOVc8zm29K4mZjGxNNkmcW81zk0b20/U=; h=From:To:CC:Subject:In-Reply-To:References:MIME-Version: Content-Type:Message-ID:Date; b=gtwQyvxNj77aZ/oSud4qdWrLUeg//ak/djjdA6SKM8aMwttApRxYmqcXHMm9tyOIi2RDgJiE9PKKWOrXz15QPB+UnaHM93j+uRLxJVhXUoVC45m4PlFw9HakubRvAT/k4o5ugcsy+XcJiPppMXQi7qeTpv4K5tEVbyYY35NhocE= 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 44E1eeqC72260508, 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 44E1eeqC72260508 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 14 May 2024 09:40:40 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) 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.35; Tue, 14 May 2024 09:40:41 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 14 May 2024 09:40:41 +0800 From: Ping-Ke Shih To: Ping-Ke Shih , CC: Subject: Re: [PATCH] wifi: rtw89: fix HW scan abort not completed issue In-Reply-To: <20240510130934.5825-1-pkshih@realtek.com> References: <20240510130934.5825-1-pkshih@realtek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Message-ID: Date: Tue, 14 May 2024 09:40:41 +0800 X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) 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 Ping-Ke Shih wrote: > From: Chih-Kang Chang > > When scan happens before suspending, rtw89_hw_scan_complete() might > happen after suspend flow. This causes the scan to be unable to > properly indicate scan completion to mac80211 before suspending. To > fix this issue, we modify to execute rtw89_hw_scan_complete() when > rtw89_hw_scan_abort() is called, regardless of result of > rtw89_hw_scan_offload(). > > Cc: stable@vger.kernel.org > Fixes: bcbefbd032df ("wifi: rtw89: add wait/completion for abort scan") > Signed-off-by: Chih-Kang Chang > Signed-off-by: Ping-Ke Shih It seems have better way to fix this problem. Drop this patch for now.