Seems like this may be a duplicate of #810384 that was abandoned in January

The problem seems to be that COUNTRY attribute is not set. I think the expectation is that /lib/crda/setregdomain will be started PRIOR to /sbin/crda. On my system I have:

/etc/default/crda   containing:
REGDOMAIN=CA

/lib/udev/rules.d/40-crda.rules   containing:
SUBSYSTEM=="ieee80211", ACTION=="add", RUN+="/lib/crda/setregdomain"

/lib/udev/85-regulatory.rules   containing:
KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/sbin/crda"


If I edit the file 85-regulatory.rules file and change RUN+="/sbin/crda" to:
RUN+="/bin/bash -c '/sbin/crda; printenv > /var/log/crda.log"

If I look at /var/log/crda.log, it will show:
COUNTRY=00


If I add /lib/crda/setregdomain just before calling crda:
RUN+="/bin/bash -c '/lib/crda/setregdomain; /sbin/crda; printenv > /var/log/crda.log"

/var/log/crda.log will show the correct country code:
COUNTRY=CA


The 85-regulatory.rules file looks like this:
KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/bin/bash -c '/lib/crda/setregdomain; /sbin/crda; printenv > /var/log/crda.log"





On Thu, 10 Aug 2017 12:24:18 +0200 GT <grandtou...@msn.com> wrote:
> Package: crda
> Version: 3.18-1
> Severity: normal
>
> Dear Maintainer,
>
> *** Reporter, please consider answering these questions, where appropriate ***
>
> * What led up to the situation?
> Start of the PC
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
> check journalctl
> * What was the outcome of this action?
> guy@debian:~$ journalctl | grep /crda
> août 10 09:23:16 debian systemd-udevd[252]: Process '/sbin/crda' failed with
> exit code 249.
> août 10 11:27:56 debian systemd-udevd[14694]: Process '/sbin/crda' failed with
> exit code 255.
>
>
> * What outcome did you expect instead?
> no error for crda
> *** End of the template - remove these template lines ***
> additional info
> root@debian:/lib/udev/rules.d# iw reg get
> global
> country FR: DFS-ETSI
> (2402 - 2482 @ 40), (N/A, 20), (N/A)
> (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
> (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
> (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
> (57000 - 66000 @ 2160), (N/A, 40), (N/A)
>
> root@debian:/lib/udev/rules.d# cat /lib/udev/rules.d/85-regulatory.rules
> # Runs CRDA for kernel wireless regulatory events.
> # For more information see:
> # http://wireless.kernel.org/en/developers/Regulatory/CRDA
>
> KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform",
> RUN+="/sbin/crda"
> root@debian:/lib/udev/rules.d#
>
>
>
>
>
>
> -- System Information:
> Debian Release: buster/sid
> APT prefers testing
> APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>

--
Caleb Carroll
Mobile: +1 403 470 4776

Reply via email to