Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp790043lqo; Fri, 17 May 2024 01:18:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOfRU8763pdkl6qICQrS0m1UjTUAkQs2zC8ieUBwn5RWciyKc8Pz+At9Q07n0qLoKdwn/FW+e7Le+4eRIjpd+UAvgPeCMSKL0izO2fmw== X-Google-Smtp-Source: AGHT+IEcSNMhHCYf2xEfAJiTb1bcCtf/XrSjaTdQvMPb5vjj2Cs/bXzR8Xc0hVYl7BkgVKMx3m73 X-Received: by 2002:a17:902:b20f:b0:1e3:c5d1:2324 with SMTP id d9443c01a7336-1ef43e294d7mr211668975ad.32.1715933894195; Fri, 17 May 2024 01:18:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715933894; cv=pass; d=google.com; s=arc-20160816; b=nkMo3UKRfDjQTPMtJqPlZwAhFeeLyC1+h1TCSV9veci3usqUyLlriW5C6GnoDOorcL dwCmgtFhzNCIQtP1wwEjdAjkyaTYXSoHaoUfN/vP92ZfOv6K2kp7I0OqWbHFRdcr4IUW eokhWlwa/hcAvExKOG+fG3abxndETuMgPbWCKIJLC8erxpYvIIJyUlGN5xuhILFsJd7L hXznhCh3ZSPtWMrfeXtz56O415EfOb2Bvx8srcIcs8BWw/NGnLptdu9xYkXRN3SPYp+E l4Pa2dFxGVSdPW4GlVnSE84MpXtIjGYGRuOxwGEksLVwHu2jVF0UsppeB1BlVrUQHREn k7EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NREW6bcFroAQWer3qRmT1I+JmMfW1UsPIUtVyqTOHKk=; fh=pQoeeB/4rMzsWABqiqXSZzfl/Jx8DIqjvI6Sl7Yk2+0=; b=Tgb6m9zc6fELBGb8Ts8DAd8k3LkE5m5l7xJYiZ1n9PMEZiIB5HoE4FdnUSSxzXfBT9 leDubIhoCq/3TiwshW3shEOsQMaFEjh5GOpnZY9hJnxpAuKaxYI8nFTQVWAQjjkFrg/E hmM/nYSwHChyMKgouLS4KPk0ZosEMQqLrVsiIDueLkY8KwPcV1kuJ2PKYjL9H3t0nFVM 7OzseR9i0iI6OGYMUnnSZ+SehSHdZJLY9+mbbMlMK++2yYtSZwrzZpHatzJSe9VSQFXx 9y0p2fLOmzTjOhLIFLOyOGPy9M2yxvjGyJxEW9ho0ZKyQCJzq+n0orkrlyK4Snazczaz tfVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b="Y0/6Bnqg"; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-wireless+bounces-7774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c2693a7si187263235ad.575.2024.05.17.01.18.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 01:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b="Y0/6Bnqg"; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-wireless+bounces-7774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0A22FB21D33 for ; Fri, 17 May 2024 08:13:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBC70199C7; Fri, 17 May 2024 08:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="Y0/6Bnqg" X-Original-To: linux-wireless@vger.kernel.org Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 95A6710A25; Fri, 17 May 2024 08:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715933611; cv=none; b=MoSyGvSGgUTZtlAYpZfv+CBp3hRwAh5cQ7iJHbgsBTjGw80TgJZRweirg5rqYpCw/wXXUioYRqdIC7fKegOFXz7JIS2jfNa00gJe9LFldfGKjTZcZpF/tfGuZYLVbNpJ3SA/awR3ZDMsHxwXBDVxTLJdbndiRcCDw6tHcYWIQkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715933611; c=relaxed/simple; bh=UGCSH19/QQFayopTinwL3UHdf3P2cCPKLv7liUHXfMY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pL23Yzsa9/TzzKHHi52aZfOws/KWt8mAE/GniFGieChvzMEKVgINPwLQLfrntrq2u8Bz980Qgwp6MdEMxkLl5FW0CAAe8cB+XqPUv3VbBjf6RGOmqjvpzATRgzKfS/q8aM0dW/Le7HbSf+6kLSQ9ijo6oUBcxTgMbSLANjgJwBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=Y0/6Bnqg; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id 1BB211F90C; Fri, 17 May 2024 10:13:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1715933597; bh=NREW6bcFroAQWer3qRmT1I+JmMfW1UsPIUtVyqTOHKk=; h=From:To:Subject; b=Y0/6BnqgzDL78DgCwa2SK756a0ho+Irss9R7P0/LE1R5dDKTpFRqEUGh6wH+i3R/j bDX/YXvFVtxKicgbryJ6m4msKsUBd581wdblcPZo9rXq446tFvJRHAusn05sMizco2 YcsEIebvKjSR2aa6IcRV+tvMa1d8zC03w9IkB4jh4BilfvdyxLOBH87wzFN65ODXIn DPxBZ9Kp43vp/g5tpObisdYv3oYNjpCVBUg6saS/j6h7DqotpGo1vNHkKxyj1c5EMs des8iChfVN4LRweOXprfwOObvCkCDpuodaBmN+uWt/rZeuW6povD4sYYjCogm2Wgi3 qm9Qqj7UBt8Kg== Date: Fri, 17 May 2024 10:13:12 +0200 From: Francesco Dolcini To: Kalle Valo Cc: Francesco Dolcini , Brian Norris , Rafael Beims , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, tsung-hsien.hsieh@nxp.com, David Lin , stable@vger.kernel.org, Francesco Dolcini Subject: Re: [v1] wifi: mwifiex: Fix interface type change Message-ID: <20240517081312.GA7974@francesco-nb> References: <20240510110458.15475-1-francesco@dolcini.it> <171593306296.3274748.4179889716794962474.kvalo@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <171593306296.3274748.4179889716794962474.kvalo@kernel.org> On Fri, May 17, 2024 at 08:04:24AM +0000, Kalle Valo wrote: > Francesco Dolcini wrote: > > > From: Rafael Beims > > > > When changing the interface type we also need to update the bss_num, the > > driver private data is searched based on a unique (bss_type, bss_num) > > tuple, therefore every time bss_type changes, bss_num must also change. > > > > This fixes for example an issue in which, after the mode changed, a > > wireless scan on the changed interface would not finish, leading to > > repeated -EBUSY messages to userspace when other scan requests were > > sent. > > > > Fixes: c606008b7062 ("mwifiex: Properly initialize private structure on interface type changes") > > Cc: stable@vger.kernel.org > > Signed-off-by: Rafael Beims > > Signed-off-by: Francesco Dolcini > > BTW I removed the Reviewed-by from the commit message, I don't see the need to > have both Reviewed-by and s-o-b. Sure, I was in doubt about this, in the end I added it because I have seen this done in other subsystems, e.g. commit 6a4020b4c639 ("drm/bridge: tc358768: fix PLL parameters computation"). Thanks Francesco