From unknown Fri Aug 15 15:32:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49611 <49611@debbugs.gnu.org> To: bug#49611 <49611@debbugs.gnu.org> Subject: Status: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` Reply-To: bug#49611 <49611@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:32:43 +0000 retitle 49611 Despite wireless-regdb being installed in my operating-system= , dmesg indicates it can't find `regulatory.db` reassign 49611 guix submitter 49611 Katherine Cox-Buday severity 49611 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 17:44:02 2021 Received: (at submit) by debbugs.gnu.org; 17 Jul 2021 21:44:02 +0000 Received: from localhost ([127.0.0.1]:54702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4s6M-0000MV-7v for submit@debbugs.gnu.org; Sat, 17 Jul 2021 17:44:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:33524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4s6J-0000M7-0I for submit@debbugs.gnu.org; Sat, 17 Jul 2021 17:44:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4s6I-0003ZT-OH for bug-guix@gnu.org; Sat, 17 Jul 2021 17:43:58 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:40905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4s6H-0003d4-Cf for bug-guix@gnu.org; Sat, 17 Jul 2021 17:43:58 -0400 Received: by mail-lf1-x12c.google.com with SMTP id a12so22062414lfb.7 for ; Sat, 17 Jul 2021 14:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=24cYSGwZSqqzN+4dYdwykgJF8EOBS37PYPsFEiwnOrQ=; b=KkvMOLsahdCve11EThVgWSGPtw8bq9bsosZq6lB/UxmFakS9e2Rs6es90ZY2nGrUaY Zx6uwa+7jgp5nj8EjwMqcYpgvGkSBQXdJynEGV21JFrNoVPQ5f1U/JMt2UKfXaWQUW49 NRJCq/vJ7cJnkV8aHaoFjK0kA5R0FL8WfEv0tivc4P8ABa6KiXKV26Ub+1Bi5XWMwZCx 3TDPrC8PArt9ptXtYxsFPnRJdatL0ox3bH6xHzzwD18VWCgXhXoN//MffbxcvmbhSdPZ R6O0xJ5/I9+sDOpCBfvlyhs571KIZBa5sk0lSPqS6u+Nm3fY4UEvWN1LJS3d89ea/cBv 4lxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=24cYSGwZSqqzN+4dYdwykgJF8EOBS37PYPsFEiwnOrQ=; b=UXk06hPtV6APbpvUHB7PPSsm04iesbWRDCTISBuulJBlcMRL0h1dBWqZCTWkHQlKED XbK2EZczTO1JoBA+xchQQNrACmpxnNKeugJBkwSDPxqh3V1K9jJTHrKzrbYivXAo8ohN +ixiBHMm65srKh0pnQNIKv5hznDmIxqaNP4MH8CVBGT3okvWvpT2M40PeAB+AvdjVv/l +sglM2J5Li23STtLro//I0K7jz6JbEf1qLgzstbGzZhZz+yYpXS1zuvwecRrkHIZcW+P zWdjQKAAIsU9gT/tBpr+jGrSZn8rM13A6X4EklQs1cyHNnTuF0vxQBVdd/uEd8KPalUj +Vjw== X-Gm-Message-State: AOAM533h+JGnIL2AoC6hsA8UPxLGiXtTrf4BAOf5vJxa/fLLNvad/lO2 sAAuf5Qp0IYmuvJNJF0RxacYBFS0eASy9i5bV1ziz0/PgsA= X-Google-Smtp-Source: ABdhPJwfa+U0yFVghkTgVueGlksTLj87t1ufZ0UC025pZSIbZ+C4FLIc/EW2MpGh3iE8uXFZjh6Fnr5x27p7i2l1nJw= X-Received: by 2002:a05:6512:3325:: with SMTP id l5mr12719522lfe.527.1626558234374; Sat, 17 Jul 2021 14:43:54 -0700 (PDT) MIME-Version: 1.0 From: Katherine Cox-Buday Date: Sat, 17 Jul 2021 16:43:43 -0500 Message-ID: Subject: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=cox.katherine.e@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) #+BEGIN_EXAMPLE [ 8.280462] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 8.282686] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 8.284394] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 8.284415] cfg80211: failed to load regulatory.db #+END_EXAMPLE and #+BEGIN_EXAMPLE $ find -L /run/current-system -name regulatory.db /run/current-system/profile/lib/firmware/regulatory.db #+END_EXAMPLE From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 17:50:20 2021 Received: (at 49611) by debbugs.gnu.org; 17 Jul 2021 21:50:20 +0000 Received: from localhost ([127.0.0.1]:54707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4sCS-0000Wi-1h for submit@debbugs.gnu.org; Sat, 17 Jul 2021 17:50:20 -0400 Received: from mail-lj1-f172.google.com ([209.85.208.172]:43561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4sCM-0000WL-Pb for 49611@debbugs.gnu.org; Sat, 17 Jul 2021 17:50:18 -0400 Received: by mail-lj1-f172.google.com with SMTP id bn5so18934141ljb.10 for <49611@debbugs.gnu.org>; Sat, 17 Jul 2021 14:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/59Nn7Sjcbe55VVX+eHw0GbMNA06A7NsGuCdtA3sFo4=; b=ou3z1PoK2rwy8nPHg05owhOi+MDhwqo+10ZF0nH/iiWug46+CmhEKoD0DfLURc2FuR uSHJIITu6ZIi8lD+rJKq+SORN+lmSv31DUG/6X5UMYu3uMrBT2Fh11aRAyC1w8JL4d+b T1On84R+WvrqbHGhOJZQFUEsf6X8y/tJact2Ekzf6blkYnZLNXYoo/ggdPPhSfzxuGzr IUbgpyOmzVpSEllfFHgJGgGyIPOKvSZiEsNrZY1lshvl9YPX144JeDSIV1jXw61dFz+I 2605M8P/LvBV5pzVVngUjbMKZ/oW0sBEOMVk/fNV2c3Je8+tTWAyDoawcVRgZEmKxxdb 7rLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/59Nn7Sjcbe55VVX+eHw0GbMNA06A7NsGuCdtA3sFo4=; b=s//jn0x6aFX71nTURlehnv4v53wrKzq0kNb6xhjPRVj8C35LwYvOAwocQzVtA74Cwv a+uyzI79q93UlTvUPPUy1xnLHhcuf/vj693KxvnwokSYnfesK4qmoYVdk/Ytl5JxsDQQ QpSPnXFD3I1uibKVo9sKHlrrbqR14qD5iEzGAoA8/SAyy/0LMroLKsCMYxPEVRD+eHMe so/6yD3WFP4rcTgReGSF0w4nuW0TxIGeY+ZTsZmlSpU3GLjo5kVr7hU+1S5QLzQDRjHt 35vxOtUur18eyHbdTqI+nbJwjP+NFdJFrtdpVZjHkHdtY6GFDVUsX0sEzh+MyaCwkhUD +ZdQ== X-Gm-Message-State: AOAM531W6HCe3H94a6jI3QRq8JjqDqbSf/6ecT0CurBr3cZ5kajBAe51 5ELqItm/2zzwP3QQE1Bzl62VFLOZreqVJx4TkNVXhEojENE= X-Google-Smtp-Source: ABdhPJwZ4yrPQvxLJdO+1b10c/HBVz2NgqV/oUZX6JRzjRgV+4fSE6oND0FDo1GpAz6r+Zxejs1C8I0hFEd2dBy9EZE= X-Received: by 2002:a2e:390e:: with SMTP id g14mr15292826lja.191.1626558608557; Sat, 17 Jul 2021 14:50:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Katherine Cox-Buday Date: Sat, 17 Jul 2021 16:49:57 -0500 Message-ID: Subject: Re: bug#49611: Acknowledgement (Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db`) To: 49611@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49611 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Attempting to do this manually with crda fails as well: #+BEGIN_EXAMPLE $ guix environment --ad-hoc crda [env] $ sudo COUNTRY=US crda Failed to set regulatory domain: -7 #+END_EXAMPLE On Sat, Jul 17, 2021 at 4:45 PM GNU bug Tracking System wrote: > > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-guix@gnu.org > > If you wish to submit further information on this problem, please > send it to 49611@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > -- > 49611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49611 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 14:12:02 2021 Received: (at 49611) by debbugs.gnu.org; 18 Jul 2021 18:12:02 +0000 Received: from localhost ([127.0.0.1]:57143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BGk-0008Ru-Gh for submit@debbugs.gnu.org; Sun, 18 Jul 2021 14:12:02 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:60299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BGh-0008RT-Hb for 49611@debbugs.gnu.org; Sun, 18 Jul 2021 14:12:00 -0400 Received: from relay7-d.mail.gandi.net (unknown [217.70.183.200]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 7BE3AC4164 for <49611@debbugs.gnu.org>; Sun, 18 Jul 2021 17:48:06 +0000 (UTC) Received: (Authenticated sender: brice@waegenei.re) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 5857720004; Sun, 18 Jul 2021 17:47:59 +0000 (UTC) From: Brice Waegeneire To: Katherine Cox-Buday Subject: Re: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` References: Date: Sun, 18 Jul 2021 19:47:54 +0200 In-Reply-To: (Katherine Cox-Buday's message of "Sat, 17 Jul 2021 16:43:43 -0500") Message-ID: <87r1fvsed1.fsf@waegenei.re> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49611 Cc: 49611@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Katherine, TL;DR: =E2=80=9Ciw reg set US=E2=80=9D correctly set the regulatory region = from userland but Guix can't set it just from the kernel. Katherine Cox-Buday writes: > #+BEGIN_EXAMPLE > [ 8.280462] cfg80211: Loading compiled-in X.509 certificates for > regulatory database > [ 8.282686] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' > [ 8.284394] platform regulatory.0: Direct firmware load for > regulatory.db failed with error -2 > [ 8.284415] cfg80211: failed to load regulatory.db > #+END_EXAMPLE There is three way to make the module cfg80211 load a regulatory database: 1. Baking the DB into the kernel at build time by replacing the kernel's limited DB with the one from 'wireless-regdb' via the option CONFIG_CFG80211_INTERNAL_REGDB=C2=B9. 2. Loading the DB at boot time as a signed firmware file (lib/firmware/regulatory.db from 'wirerless-regdb') via the module 'cfg80211'. 3. Doing it in userland with the helper 'crda' trough the utility 'iwd' or its predecesor 'wpa_supplicant'.=C2=B2 >From what I understand and what I tested, only the third method works in Guix System ATM. It could be usefull to also support the first or second method to not depend on the userland setting the wireless regulatory settings. The error you are experiencing come from the second method failing to load the signed firmware file. The issue is that Guix's 'wireless-regdb' is build from source and not just copied as other distribution do, where the provided binary also has a signature which the kernel accept through a built in public key. Our build version isn't signed at all, the commentaries in the definition for the package say Guix don't want to maintain its own key for signing this package, which is understable and state that Guix architecture already provide a similar level of authenticity (I'm not so sure of that part). So this error message should be harmless expected in some less common context, such as having the rootfs on an NFS and using a wireless connection to connect to the NFS server. We could fix that without maintaining keys by baking the DB into the kernel (first method). > #+BEGIN_EXAMPLE > $ find -L /run/current-system -name regulatory.db > /run/current-system/profile/lib/firmware/regulatory.db > #+END_EXAMPLE We don't need the regulatory.db from 'wirelress-regdb' to be in the system profile, instead it should be added to the operating-system's firmware field. And the kernel will find it the directory contained in =E2=80=9C/sys/module/firmware_class/parameters/path=E2=80=9D. =C2=B9 https://cateee.net/lkddb/web-lkddb/CFG80211_INTERNAL_REGDB.html =C2=B2 https://wireless.wiki.kernel.org/en/developers/regulatory/crda#chang= ing_regulatory_domains Cheers, - Brice From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 15:17:40 2021 Received: (at 49611) by debbugs.gnu.org; 18 Jul 2021 19:17:40 +0000 Received: from localhost ([127.0.0.1]:57361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5CIG-00022q-2Q for submit@debbugs.gnu.org; Sun, 18 Jul 2021 15:17:40 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5CIE-0001xi-1r for 49611@debbugs.gnu.org; Sun, 18 Jul 2021 15:17:39 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 8DE9124010A for <49611@debbugs.gnu.org>; Sun, 18 Jul 2021 21:17:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1626635851; bh=p6GhIxloBKVvNdNpTwJV70H7C+0AFNcFA0ekNstFuxg=; h=From:To:Cc:Subject:Date:From; b=r67TuZ39xrKT1JutjdKvV17wTBE7V4Bxd9aNwlHFrB9XBGz2vOPfN9ryTtcZ3IKm/ meQwj5hpR3w3IU8X9UgWbYmHQNkgjbEm3gTi0BYTjLMWQuLgjIYBkSLV3hfLiU5Ce5 0GUBo36wUbHviY2BUa7zdkCB4wdJ745YFHcOs2vHCBCxp6gqbu0nycqrh0lX2SAPmt N3Tlciq/EYXbujfqlZU6lAzeqCzu7PGDUaO5FE5qANdKsnA3Qx20xfNTuof2KejU3L +Y7EHdU+ko83kJEezqeyxLap9KonauEwma5m2w8HgoHNNhiSB+8vjOY6+H7ULNe2As 3lBSEShuEdFsw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GSZVd5NfVz9rxb; Sun, 18 Jul 2021 21:17:28 +0200 (CEST) References: <87r1fvsed1.fsf@waegenei.re> From: Guillaume Le Vaillant To: Katherine Cox-Buday Subject: Re: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` In-reply-to: <87r1fvsed1.fsf@waegenei.re> Date: Sun, 18 Jul 2021 19:17:21 +0000 Message-ID: <871r7v77pa.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49611 Cc: 49611@debbugs.gnu.org, Brice Waegeneire X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Brice Waegeneire skribis: > Hello Katherine, > > TL;DR: =E2=80=9Ciw reg set US=E2=80=9D correctly set the regulatory regio= n from userland > but Guix can't set it just from the kernel. > > Katherine Cox-Buday writes: > >> #+BEGIN_EXAMPLE >> [ 8.280462] cfg80211: Loading compiled-in X.509 certificates for >> regulatory database >> [ 8.282686] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' >> [ 8.284394] platform regulatory.0: Direct firmware load for >> regulatory.db failed with error -2 >> [ 8.284415] cfg80211: failed to load regulatory.db >> #+END_EXAMPLE > > There is three way to make the module cfg80211 load a regulatory > database: > 1. Baking the DB into the kernel at build time by replacing the kernel's > limited DB with the one from 'wireless-regdb' via the option > CONFIG_CFG80211_INTERNAL_REGDB=C2=B9. > 2. Loading the DB at boot time as a signed firmware file > (lib/firmware/regulatory.db from 'wirerless-regdb') via the module > 'cfg80211'. > 3. Doing it in userland with the helper 'crda' trough the utility > 'iwd' or its predecesor 'wpa_supplicant'.=C2=B2 > > From what I understand and what I tested, only the third method works in > Guix System ATM. It could be usefull to also support the first or > second method to not depend on the userland setting the wireless > regulatory settings. Hi, You could also try adding "cfg80211.ieee80211_regdom=3DUS" to the 'kernel-arguments' field of your 'operating-system' definition. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYPR+QQ8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+cegD/fOlt0OU/bkOYroystnrpkYU6XA+pUKEk1Iz0 N5yFKP4A/jlwl5J2BU3IZuts21v0UxPwm1Ewoct5t/lG1ihTNzdz =ckvl -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 19 14:21:33 2021 Received: (at 49611) by debbugs.gnu.org; 19 Jul 2021 18:21:33 +0000 Received: from localhost ([127.0.0.1]:60301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5XtV-0003iU-Hr for submit@debbugs.gnu.org; Mon, 19 Jul 2021 14:21:33 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:46919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5XtU-0003iH-AT for 49611@debbugs.gnu.org; Mon, 19 Jul 2021 14:21:32 -0400 Received: by mail-lj1-f179.google.com with SMTP id q4so27581494ljp.13 for <49611@debbugs.gnu.org>; Mon, 19 Jul 2021 11:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8xAdg46b3Bz1/W4Xe1Sdkkjn2kdz8IkKXejTyRTTkw4=; b=XmKxjkMHKyWocXlbT4WlmHx9hGuIycsJMy0FmasialGt85+SjPJlJfSsL4qn+RCcqH vtpACSlZcjKn9JLkQ5R/fq0L9mBATxdejexGrKGiF1X0pT1d3CXr41ISa+gSfpxBKA/1 56KfNBzYqNxwU8FX4OHg9hbdvH14p67v/8/QzrqHZPseBYrh4ghFRI57bb7ihxTFN6zZ duU9HHUmesuyJ1R3oKZJuAQMmGqVko/UOYj4Xo178oe5JoKjmpUhVckj1uUvdywwmr9K t01CqYWATH4aSNu/2Q+sKq4wDhRL8rifjaymkdqsRt6Osj6zQTydjw8dktUPjKL3X3Qd HIkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8xAdg46b3Bz1/W4Xe1Sdkkjn2kdz8IkKXejTyRTTkw4=; b=tZS5K+Gbbc2W6q1yc6gJlz7dOwiR+pQ8xuXxfjBypLhLf/uoQ21um8auSj+XvNuh2h Rdy85rbaCjxDBwRuWmPDe95phI03uAkgl+gOYQoZdmeibLyHdCA3Ke1WznOle3rv+j4b fQWSuJ1+eEdhf4WtaNSPdZc2GNJtMmeYVN6+gp4RtWw1LY2CwXvFBl1fKaB7kw4ZSFWS tUKI63dxnlo3RBQnJRd8V9J2grUj9hjRTmaP8hcLZuImOKgftrzWSpOSzFHf8fWRuivi 28NWEqwnCzKPj0/h7K4hjBUTkZ85tQ9NYHJTK5obUdjJPYD18PtRMuxVChH38qit17ou 3dXw== X-Gm-Message-State: AOAM532BBmYot9BqkjNH9SUnrnMpcu0b9C3HqD9u3ZnjE12HIwJocQYU 1myUYqy732BYoSQnNO5cAQiAMPanXD/cFs3FzYo= X-Google-Smtp-Source: ABdhPJz6HK+Wp65SyiZb5PcIrTUe5tF18seK/kDBZrcyfY4rw7eNxay5qmYBZO7ioo20S7Txe8WWSSBoo0//TldScsc= X-Received: by 2002:a2e:8547:: with SMTP id u7mr163616ljj.26.1626718885321; Mon, 19 Jul 2021 11:21:25 -0700 (PDT) MIME-Version: 1.0 References: <87r1fvsed1.fsf@waegenei.re> <871r7v77pa.fsf@kitej> In-Reply-To: <871r7v77pa.fsf@kitej> From: Katherine Cox-Buday Date: Mon, 19 Jul 2021 13:21:14 -0500 Message-ID: Subject: Re: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` To: Guillaume Le Vaillant Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49611 Cc: 49611@debbugs.gnu.org, Brice Waegeneire X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank you both! I was not aware that this belonged in the firmware field and not the packages field. This has solved the error message during boot. Further, adding the kernel argument successfully sets my region as US on boot. tags 49611 notabug close 49611 This is not part of the bug per-say, but a question around this space: despite all of this, I still cannot broadcast on US approved channels. I think this is because the EEPROM on the card is set as global. What am I missing? Do you know how Linux intend for people to notify the stack that this is an OK thing to do? I know projects like OpenWRT carry patches to the driver, but I keep thinking surely this is not the only way. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 19 17:17:36 2021 Received: (at 49611) by debbugs.gnu.org; 19 Jul 2021 21:17:36 +0000 Received: from localhost ([127.0.0.1]:60491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5adr-0007v1-O8 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 17:17:35 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5adp-0007un-5a for 49611@debbugs.gnu.org; Mon, 19 Jul 2021 17:17:34 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9F875240104 for <49611@debbugs.gnu.org>; Mon, 19 Jul 2021 23:17:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1626729446; bh=H/XgQmnF1rrEXyXWZDxrkuR72G+KxxFZpjWKETKGnI0=; h=From:To:Cc:Subject:Date:From; b=cdRQJFsAYeZt2nAT5HYQE03hzf2Is7UK9zCG5y+/iqYBtoFZrmaQgNDC5KnhxAzJc rEHQDCECOtpX9Ppsob0HAKha/Z1nMPJuo/SYv1IeuNlD/gD03c8y9S+CwNDfz2qNLR rE8rCT+pENVCge41Kory40wDXVRsGXSkKjLpi/z1V8GKl4ckNSq768fx5Ut8peNINS CwC1UvTnK2LlnAVLYCevNFhwvQiQ1xPzEFW5zAin+0bL6blM6G16J3GX4pOWNxpYam Bslae3f/68XPlfyAh41l6ogrTCDf2S3bOyei2gFLA4gocqkA2XAsPqSaXfVYb8OrRA F9xAIasa/MQUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GTF6Y3Lyfz6tm9; Mon, 19 Jul 2021 23:17:25 +0200 (CEST) References: <87r1fvsed1.fsf@waegenei.re> <871r7v77pa.fsf@kitej> From: Guillaume Le Vaillant To: Katherine Cox-Buday Subject: Re: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` In-reply-to: Date: Mon, 19 Jul 2021 21:17:23 +0000 Message-ID: <87bl6yuhp8.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49611 Cc: 49611@debbugs.gnu.org, Brice Waegeneire X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Katherine Cox-Buday skribis: > Thank you both! I was not aware that this belonged in the firmware > field and not the packages field. This has solved the error message > during boot. Further, adding the kernel argument successfully sets my > region as US on boot. > > tags 49611 notabug > close 49611 > > This is not part of the bug per-say, but a question around this space: > despite all of this, I still cannot broadcast on US approved channels. > I think this is because the EEPROM on the card is set as global. What > am I missing? Do you know how Linux intend for people to notify the > stack that this is an OK thing to do? I know projects like OpenWRT > carry patches to the driver, but I keep thinking surely this is not > the only way. Some WiFi devices can have extra EEPROM-based restrictions if they don't implement some features. I have a WiFi card that I can't use as access point on the 5 GHz band because it doesn't implement radar detection, which is apparently mandatory on this band to avoid causing interference. Luckily I have another device based on a different chipset where it just works. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYPXr4w8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j/vfwD5AYsiQ1rreKdC4RuWfMhABhMzF3Rshr4b1/e4 S2+HcFMA/RZlAXcvAcTN2CG8Bzvo4mvORgFvO5mbQM83VWkxDL1K =VMHA -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 19:40:25 2021 Received: (at submit) by debbugs.gnu.org; 9 Aug 2021 23:40:25 +0000 Received: from localhost ([127.0.0.1]:58061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDEsb-0006yp-3u for submit@debbugs.gnu.org; Mon, 09 Aug 2021 19:40:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:49056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDEsZ-0006yh-8r for submit@debbugs.gnu.org; Mon, 09 Aug 2021 19:40:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDEsY-0008Sw-Kw for bug-guix@gnu.org; Mon, 09 Aug 2021 19:40:22 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:57641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDEsV-0003in-SE for bug-guix@gnu.org; Mon, 09 Aug 2021 19:40:21 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 52741320094F for ; Mon, 9 Aug 2021 19:40:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 09 Aug 2021 19:40:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= tom-fitzhenry.me.uk; h=to:references:from:subject:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=fm2; bh=a6RoSixCzzF8Xq3+RXmJ4vMlSZ EyoSrVPyDI0T3DTpg=; b=RKqnmDn0cTyUAAhhb3qcER8srZUD96nDdkE5caC39T iYstpKzf2CPNspmKx9r+hcf8rHIm8H486DiXVsx8EfdrB3AzIFvgUAOA7IyCUJAT hy3RvDtXsCo8pUdhBM71Y9gZHkwZSsJ03jiCs19GFyp7tLOQMdjvkewLWKMW/uy9 ClcOlyKoGp7dX2Aijn06eSMvHWniNLj5nXbmpC6Td7cUnWvrQ4j6h5BPxgYbwZ/6 eNUG4+lSkQNuL2Yw5wbGQv7oYlU60lf2D04fa+499EAK3nQCzc/P5Mpei4JhIeS6 mujxbJ5QkeZpDho+0i9WTSreGawLSpF3iZ6kftcMNnqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=a6RoSixCzzF8Xq3+RXmJ4vMlSZEyoSrVPyDI0T3DT pg=; b=vsUNHiYdj8zB+Zh6j2lcF3YKG6AL2KLSWkoTpc7rrg2E6Y/oA2z7dLLmN VD0EoppX1BWOkztjvSz7uLDWy3SL5Km5UGX88dA5aGCHVaaKasU2fIl6mloM+Xb7 fUMLfFumIuareE3A2HRwts5ov+ykLUtLntw63cdnVg2gyS15yqfFhQ5Q+d+IZlKW dUyAu/+uonE9+gOnmolMBzTRty5tCY5mN08V9m7fL4xANELEPMrUj/qIO03uXyv3 wiUYH/twOCMU04+5Za5rUA9Tznf0+XuOCsr8Mlx9GDrPwm/ZIwtXUhHFNuW9esmc vFDTm3wSepirmx2vI0LscJed0FJjg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeekgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepvfhfhffukffffgggjggtgfesthekre dttdefjeenucfhrhhomhepvfhomhcuhfhithiihhgvnhhrhicuoehtohhmsehtohhmqdhf ihhtiihhvghnrhihrdhmvgdruhhkqeenucggtffrrghtthgvrhhnpeeuveegvddukeeuje etteetvedtlefgtedtudfhgfetfeevkefhheelffdtveekvdenucffohhmrghinhepghhi thhhuhgsrdgtohhmpdhkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehtohhmsehtohhmqdhfihhtiihhvghnrhihrdhm vgdruhhk X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 9 Aug 2021 19:40:13 -0400 (EDT) To: bug-guix@gnu.org References: <87r1fvsed1.fsf@waegenei.re> <871r7v77pa.fsf@kitej> From: Tom Fitzhenry Subject: Re: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` Message-ID: Date: Tue, 10 Aug 2021 09:40:11 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.21; envelope-from=tom@tom-fitzhenry.me.uk; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.5 (--) On 20/07/2021 04:21, Katherine Cox-Buday wrote: > I think this is because the EEPROM on the card is set as global. What > am I missing? Do you know how Linux intend for people to notify the > stack that this is an OK thing to do? I know projects like OpenWRT > carry patches to the driver, but I keep thinking surely this is not > the only way. https://github.com/pcengines/apu2-documentation/issues/189 tracks this issue for PC Engines, which retails wireless cards whose EEPROM uses a global region. My poor understanding is that Linux does not offer a way for end users to override the EEPROM, per "It should be reasonably impossible for a user to fail to comply with local regulations either unwittingly or by accident."[0] It looks like the two supported ways to set regulatory domain are: * a card vendor/retailer that performs certification, and flashes the EEPROM. * a system integrator (e.g. off-the-shelf wireless routers, mobile phones, etc.) that performs certification and sets CONFIG_CFG80211_CERTIFICATION_ONUS. Linux does offer a way to indicate your current region via CRDA[1], but this is for the "travelling in another country" usecase, and acts to restrict the driver to intersection(EEPROM, country). 0. https://wireless.wiki.kernel.org/en/developers/regulatory/statement 1. https://wireless.wiki.kernel.org/en/developers/regulatory From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 19:46:01 2021 Received: (at 49611) by debbugs.gnu.org; 9 Aug 2021 23:46:01 +0000 Received: from localhost ([127.0.0.1]:58067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDEy0-00076e-SA for submit@debbugs.gnu.org; Mon, 09 Aug 2021 19:46:01 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:49911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDExy-00076R-SU for 49611@debbugs.gnu.org; Mon, 09 Aug 2021 19:45:59 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E4974320091E; Mon, 9 Aug 2021 19:45:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 09 Aug 2021 19:45:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= tom-fitzhenry.me.uk; h=to:cc:references:from:subject:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=fm2; bh=VbFp7XLlYABXqggI9ySfq90Ysu OECA4gLWVU2GzUAKY=; b=lbvWaMhAAlz9lWJ+lhslmJoWFlv7cS96Eak2PXfopp qF6xpjYQGzJWAlIa+yQWCHCH61MMd31CCD+rmJRRmncsARMep7Hlemmu7isKw7MQ l/lTkfFhpsvgCMqQ+PNZ3u3xoIZaztPLwAY8odIllKo8lrGdiaWogzoZ1I3beLg5 MMVA4G6UD9iQrBewuUCWQXSIIGbJGlJKz5mtIAFrxwaTPHmGovcuasr2aqDTjSTG eEq8y75wvTZYmUCmRZWt9DkTq/bliatr3nQEYBQeWqXTP/RhXu81/7iI6OHgBJP2 nerKc+8JH/0TolluWxb5nKvkGXIfwY5l0JLOEB3ED3WQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=VbFp7XLlYABXqggI9ySfq90YsuOECA4gLWVU2GzUA KY=; b=Rfcqex7ynot49nLDdKz2t+PR+cMLSZlHrAMXr0T1O+urQHNcKbqukaS0m DtE6nVVVn4CXxP4Td7h4PkZDLEHef/JNupbDnMJ9Rk+4FeyH2cRx6LrrsoYsLm5P TCN4TGEcDlm4LQgfZv05mC4SMxbwCZosFyOOszGs6cxN+PYTCot6np3vIWM8unFo 41BJUHXwBLmkuPsI3VgAqxdQV6UgBFhVZoZl7Nt1pfmaIFA1aHyBfsLhr0j9DZml XrdLz7l1SE+TANtPm4/WJ7yMbaY/f4auZuDCqVhMfh+3Nlnzcj3t86oTZwMaZ+ia cTqFH7OdwVIkhM+a2TTcHHbAplJYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeekgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefvfhfhuffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefvohhmucfh ihhtiihhvghnrhihuceothhomhesthhomhdqfhhithiihhgvnhhrhidrmhgvrdhukheqne cuggftrfgrthhtvghrnhepueevgedvudekueejteetteevtdelgfettdduhffgteefveek hfehlefftdevkedvnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpkhgvrhhnvghlrd horhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep thhomhesthhomhdqfhhithiihhgvnhhrhidrmhgvrdhukh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Aug 2021 19:45:49 -0400 (EDT) To: Katherine Cox-Buday , Guillaume Le Vaillant References: <87r1fvsed1.fsf@waegenei.re> <871r7v77pa.fsf@kitej> From: Tom Fitzhenry Subject: Re: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` Message-ID: Date: Tue, 10 Aug 2021 09:45:46 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 49611 Cc: 49611@debbugs.gnu.org, Brice Waegeneire X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) On 20/07/2021 04:21, Katherine Cox-Buday wrote: > This is not part of the bug per-say, but a question around this space: > despite all of this, I still cannot broadcast on US approved channels. > I think this is because the EEPROM on the card is set as global. What > am I missing? Do you know how Linux intend for people to notify the > stack that this is an OK thing to do? I know projects like OpenWRT > carry patches to the driver, but I keep thinking surely this is not > the only way. https://github.com/pcengines/apu2-documentation/issues/189 tracks this issue for PC Engines, which retails wireless cards whose EEPROM uses a global region. Disclaimer: I don't understand this well. My understanding is that Linux does not offer a way for end users to override the EEPROM, per "It should be reasonably impossible for a user to fail to comply with local regulations either unwittingly or by accident."[0] I can see two supported ways to set the regulatory domain: * a card vendor/retailer performs certification, and flashes the EEPROM accordingly. * a system integrator (e.g. off-the-shelf wireless routers, mobile phones, etc.) performs certification and sets CONFIG_CFG80211_CERTIFICATION_ONUS. Linux does offer a way to indicate your current region via CRDA[1], but this is for the "travelling in another country" usecase, and acts to restrict the driver to intersection(EEPROM, country). 0. https://wireless.wiki.kernel.org/en/developers/regulatory/statement 1. https://wireless.wiki.kernel.org/en/developers/regulatory