Package: crda
Version: 3.13-1+b1
Severity: normal

I noticed that my regulatory domain is not set correclty anymore. The last time 
I looked into that - half a year ago - it still worked.
When network-manager tries to bring a wlan interface up, the world regulatory 
domain is set, and in syslog I find following message:
systemd-udevd[16722]: Process '/sbin/crda' failed with exit code 255.

I guess that's from the udev script 85-regulatory.rules which should run crda.
running crda by hand shows me following message:
COUNTRY environment variable not set.

When I set that variable I get the message 
Failed to set regulatory domain: -7

>From there on I don't know how to continue...

Anyway, as temporary solution I added following script to
/etc/NetworkManager/dispatcher.d/pre-up.d
which works for now.

#!/bin/sh

interface=$1 status=$2
if [ "$interface" = "wlan1" ]; then
        /lib/crda/setregdomain
        sleep 2
        iwconfig wlan1 txpower 30
fi

maybe it would be better to call in the udev script also setregdomain, instead 
of crda.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages crda depends on:
ii  iw                3.17-1
ii  libc6             2.21-6
ii  libnl-3-200       3.2.26-1
ii  libnl-genl-3-200  3.2.26-1
ii  libssl1.0.2       1.0.2e-1
ii  wireless-regdb    2015.07.20-1

crda recommends no packages.

crda suggests no packages.

-- Configuration Files:
/etc/default/crda changed:
REGDOMAIN=VE


-- no debconf information

Reply via email to