regression-update: Unexpected Results 'iw reg set US'

Bug #1914853 reported by Pamela Fong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wireless-regdb (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm trying to diagnose why I'm unable to connect to a 5GHz WiFi access point from my Ubuntu 20.10 Raspberry Pi 4B 8GB. I wondered if it might be a problem with the crda. The default /etc/default/crda did not specify a country code. I edited the file to change "REGDOMAIN=" to be "REGDOMAIN=US" and rebooted.

After I run "iw reg set US", I get unexpected results for "iw reg get", that don't match the output from my Ubuntu 16.04 laptop.

$ cat /etc/default/crda
# Set REGDOMAIN to a ISO/IEC 3166-1 alpha2 country code so that iw(8) may set
# the initial regulatory domain setting for IEEE 802.11 devices which operate
# on this system.
#
# Governments assert the right to regulate usage of radio spectrum within
# their respective territories so make sure you select a ISO/IEC 3166-1 alpha2
# country code suitable for your location or you may infringe on local
# legislature. See `/usr/share/zoneinfo/zone.tab' for a table of timezone
# descriptions containing ISO/IEC 3166-1 alpha2 country codes.

REGDOMAIN=US

$ iw reg get
global
country AL: DFS-ETSI
 (2400 - 2483 @ 40), (N/A, 20), (N/A)
 (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
 (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
 (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
 (5725 - 5875 @ 80), (N/A, 13), (N/A)

$ sudo iw reg set US

$ iw reg get
global
country 98: DFS-UNSET
 (2400 - 2472 @ 40), (N/A, 20), (N/A)
 (5150 - 5250 @ 100), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
 (5250 - 5350 @ 100), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
 (5470 - 5725 @ 160), (N/A, 23), (0 ms), DFS
 (5725 - 5730 @ 5), (N/A, 13), (0 ms), DFS
 (5730 - 5850 @ 80), (N/A, 13), (N/A)

On my Ubuntu 16.04 laptop, 'iw reg get' returns 'country US: DFS-FCC' and a different list of frequency bands.

$ sudo apt-cache policy wireless-regdb

wireless-regdb:
  Installed: 2020.11.20-0ubuntu1~16.04.2
  Candidate: 2020.11.20-0ubuntu1~16.04.2
  Version table:
 *** 2020.11.20-0ubuntu1~16.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
        100 /var/lib/dpkg/status
     2015.07.20-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages

$ iw reg get
country US: DFS-FCC
 (2400 - 2472 @ 40), (N/A, 30), (N/A)
 (5150 - 5250 @ 80), (N/A, 23), (N/A)
 (5250 - 5350 @ 80), (N/A, 23), (0 ms), DFS
 (5470 - 5730 @ 160), (N/A, 23), (0 ms), DFS
 (5730 - 5850 @ 80), (N/A, 30), (N/A)
 (57240 - 71000 @ 2160), (N/A, 40), (N/A)

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: wireless-regdb 2020.11.20-0ubuntu1~20.10.1
ProcVersionSignature: Ubuntu 5.8.0-1013.16-raspi 5.8.18
Uname: Linux 5.8.0-1013-raspi aarch64
ApportVersion: 2.20.11-0ubuntu50.5
Architecture: arm64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 6 00:15:23 2021
Dependencies:

ImageMediaBuild: 20201022
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: wireless-regdb
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Pamela Fong (katsiki) wrote :
Revision history for this message
Pamela Fong (katsiki) wrote :

Hmm... maybe my specific problem is flaky hardware. Today I ran an upgrade:

Start-Date: 2021-02-09 18:35:34
Commandline: apt-get upgrade
Requested-By: user (1000)
Upgrade: linux-libc-dev:arm64 (5.8.0-41.46, 5.8.0-43.49), openjdk-8-jdk:arm64 (8u275-b01-0ubuntu1~20.10, 8u282-b08-0ubuntu1~20.10), libldap-2.4-2:arm64 (2.4.53+dfsg-1ubuntu1.2, 2.4.53+dfsg-1ubuntu1.3), openjdk-8-jre:arm64 (8u275-b01-0ubuntu1~20.10, 8u282-b08-0ubuntu1~20.10), openjdk-8-jdk-headless:arm64 (8u275-b01-0ubuntu1~20.10, 8u282-b08-0ubuntu1~20.10), qemu-utils:arm64 (1:5.0-5ubuntu9.3, 1:5.0-5ubuntu9.4), firefox-locale-en:arm64 (85.0+build1-0ubuntu0.20.10.1, 85.0.1+build1-0ubuntu0.20.10.1), libldap-common:arm64 (2.4.53+dfsg-1ubuntu1.2, 2.4.53+dfsg-1ubuntu1.3), ldap-utils:arm64 (2.4.53+dfsg-1ubuntu1.2, 2.4.53+dfsg-1ubuntu1.3), openjdk-8-jre-headless:arm64 (8u275-b01-0ubuntu1~20.10, 8u282-b08-0ubuntu1~20.10), firefox:arm64 (85.0+build1-0ubuntu0.20.10.1, 85.0.1+build1-0ubuntu0.20.10.1), qemu-block-extra:arm64 (1:5.0-5ubuntu9.3, 1:5.0-5ubuntu9.4)
End-Date: 2021-02-09 18:36:10

and surprisingly my crda region is properly set:

$ iw reg get
global
country US: DFS-FCC
 (2400 - 2472 @ 40), (N/A, 30), (N/A)
 (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
 (5250 - 5350 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
 (5470 - 5730 @ 160), (N/A, 23), (0 ms), DFS
 (5730 - 5850 @ 80), (N/A, 30), (N/A)
 (57240 - 71000 @ 2160), (N/A, 40), (N/A)

So, for me, this issue can be closed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.