Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: mwifiex: send world regulatory domain to driver

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 <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>

authored by

Stefan Kerkmann and committed by
Johannes Berg
56819d00 7b6f16a2

+3 -4
+3 -4
drivers/net/wireless/marvell/mwifiex/cfg80211.c
··· 686 686 return; 687 687 } 688 688 689 - /* Don't send world or same regdom info to firmware */ 690 - if (strncmp(request->alpha2, "00", 2) && 691 - strncmp(request->alpha2, adapter->country_code, 692 - sizeof(request->alpha2))) { 689 + /* Don't send same regdom info to firmware */ 690 + if (strncmp(request->alpha2, adapter->country_code, 691 + sizeof(request->alpha2)) != 0) { 693 692 memcpy(adapter->country_code, request->alpha2, 694 693 sizeof(request->alpha2)); 695 694 mwifiex_send_domain_info_cmd_fw(wiphy);