On Sat 13 May 2023 at 17:19:01 (+0800), hl wrote:
> freebsd ask me regdomain/country of wifi when i set up wifi
> 
> my wifi works in buster, how to find out regdomain/country it uses?

For bullseye:

$ /sbin/iw reg get
global
country US: DFS-FCC
        (902 - 904 @ 2), (N/A, 30), (N/A)
        (904 - 920 @ 16), (N/A, 30), (N/A)
        (920 - 928 @ 8), (N/A, 30), (N/A)
        (2400 - 2472 @ 40), (N/A, 30), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
        (5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
        (5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
        (5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)

to find out what it's set to.

# /sbin/iw reg set US

to set it (the usual two-letter codes).

$ /sbin/regdbdump /usr/lib/crda/regulatory.bin | less

to list all that it knows about.

$ apt-file find foo

to find out which package foo is in.

AFAIK buster is the same.

Whare are you? China?

Cheers,
David.

Reply via email to