On Sat, 13 May 2023 at 09:35, hl <hlyg2...@outlook.com> 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?

[root@satpro ~]# iw help | grep reg
    reg reload
        Reload the kernel's regulatory database.
    phy <phyname> reg get
        Print out the devices' current regulatory domain information.
    reg get
        Print out the kernel's current regulatory domain information.
    reg set <ISO/IEC 3166-1 alpha2>
        Notify the kernel about the current regulatory domain.

[root@satpro ~]# iw list | grep phy
Wiphy phy0
    wiphy index: 0
         * set_wiphy_netns

[root@satpro ~]# iw phy phy0 reg get
global
country AU: DFS-ETSI
    (2400 - 2483 @ 40), (N/A, 36), (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 - 5600 @ 80), (N/A, 27), (0 ms), DFS
    (5650 - 5730 @ 80), (N/A, 27), (0 ms), DFS
    (5730 - 5850 @ 80), (N/A, 36), (N/A)
    (57000 - 66000 @ 2160), (N/A, 43), (N/A), NO-OUTDOOR

[root@satpro ~]# iw reg get
global
country AU: DFS-ETSI
    (2400 - 2483 @ 40), (N/A, 36), (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 - 5600 @ 80), (N/A, 27), (0 ms), DFS
    (5650 - 5730 @ 80), (N/A, 27), (0 ms), DFS
    (5730 - 5850 @ 80), (N/A, 36), (N/A)
    (57000 - 66000 @ 2160), (N/A, 43), (N/A), NO-OUTDOOR

[root@satpro ~]# type iw
iw is hashed (/usr/sbin/iw)

[root@satpro ~]# dpkg -S /usr/sbin/iw
dpkg-query: no path found matching pattern /usr/sbin/iw

[root@satpro ~]# dpkg -S /sbin/iw
iw: /sbin/iw

[root@satpro ~]# apt show iw
Package: iw
Version: 5.9-3
Priority: optional
Section: net
Maintainer: Paride Legovini <par...@debian.org>
Installed-Size: 300 kB
Depends: libc6 (>= 2.17), libnl-3-200 (>= 3.2.7), libnl-genl-3-200 (>= 3.2.7)
Recommends: wireless-regdb
Homepage: https://wireless.wiki.kernel.org/en/users/documentation/iw
Tag: hardware::TODO, implemented-in::c, interface::commandline,
 network::configuration, role::program, use::configuring
Download-Size: 100 kB
APT-Manual-Installed: yes
APT-Sources: http://approx:9999/debian bullseye/main amd64 Packages
Description: tool for configuring Linux wireless devices
 This package contains the 'iw' command line tool which allows to configure and
 show information about wireless devices.
 .
 iw is based on the nl80211 kernel interface and supports the majority of
 fairly recent hardware. The old tool iwconfig, which uses Wireless Extensions
 interface, is deprecated and it is strongly recommended to switch to iw and
 nl80211.

[root@satpro ~]# cat /etc/debian_version
11.7

Reply via email to