Skip to content

Commit fe4b9cf

Browse files
KarlK90Ulrich Hecht
authored andcommitted
wifi: mwifiex: send world regulatory domain to driver
[ 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: dd4a9ac ("mwifiex: send regulatory domain info to firmware only if alpha2 changed") changed Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de> Reviewed-by: Jeff Chen <jeff.chen_1@nxp.con> Link: https://patch.msgid.link/20250804-fix-mwifiex-regulatory-domain-v1-1-e4715c770c4d@pengutronix.de Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Ulrich Hecht <uli@kernel.org>
1 parent 28f54f4 commit fe4b9cf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

drivers/net/wireless/marvell/mwifiex/cfg80211.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,9 @@ static void mwifiex_reg_notifier(struct wiphy *wiphy,
667667
return;
668668
}
669669

670-
/* Don't send world or same regdom info to firmware */
671-
if (strncmp(request->alpha2, "00", 2) &&
672-
strncmp(request->alpha2, adapter->country_code,
673-
sizeof(request->alpha2))) {
670+
/* Don't send same regdom info to firmware */
671+
if (strncmp(request->alpha2, adapter->country_code,
672+
sizeof(request->alpha2)) != 0) {
674673
memcpy(adapter->country_code, request->alpha2,
675674
sizeof(request->alpha2));
676675
mwifiex_send_domain_info_cmd_fw(wiphy);

0 commit comments

Comments
 (0)