Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp783476lqo; Fri, 17 May 2024 01:04:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaJhqdzncgIw4UJj7/3giRqBNqBFOKWk1vItwiuTqO7zHwfEuNeNTNcrDX/38G4vnF7A3YhXoGo/a3HtPAnkLd/fuD/D5YGykCpU0V9Q== X-Google-Smtp-Source: AGHT+IHvgccqWQRyzRwVC0xJHcxqDYgYXUpH1hERK4ckczxKmhetG/AALDVjFxLxlW6LR70j7nM6 X-Received: by 2002:a05:6214:943:b0:6a3:434c:bedd with SMTP id 6a1803df08f44-6a3434cbfc1mr101284126d6.27.1715933042656; Fri, 17 May 2024 01:04:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715933042; cv=pass; d=google.com; s=arc-20160816; b=rMB6vyC2JpswVykN9NbGygMjJiWUIjToJadFFkhlk5JLX1EBwxp5zlPMSeNpT9kY7s yy9TYHyv8u/lPqgGik4ryVXXLl9XdOX1CFa5UA/jDVlpaQShZIk69A2W0PvVlY4BAju9 uhsWolHtZuCr/U9qmWDxNJbty9faoyeEg5V35Eb77yGLSTriAg8b2O2E/p++3+Pz4d0V 1L3VNveRBPyxXU+RhMEmkriUdfYK7K6hV+NqcVmuIyWb12REBdYhix7eQVyg+fE2eWWG UN8jjyzFStRo3llM2gJtEYsX/3MEnfYU6+YsNw9lCA6aC8V0plXef50KxXf+pgRme9wI hfdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=6+lCC9xnVHGGFOpSIB2yQkA+Fxkjjyyb/PmubKzUcN4=; fh=fO1VePmiY3BKj3SITqrZkhimA6x0RpV3ilNieY1DvUA=; b=FQ6w36+gE1uLTzILDE8T6StW1DbNgbYPwgWBJKSySO1lG1VqBqjDnaxfVsgmZtLyZR +T6WVzIjunDdDTnsHFFSZCZ1EFiEc5OoxPDC1mix0WNXweO6YnU/IS7/nYJ5G7dhdicS jePtV/AOU69SmuHAQv7yF9LvXqw/AVNhfemImP2S8CSqpkXerVKPRdJTIyAUAuhoooV3 71C9kaVnVAtF4S4SMbFXeV7NJSyff6qQJOc/GCM+sCyW1iBElOwDOCarHcQ6R276iuW4 i8kbm6spYL1he0Gn6vw2Llj/Dn8CLAzQRD9Zu8hIXap29yvimSmyEz9AFUuJBUGd8myJ POhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Bw/I/l81"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 6a1803df08f44-6a35f3f9b67si38766246d6.102.2024.05.17.01.04.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 01:04:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7772-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Bw/I/l81"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 60E2D1C20AA7 for ; Fri, 17 May 2024 08:04:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91B0A182C5; Fri, 17 May 2024 08:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bw/I/l81" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66B0FEC4; Fri, 17 May 2024 08:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715932993; cv=none; b=ky2r2JfxYGgiwrgb5r96NOP2aaOdlzTCZcY3LotmF67Crv2rJimBfElZfl0VTXADcw2PUFdMTZt1oXT5SC3YMyyKcmRHz0mqI73xWjncgyG3RAPcui8NSmjUkQP+nM9Wx6v+OZ1pm+5iJ6He6kdbpFpb1mvaO0JDseXyxD6UijI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715932993; c=relaxed/simple; bh=5mfe7yBVIkw7H5OSayGdSn3kS2VYj3CX0eJpo7nXuHc=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=Xp1Ka+xCKI3/uQ71Icr3/Mbcf+KF4M0QO1WtwyojbO1WpBKrn5d3p1nwVQ1A+XK1IkprFvXqJUhW801rjKmvVT8c4k+oFYsT/Ur5IYlguQeCNt8HtYf1+5dKFaGTBmCRicCu9/W/EY5j8I5wJs0S5iorhXOAaQBfle2S0Rx4nMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bw/I/l81; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B74EDC2BD10; Fri, 17 May 2024 08:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715932992; bh=5mfe7yBVIkw7H5OSayGdSn3kS2VYj3CX0eJpo7nXuHc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Bw/I/l81zW67cM21ugTgD/pi3kqYZrUsw9e90mM5Py1e8xnlalTYctqcQrhOtFX8U bbnYCRO1146NbsKlizJK3wk6nJO2730eo+lgI0FheNFIcdr/JY94Jcq/i8YKoPwcmD rThVDj7tPI5jAmMqXolgJJeq9ceabZpqmN5fhWZV07hx6Pbn0LwIhXUol5ikp+tUw3 vovSKaAilqnXumBekjtWmrDqHkf0XHuehV7yIE7VbOVbXN0EWu/e63EwRZwtwbErlJ ALcw80NJyayzqkkLRdvRVzmKKMua8HAZ7vAJpA9XhDSR01UFEYR9skxtB56fOq9XAI 56x8YgdKUO39Q== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [v1] wifi: mwifiex: Fix interface type change From: Kalle Valo In-Reply-To: <20240510110458.15475-1-francesco@dolcini.it> References: <20240510110458.15475-1-francesco@dolcini.it> To: Francesco Dolcini Cc: Brian Norris , Francesco Dolcini , 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 User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171593298896.3274748.6589375938243977457.kvalo@kernel.org> Date: Fri, 17 May 2024 08:03:10 +0000 (UTC) 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 Patch applied to wireless-next.git, thanks. a17b9f590f6e wifi: mwifiex: Fix interface type change -- https://patchwork.kernel.org/project/linux-wireless/patch/20240510110458.15475-1-francesco@dolcini.it/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches