Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp745434lqp; Wed, 22 May 2024 20:32:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2OA5yjuVBRfEgXzyIfpFTB/XwM1Zk3lT8lm1/iFtMY061TLVQkwYzKmvkKNDbzo9vna+5PfMFRi+jSB33nDW7/Xis89/9ZhhjbuHTxw== X-Google-Smtp-Source: AGHT+IEYMsgFm2YLhGkRyz8vMX8s1V4qcvUCPMS2OKWRLpSOU410gsGwZRm0ryyRh7KKMserPE5T X-Received: by 2002:a05:6a00:1402:b0:6f4:b4a2:ab3b with SMTP id d2e1a72fcca58-6f6d61b49abmr4438886b3a.24.1716435168302; Wed, 22 May 2024 20:32:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716435168; cv=pass; d=google.com; s=arc-20160816; b=y61fioasnkhUAdKtIp33JHKLFKaza4cU7qNn571otG5+usCYqJ42aeQjPKbeh9gmam 0JsWBFirNAofRDKBhCFH/agak0V1wZp70flhstiFkqPFJ2Jhh6Lfvaf+FpQVbw+MUgDO 9nqAmY9swoNnRNiJX3pNEAdjLb9Hm09/AaodEs+1u67QV+Z4Z6swv9G490dJHwikmuB2 TmYjimKJp+dHWjpm5wcOJHleiqObZJl0elK02sI3pRjDGfpO44BE2KHR0OTe7UTAOTwR VHWGyFL336abkfw8KYRhkVFK8YvPgL9b0T90p+2YDC97hJp1+YZ1ZcZm4Seoqw44W1b4 LxLg== 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=Q43ODjozCGhy/8V6XN7xdt7zY8hh8paAa/5DXPniRnE=; fh=AEZpRWV43LlpdZXI1PN+/Is5MjiGWNFItcjHOgZjmzM=; b=XpweB47UxZ55+mm/jXdRpwQlBNXCWsreRpTK4sfXpKuoDMKZ16Os22DYuLLMX5FgVP RWSbFEqZ9LE1TgrDsq7n+y/CP4M649PF5f6yNV8rT9EVsnZE5hHXT6ymXJ7WEde+I7Hk rfxs5ETLkzzyjtFIoM4psstOnuFJpSYjg8Um3ZMBEDfLb+ooSeP1vjSs/5IvYUAmDHGh +XYGCnKgVOr1IqrEqQi2y79BwW5FPmXasp24OutXD1BXjz9QZTr1uEh2ThFJiHpXdg8K Wq17uz9MgxCPQ46W/TDvWu8X8f3v6q30R37QKEZ79P8CGOPTNzP6R9O8LszF6JJ01Tob d1Og==; 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-7982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7982-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 41be03b00d2f7-657e542d6a8si4985569a12.224.2024.05.22.20.32.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 20:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7982-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-7982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7982-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 0C364283110 for ; Thu, 23 May 2024 03:32:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03D3E3B29D; Thu, 23 May 2024 03:32:32 +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 0C7A639FEB for ; Thu, 23 May 2024 03:32:29 +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=1716435151; cv=none; b=QoiiWBQh2W1z85K7D+44IuxvjF1LxikhC9h2it5Bi/Jeqh8pTNSBc+nMtPXrH7Ms4DuJX6wDOMOjKozaKvuDC8XqfzJ+bnDF76wWGmCgoccsVgrnAMLqJL2fEZhWvOL9jlpy57QXp3IrABlSajqSpDya+rOKeVsg2EEo2TbIzU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716435151; c=relaxed/simple; bh=8dvz1nHY1V+QTpZGBbCuFBcyf6b1ASItSMm3w6ifjA4=; h=From:To:CC:Subject:In-Reply-To:References:MIME-Version: Content-Type:Message-ID:Date; b=qdSzeT607pjHmpyjpFBLaSMcFjhVRtE9njIj1IqK6sGvaND96oDDlMJG8U3eGaszPg+pGn6EsJE+nWQ5SMNHoft/tbDuDfQScbBVfne1pRYsfYts1TJ8YX0MnEW+BquqhE5BDA8fY3d3kJbKnKeS8OCJTJjR94D9JbhvWVzxQTY= 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 44N3WRmqC465037, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 44N3WRmqC465037 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 23 May 2024 11:32:27 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 23 May 2024 11:32:28 +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; Thu, 23 May 2024 11:32:27 +0800 From: Ping-Ke Shih To: Ping-Ke Shih , CC: , Subject: Re: [PATCH v2] wifi: rtw89: fix HW scan not aborting properly In-Reply-To: <20240517013350.11278-1-pkshih@realtek.com> References: <20240517013350.11278-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: <1c6bb047-c474-43d5-8d0c-37bc2657e2f2@RTEXMBS04.realtek.com.tw> Date: Thu, 23 May 2024 11:32:27 +0800 X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) Ping-Ke Shih wrote: > From: Po-Hao Huang > > There is a length limit on the commands we send to firmware, so > dividing to two commands is sometimes required when scanning. > When aborting scan, we should not send second scan command to > firmware after the first one is finished. This could cause some > unexpected errors when we cannot receive firmware events > (e.g. in suspend). > > Another case is scan happens before suspending, ieee80211_do_stop() is > called to abort scan and driver indicate scan completion by > ieee80211_scan_completed(), which queues event to scan work. But scan work > might be late to execute after ieee80211_do_stop(). To correct this, driver > indicates ieee80211_scan_completed() before returning, so that > ieee80211_do_stop() can flush scan work properly. > > Fixes: bcbefbd032df ("wifi: rtw89: add wait/completion for abort scan") > Cc: stable@vger.kernel.org > Co-developed-by: Chih-Kang Chang > Signed-off-by: Chih-Kang Chang > Signed-off-by: Po-Hao Huang > Signed-off-by: Ping-Ke Shih 1 patch(es) applied to rtw-next branch of rtw.git, thanks. 669b692247d4 wifi: rtw89: fix HW scan not aborting properly --- https://github.com/pkshih/rtw.git