From mboxrd@z Thu Jan 1 00:00:00 1970 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 8BE7A31B127; Mon, 27 Oct 2025 18:50:45 +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=1761591045; cv=none; b=HOOKFiXl4aJr1FRmET6hWpw1OFyOoH9dgU0nYIHhZ3EN9UN8J/cVr3X/bgaMOkKavEnkd3JJ2UQyVQYYiFeMFZEDcAQfW2IjLwAzgIuRP/M4H0ep8f6wFKPY6EyT8w5Dg41teJWBfJqaX0vqbvKOHKp9vyCy9HPcQnZAAMYIHmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761591045; c=relaxed/simple; bh=7jX9emEoGcOg4NdN4biv0MJZxCQK6l7emkxkK1/MlUA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KqN+zMuou28G08/JVxcNgkf5YAg49qQ9wWmXi2RJ/JExxfvKH5yJ0wfsQ3u+EKQWVfoW1M9xnhsaAdfJt36T+cNnf61UNw/7Adf9Kt8Tc+0uuD9ssLZjladN1a97CmYqLaT3eSg62RADZ1j+eScdplTbKKVHv2YLdjXpGbvRzxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0+r7Lof6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0+r7Lof6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDCD7C4CEFD; Mon, 27 Oct 2025 18:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761591045; bh=7jX9emEoGcOg4NdN4biv0MJZxCQK6l7emkxkK1/MlUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0+r7Lof6pdjT7z5hHJfwqZhqyAd2ASpPZDatzZOXBnO1rWoirQmUDlkcGuY6tmixA zyJ+jtsNda4IxZ/USFhLyaeyj4JtB4SQm7I4lyvRmm6z7wzhPkzLAR6bKUb/GBq1hK 1jEJ3EwaVMNVxdveYA6i6PGSs5S4tAgaEb2BskMA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Stefan Kerkmann , Jeff Chen , Johannes Berg , Sasha Levin Subject: [PATCH 5.10 047/332] wifi: mwifiex: send world regulatory domain to driver Date: Mon, 27 Oct 2025 19:31:40 +0100 Message-ID: <20251027183525.862188173@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027183524.611456697@linuxfoundation.org> References: <20251027183524.611456697@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Kerkmann [ Upstream commit 56819d00bc2ebaa6308913c28680da5d896852b8 ] The world regulatory domain is a restrictive subset of channel configurations which allows legal operation of the adapter all over the world. Changing to this domain should not be prevented. Fixes: dd4a9ac05c8e1 ("mwifiex: send regulatory domain info to firmware only if alpha2 changed") changed Signed-off-by: Stefan Kerkmann Reviewed-by: Jeff Chen Link: https://patch.msgid.link/20250804-fix-mwifiex-regulatory-domain-v1-1-e4715c770c4d@pengutronix.de Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 7eace21a08040..b1c9c7a9e5dbc 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -663,10 +663,9 @@ static void mwifiex_reg_notifier(struct wiphy *wiphy, return; } - /* Don't send world or same regdom info to firmware */ - if (strncmp(request->alpha2, "00", 2) && - strncmp(request->alpha2, adapter->country_code, - sizeof(request->alpha2))) { + /* Don't send same regdom info to firmware */ + if (strncmp(request->alpha2, adapter->country_code, + sizeof(request->alpha2)) != 0) { memcpy(adapter->country_code, request->alpha2, sizeof(request->alpha2)); mwifiex_send_domain_info_cmd_fw(wiphy); -- 2.51.0