Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp783864lqo; Fri, 17 May 2024 01:04:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUj6m9hzqWCH9GQkrUT4yEfiT3PqST7+MyM3HJPlm/3DrramXq672gYxAsvucFcEHCvTMnLVFOoLRQt4ubGqZOufxei6nMpi/DMJfFvsw== X-Google-Smtp-Source: AGHT+IG5/xEJYunGpVbjxmJAY8/sEXNwZm5hq7F7aiumyCcpAzHP1Jci+SxJfyyjyNWnfIlDtKYP X-Received: by 2002:a50:d7db:0:b0:574:f38a:28f with SMTP id 4fb4d7f45d1cf-574f38a047fmr7410723a12.37.1715933081086; Fri, 17 May 2024 01:04:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715933081; cv=pass; d=google.com; s=arc-20160816; b=YIlghG2qF0Lmrw2/zNFOMco0iBAKHpBqFHvLME34BRciXJmW/Zc/RpnluLdplaoypu tIbJqjX0dk0gW4mcD/ZG8UnTGnXud5Ka0LHCZgGWYYKBsl3dSvkv1p6Ke4FhJJL6xGtf bZ6IzksvGlnfl9yR8DAg6yBbnUs1Jd1PoIeufsSjNlrSUL9W5kjqk54BX4f6Zs3raWbc vdFNkT4n/E8qzx08f8lcClSJYgksKbQ+SSSBAnpf8fR1SGP6C7iiqx/fnq0y+ZyZSh5Y RCBaiuqZn7P5hn82yw3EtEUzhXkEVvqDghfVZgLr0vgz7SgR6O4XgnXBMU27NgP7/jrq ITFw== 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=EFCxM1mx5B63NDSO8l2kwiPOIXKl2qUk52JVWBap0wo=; fh=fO1VePmiY3BKj3SITqrZkhimA6x0RpV3ilNieY1DvUA=; b=zn6F3w6NmMhEGzE4t4cvywl/1L3TCbJKU8DtjgEB+OKo5RhMPDUJp8SikWZZ7J8Rnq WQ/4x8B6cXAnsDqzrkEIXZtLnIqOShioxJhQ+eRwBh4sk6nf/Ei2L4QH/g2zJqWJz145 OnegUUUzNi9QiS62n+QR9xYypzJhujiHK1yRpDYUEFGA/ZKvMHFLGi62wkPHgXeuIF0i 1mfAqF7BeEoP4Wz7LlDUr0mzgoqFqVewsLyKenbPRIjbHsqUezZF+Y7MH4414QTXPb72 R5PlqXW7gvLbwqTMG6eiD2+cvXQSv/8yZPFQFHPDz3EebVTXKwRn27uSZdko6Pw/RO+p nFKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J93yxSwB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3275b8si9748369a12.405.2024.05.17.01.04.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 01:04:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J93yxSwB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7773-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CA5221F22B1A for ; Fri, 17 May 2024 08:04:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B747618651; Fri, 17 May 2024 08:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J93yxSwB" 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 8AD8725632; Fri, 17 May 2024 08:04:27 +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=1715933067; cv=none; b=FTZP6i/R4UDcEGW5ze7LnxfEMXFrC0YAwaTofzdn1oGT/pX6XCGMLJexDyVF3dvONNJLXqWxsHBg0uOZHzJhE/z1sl5DNhuF93EXvUxGuOW2LJyfcJjC45eJr5SOdCaQuOC4nBo9S2YPdgt942cGtoWhbhMouOGChGKQbWtqotk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715933067; c=relaxed/simple; bh=lcsdTwwDB11JUOFdYAsiNPSGzqe1+RPigLkU1Tmc66U=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=kiSLKbUMy9fH6vogG3OObWzCxeF9qLCqmZUS2DbYbR/xezBSksSpD1AJ8J8wRH8K3QTr9R+ka7zkNV/2HSwb1m90d0TBIyP8iG62+4HCdWQ2ItEvG3xRrybkoHqGbWl3inUKVb0XjLTWsxdk4kPnH6gmK6XCi3x4JlwD9Hf79ko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J93yxSwB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DECACC2BD10; Fri, 17 May 2024 08:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715933067; bh=lcsdTwwDB11JUOFdYAsiNPSGzqe1+RPigLkU1Tmc66U=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=J93yxSwB4s0J4kRIh5DyQorBe0m6Ul4Wsln75JeAv5l4yM6nGFxkvIYSAjLZCDnNt W3V74BG3xWpftFmK/bNqlfkbgFokzaARn/ffc5jmp9s+R7njeFqpLsHPQd2wXP5CkB 3pOnIx/HT6XAnv29F4O/AoU4c4f3+RZBMyvXkn9hMOAvgs08+HuyFZat1sWi04GUOQ dUa92NJUda15TSG0bcmQBemi72nIUCYlJ1sR5JlFm58QDYTFgsmquFdohvTZ51O0E3 BdRsuXKr/g1RtS1UalDAgce6NR7Tz+oJ2s5GGPLDuW5erBk6F5tTiTZ6UI/X76hSUO p5TSlkcujvebw== 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: <171593306296.3274748.4179889716794962474.kvalo@kernel.org> Date: Fri, 17 May 2024 08:04:24 +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 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. -- https://patchwork.kernel.org/project/linux-wireless/patch/20240510110458.15475-1-francesco@dolcini.it/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches