Command iw does not find network devices

Hi everyone

First, all the below commands are working:

  1. sudo lshw -c network

-network

   descrição: Ethernet interface
   produto: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   fabricante: Realtek Semiconductor Co., Ltd.
   ID físico: 0
   informações do barramento: pci@0000:02:00.0
   nome lógico: enp2s0
   versão: 11
   serial: 70:85:c2:58:41:6d
   capacidade: 1Gbit/s
   largura: 64 bits
   clock: 33MHz
   capacidades: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
   configuração: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.15.0-69-generic firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=twisted pair
   recursos: irq:17 porta de E/S:e000(tamanho=256) memória:d0604000-d0604fff memória:d0600000-d0603fff

-network

   descrição: Interface sem fio
   ID físico: 1
   informações do barramento: usb@1:2.2
   nome lógico: wlx503eaa69c293
   serial: 50:3e:aa:69:c2:93
   capacidades: ethernet physical wireless
   configuração: broadcast=yes driver=r8188eu driverversion=5.15.0-69-generic ip=192.168.15.7 multicast=yes wireless=IEEE 802.11bgn
  1. sudo ifconfig

enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 70:85:c2:58:41:6d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Loopback Local)
RX packets 4835 bytes 481264 (481.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4835 bytes 481264 (481.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlx503eaa69c293: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.15.7 netmask 255.255.255.0 broadcast 192.168.15.255
inet6 fe80::4a91:a84b:554a:d8e7 prefixlen 64 scopeid 0x20
inet6 2804:431:c7e2:4c27:bfbb:69e1:ef66:374f prefixlen 64 scopeid 0x0
inet6 2804:431:c7e2:4c27:8982:dac7:4ca2:ed7a prefixlen 64 scopeid 0x0
ether 50:3e:aa:69:c2:93 txqueuelen 1000 (Ethernet)
RX packets 62182 bytes 53930302 (53.9 MB)
RX errors 0 dropped 3247 overruns 0 frame 0
TX packets 36330 bytes 7551017 (7.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

But the command iw is not working, it is showing nothing, or it returns no device

sudo iw list

sudo iw dev

sudo iw phy

sudo iw wlx503eaa69c293 info

command failed: No such device (-19)

Any idea what's going on?

Cap_2023-04-18

You would need to identify your interface in the command for it to produce output.
I also do not see a wifi device listed under your sudo lshw -C network output.
Is your wifi recognized?

Do you have wireless-tools installed?

Check via: sudo apt search wireless-tools

There's a few references to iw being for unencrypted connections, and iwd for encrypted, but iw works just fine on my WPA3 WiFi.

Have you tried iwconfig?

Hi Aravisian

Sorry for the inconvenience. The returned message is in Portuguese, so "Interface sem fio" is wireless or wifi interface.
sudo lshw -C network find wlx503eaa69c293, this is my USB wifi adapter.

My wifi is working and connected. As you can see below, I tried the command iwconfig, and it does not translate the returns::
lo no wireless extensions.

enp2s0 no wireless extensions.

wlx503eaa69c293 IEEE 802.11bgn ESSID:"FREITAS" Nickname:"WIFI@REALTEK"
Mode:Managed Frequency:2.412 GHz Access Point: 1C:BF:CE:44:5B:F4
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=27/100 Signal level=-64 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Cap_2023-04-18_19-18

1 Like

Hi @Mr_Magoo
Yes, I have wireless-tools and I already tried iwconfig. It is working fine. My issue is with iw.
This is the return from apt search:
wireless-tools/focal,now 30~pre9-13ubuntu1 amd64 [instalado,automático]
I also take a print :

Well, I can't help you with the iw problem, no idea what's going on there...

... but I can tell you that you've got a pretty weak WiFi signal... I can run my laptop's WiFi txpower at: sudo iwconfig wlo1 txpower 1dBm, and I still get: Link Quality=70/70 Signal level=-32 dBm.

The analogous iw command to set the txpower is: sudo iw dev wlo1 set txpower fixed 100

If I increase txpower to maximum: sudo iwconfig wlo1 txpower 20dBm, I get Link Quality=70/70 Signal level=-29 dBm.

The analogous iw command to set the txpower is: sudo iw dev wlo1 set txpower fixed 2000

Does your wireless router have any settings that let you increase its transmit power? If so, crank it up. Same with your computer's WiFi card, if it's got the ability to change txpower.

If you need long-range WiFi, and your wireless router has external antennas, you can build a Cantenna to focus the signal toward your computer. Just unplug one of the antennas and plug in your Cantenna, then aim it toward your computer. I once used two Cantennas (one on the router, one on the computer) to get WiFi 4000 feet from the WiFi router.

If I may ask:
What is your ultimate goal? What are you trying to achieve? There is a reason you wish to use the iw command and like @Mr_Magoo , I am not familiar with much use of it.
But we may be more assistance if we know why you are using the iw command and help to resolve that issue.

Thanks @Mr_Magoo
I am far from my wifi router and I don't expect any good signal here.
Unfortunately, the device doesnt accept the command but it is ok for me.

sudo iwconfig wlx503eaa69c293 txpower 20dBm
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlx503eaa69c293 ; Operation not permitted.

Hi @Aravisian
I read that iw will replace iwconfig in a near future and iw works fine in my another desktop with Ubuntu. That are the reasons. I believe there is something related to Zorin environment that does not enable iw to find the network devices.

About iw

iw is a new nl80211 based CLI configuration utility for wireless devices. It supports all new drivers that have been added to the kernel recently. The old tool iwconfig, which uses Wireless Extensions interface, is deprecated and it's strongly recommended to switch to iw and nl80211.

The source is here "en:users:documentation:iw [Linux Wireless]"

1 Like

I feel a bit better, now. :wink:
I was getting self-conscious as this is not a command I am well versed with.
I use iwconfig...

Not sure if this is help or hindrance
I use Core & iw works for me?

Summary

al@Al:~$ sudo iw list
Wiphy phy0
max # scan SSIDs: 20
max scan IEs length: 365 bytes
max # sched scan SSIDs: 20
max # match sets: 8
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Device supports AP-side u-APSD.
Device supports T-DLS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
* CMAC (00-0f-ac:6)
* GMAC-128 (00-0f-ac:11)
* GMAC-256 (00-0f-ac:12)
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
* P2P-device
Band 1:
Capabilities: 0x19ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
HE Iftypes: Station
HE MAC Capabilities (0x78019a30abc0):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
Multi-TID Aggregation Support: 7
Broadcast TWT
32-bit BA Bitmap
OM Control
Maximum A-MPDU Length Exponent: 3
RX Control Frame to MultiBSS
A-MSDU in A-MPDU
Multi-TID Aggregation TX: 7
UL 2x996-Tone RU
HE PHY Capabilities: (0x0e3f0e00fd098c160ffc01):
HE40/2.4GHz
HE40/HE80/5GHz
HE160/5GHz
Punctured Preamble RX: 15
Device Class: 1
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
SU Beamformee
Beamformee STS <= 80Mhz: 7
Beamformee STS > 80Mhz: 7
Sounding Dimensions <= 80Mhz: 1
Sounding Dimensions > 80Mhz: 1
Triggered SU Beamforming Feedback
Triggered MU Beamforming Feedback
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
Max NC: 2
HE ER SU PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
20MHz in 160/80+80MHz HE PPDU
80MHz in 160/80+80MHz HE PPDU
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE RX MCS and NSS set 160 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set 160 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x61 0x1c 0xc7 0x71
HE Iftypes: AP
HE MAC Capabilities (0x78011a100000):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
Multi-TID Aggregation Support: 7
Broadcast TWT
OM Control
Maximum A-MPDU Length Exponent: 3
HE PHY Capabilities: (0x06200e000009800401c400):
HE40/2.4GHz
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Sounding Dimensions <= 80Mhz: 1
Sounding Dimensions > 80Mhz: 1
PPE Threshold Present
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
HE ER SU PPDU 4x HE-LTF 0.8us GI
TX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x61 0x1c 0xc7 0x71
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (22.0 dBm)
* 2417 MHz [2] (22.0 dBm)
* 2422 MHz [3] (22.0 dBm)
* 2427 MHz [4] (22.0 dBm)
* 2432 MHz [5] (22.0 dBm)
* 2437 MHz [6] (22.0 dBm)
* 2442 MHz [7] (22.0 dBm)
* 2447 MHz [8] (22.0 dBm)
* 2452 MHz [9] (22.0 dBm)
* 2457 MHz [10] (22.0 dBm)
* 2462 MHz [11] (22.0 dBm)
* 2467 MHz [12] (22.0 dBm)
* 2472 MHz [13] (22.0 dBm)
* 2484 MHz [14] (disabled)
Band 2:
Capabilities: 0x19ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
VHT Capabilities (0x039071f6):
Max MPDU length: 11454
Supported Channel Width: 160 MHz
RX LDPC
short GI (80 MHz)
short GI (160/80+80 MHz)
TX STBC
SU Beamformee
MU Beamformee
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
HE Iftypes: Station
HE MAC Capabilities (0x78018a30abc0):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
Multi-TID Aggregation Support: 7
Broadcast TWT
32-bit BA Bitmap
OM Control
Maximum A-MPDU Length Exponent: 1
RX Control Frame to MultiBSS
A-MSDU in A-MPDU
Multi-TID Aggregation TX: 7
UL 2x996-Tone RU
HE PHY Capabilities: (0x0e3f0e00fd098c160ffc01):
HE40/2.4GHz
HE40/HE80/5GHz
HE160/5GHz
Punctured Preamble RX: 15
Device Class: 1
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
SU Beamformee
Beamformee STS <= 80Mhz: 7
Beamformee STS > 80Mhz: 7
Sounding Dimensions <= 80Mhz: 1
Sounding Dimensions > 80Mhz: 1
Triggered SU Beamforming Feedback
Triggered MU Beamforming Feedback
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
Max NC: 2
HE ER SU PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
20MHz in 160/80+80MHz HE PPDU
80MHz in 160/80+80MHz HE PPDU
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE RX MCS and NSS set 160 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set 160 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x61 0x1c 0xc7 0x71
HE Iftypes: AP
HE MAC Capabilities (0x78010a100000):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
Multi-TID Aggregation Support: 7
Broadcast TWT
OM Control
Maximum A-MPDU Length Exponent: 1
HE PHY Capabilities: (0x06200e000009800401c400):
HE40/2.4GHz
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Sounding Dimensions <= 80Mhz: 1
Sounding Dimensions > 80Mhz: 1
PPE Threshold Present
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
HE ER SU PPDU 4x HE-LTF 0.8us GI
TX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x61 0x1c 0xc7 0x71
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5180 MHz [36] (22.0 dBm) (no IR)
* 5200 MHz [40] (22.0 dBm) (no IR)
* 5220 MHz [44] (22.0 dBm) (no IR)
* 5240 MHz [48] (22.0 dBm) (no IR)
* 5260 MHz [52] (22.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (22.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (22.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (22.0 dBm) (no IR, radar detection)
* 5340 MHz [68] (disabled)
* 5360 MHz [72] (disabled)
* 5380 MHz [76] (disabled)
* 5400 MHz [80] (disabled)
* 5420 MHz [84] (disabled)
* 5440 MHz [88] (disabled)
* 5460 MHz [92] (disabled)
* 5480 MHz [96] (disabled)
* 5500 MHz [100] (22.0 dBm) (no IR, radar detection)
* 5520 MHz [104] (22.0 dBm) (no IR, radar detection)
* 5540 MHz [108] (22.0 dBm) (no IR, radar detection)
* 5560 MHz [112] (22.0 dBm) (no IR, radar detection)
* 5580 MHz [116] (22.0 dBm) (no IR, radar detection)
* 5600 MHz [120] (22.0 dBm) (no IR, radar detection)
* 5620 MHz [124] (22.0 dBm) (no IR, radar detection)
* 5640 MHz [128] (22.0 dBm) (no IR, radar detection)
* 5660 MHz [132] (22.0 dBm) (no IR, radar detection)
* 5680 MHz [136] (22.0 dBm) (no IR, radar detection)
* 5700 MHz [140] (22.0 dBm) (no IR, radar detection)
* 5720 MHz [144] (22.0 dBm) (no IR, radar detection)
* 5745 MHz [149] (22.0 dBm) (no IR)
* 5765 MHz [153] (22.0 dBm) (no IR)
* 5785 MHz [157] (22.0 dBm) (no IR)
* 5805 MHz [161] (22.0 dBm) (no IR)
* 5825 MHz [165] (22.0 dBm) (no IR)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
* 5885 MHz [177] (disabled)
* 5905 MHz [181] (disabled)
Band 4:
HE Iftypes: Station
HE MAC Capabilities (0x78018a30abc0):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
Multi-TID Aggregation Support: 7
Broadcast TWT
32-bit BA Bitmap
OM Control
Maximum A-MPDU Length Exponent: 1
RX Control Frame to MultiBSS
A-MSDU in A-MPDU
Multi-TID Aggregation TX: 7
UL 2x996-Tone RU
HE PHY Capabilities: (0x0e3f0e00fd098c160ffc01):
HE40/2.4GHz
HE40/HE80/5GHz
HE160/5GHz
Punctured Preamble RX: 15
Device Class: 1
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
SU Beamformee
Beamformee STS <= 80Mhz: 7
Beamformee STS > 80Mhz: 7
Sounding Dimensions <= 80Mhz: 1
Sounding Dimensions > 80Mhz: 1
Triggered SU Beamforming Feedback
Triggered MU Beamforming Feedback
PPE Threshold Present
Power Boost Factor ar
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
Max NC: 2
HE ER SU PPDU 4x HE-LTF 0.8us GI
20MHz in 40MHz HE PPDU 2.4GHz
20MHz in 160/80+80MHz HE PPDU
80MHz in 160/80+80MHz HE PPDU
TX 1024-QAM
RX 1024-QAM
RX Full BW SU Using HE MU PPDU with Compression SIGB
RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE RX MCS and NSS set 160 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set 160 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x61 0x1c 0xc7 0x71
HE Iftypes: AP
HE MAC Capabilities (0x78010a100000):
+HTC HE Supported
Trigger Frame MAC Padding Duration: 2
Multi-TID Aggregation Support: 7
Broadcast TWT
OM Control
Maximum A-MPDU Length Exponent: 1
HE PHY Capabilities: (0x06200e000009800401c400):
HE40/2.4GHz
HE40/HE80/5GHz
LDPC Coding in Payload
NDP with 4x HE-LTF and 3.2us GI
STBC Tx <= 80MHz
STBC Rx <= 80MHz
Sounding Dimensions <= 80Mhz: 1
Sounding Dimensions > 80Mhz: 1
PPE Threshold Present
HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
HE ER SU PPDU 4x HE-LTF 0.8us GI
TX 1024-QAM
HE RX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
HE TX MCS and NSS set <= 80 MHz
1 streams: MCS 0-11
2 streams: MCS 0-11
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
PPE Threshold 0x61 0x1c 0xc7 0x71
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5955 MHz [191] (disabled)
* 5975 MHz [195] (disabled)
* 5995 MHz [199] (disabled)
* 6015 MHz [203] (disabled)
* 6035 MHz [207] (disabled)
* 6055 MHz [211] (disabled)
* 6075 MHz [215] (disabled)
* 6095 MHz [219] (disabled)
* 6115 MHz [223] (disabled)
* 6135 MHz [227] (disabled)
* 6155 MHz [231] (disabled)
* 6175 MHz [235] (disabled)
* 6195 MHz [239] (disabled)
* 6215 MHz [243] (disabled)
* 6235 MHz [247] (disabled)
* 6255 MHz [251] (disabled)
* 6275 MHz [255] (disabled)
* 6295 MHz [259] (disabled)
* 6315 MHz [263] (disabled)
* 6335 MHz [267] (disabled)
* 6355 MHz [271] (disabled)
* 6375 MHz [275] (disabled)
* 6395 MHz [279] (disabled)
* 6415 MHz [283] (disabled)
* 6435 MHz [287] (disabled)
* 6455 MHz [291] (disabled)
* 6475 MHz [295] (disabled)
* 6495 MHz [299] (disabled)
* 6515 MHz [303] (disabled)
* 6535 MHz [307] (disabled)
* 6555 MHz [311] (disabled)
* 6575 MHz [315] (disabled)
* 6595 MHz [319] (disabled)
* 6615 MHz [323] (disabled)
* 6635 MHz [327] (disabled)
* 6655 MHz [331] (disabled)
* 6675 MHz [335] (disabled)
* 6695 MHz [339] (disabled)
* 6715 MHz [343] (disabled)
* 6735 MHz [347] (disabled)
* 6755 MHz [351] (disabled)
* 6775 MHz [355] (disabled)
* 6795 MHz [359] (disabled)
* 6815 MHz [363] (disabled)
* 6835 MHz [367] (disabled)
* 6855 MHz [371] (disabled)
* 6875 MHz [375] (disabled)
* 6895 MHz [379] (disabled)
* 6915 MHz [383] (disabled)
* 6935 MHz [387] (disabled)
* 6955 MHz [391] (disabled)
* 6975 MHz [395] (disabled)
* 6995 MHz [399] (disabled)
* 7015 MHz [403] (disabled)
* 7035 MHz [407] (disabled)
* 7055 MHz [411] (disabled)
* 7075 MHz [415] (disabled)
* 7095 MHz [419] (disabled)
* 7115 MHz [423] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* tdls_mgmt
* tdls_oper
* start_sched_scan
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* connect
* disconnect
* channel_switch
* set_qos_map
* add_tx_ts
* set_multicast_to_unicast
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 20 patterns of 16-128 bytes,
maximum packet offset 0 bytes
* can do GTK rekeying
* wake up on GTK rekey failure
* wake up on EAP identity request
* wake up on 4-way handshake
* wake up on rfkill release
* wake up on network detection, up to 8 match sets
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 1, #{ AP, P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
total <= 3, #channels <= 2
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports low priority scan.
Device supports scan flush.
Device supports per-vif TX power setting
P2P GO supports CT window setting
P2P GO supports opportunistic powersave setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
Device adds DS IE to probe requests
Device can update TPC Report IE
Device supports static SMPS
Device supports dynamic SMPS
Device supports WMM-AC admission (TSPECs)
Device supports configuring vdev MAC-addr on create.
Device supports randomizing MAC-addr in scans.
Device supports randomizing MAC-addr in sched scans.
Device supports randomizing MAC-addr in net-detect scans.
max # scan plans: 2
max scan plan interval: 65535
max scan plan iterations: 254
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
Supported extended features:
* [ VHT_IBSS ]: VHT-IBSS
* [ RRM ]: RRM
* [ MU_MIMO_AIR_SNIFFER ]: MU-MIMO sniffer
* [ SCAN_START_TIME ]: scan start timestamp
* [ BSS_PARENT_TSF ]: BSS last beacon/probe TSF
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
al@Al:~$

@freric007 Are you using Lite or Core Zorin OS?
It may help us & you telling us your Edition by adding it to your profile .

Hi @Ocka
I am using Zorin Lite and my profile is updated now.
Wow, as I can see, iw works on Core.

1 Like

Maybe try installing iw , maybe something happened on install?

sudo apt update

sudo apt install iw

Also maybe a total update/upgrade may solve this?

Found something...
sudo iw list has the following:
Supported commands:
... then it lists the commands supported by the interface... it may be that OP's network cards are older and don't recognize iw commands?

Then there's this:
"Some cards don't support netlink interface to kernel which iw uses. Try using iwconfig(iwconfig ifname txpower pwr) which uses ioctl interface to kernel."

2 Likes

@freric007 ,
With Mr_Magoo's thought.
Do you get an output from

man iw

or

iw --help

?

Added: you may now if you've re-installed iw :slight_smile:

@Ocka and @Mr_Magoo
I did this sequence:

  1. I updated my machine about 12 hours ago and reinstall iw
  2. I executed sudo iw list, and it does nothing, even with my onboard network adapter.

  • my mother board is :
    Manufacturer: ASRock
    Year: 2014
    Product Name: D1800B-ITX
    Processor: Intel J1800
    Network: Realtek RTL8111GR
    from lspci :
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
    and my wifi external card is a TP-LINK WN725N , from lsusb:
    Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
  1. iw --help works normal

  1. I verified the netlink interface
    I take the c code from
    Monitoring Linux networking state using netlink – Oleg Kutkov personal blog
    and added include <unistd.h> to remove the warning: implicit declaration of function ‘getpid’’ message
    as explained here Solution of Warning implicit declaration of function 'getpid' in C
    and the result was:
    New network interface wlx503eaa69c293, state: UP RUNNING

Therefore, at this moment, it would not define the problem as the age of the network adapters model.

A similar issue on the same card (with iwd rather than iw):
https://bbs.archlinux.org/viewtopic.php?id=271971

https://wiki.archlinux.org/title/Wpa_supplicant#nl80211_driver_not_supported_on_some_hardware

Another similar issue with a Realtek card, and a partial solution:

... that second issue immediately above is due to Linux using the wrong default driver... ifconfig and iwconfig work, but iw doesn't.

"In case anyone else ends up here .. it looks like the iw command needs the driver to implement the 'cfg80211' interface, and not all of them do."

Be sure the cfg80211 module is loaded:
find /lib/modules/$(uname -r) -type f -name '*.ko*' | grep cfg80211
... that should return something like:
/lib/modules/5.15.0-58-lowlatency/kernel/net/wireless/cfg80211.ko

sudo lsmod | grep cfg80211
... that should return something like:
cfg80211 978944 2 rtw88_core,mac80211

... and check which driver the OS is using for your WiFi card via:
lsmod | grep rtl

If that doesn't return anything, just do lsmod and search for your WiFi driver.

More information:

And a driver that uses iw commands:

1 Like

i may have found a bug;
clear the terminal first
then try

iw list

the bug i get is if i use a iw command & don't clear or hit enter to Zero the terminal ( maybe) it will not run iw command.

so after any command output's, although your terminal returns to Zero, i have to hit enter then i get iw dev... etc

This is intermittent, every 2-3 times running iw after any other commands, seems to need this action.

Got me beat what else it could be.

Note: sudo is not needed

ADDED: Check you have up to date drivers/firmware, sometimes the wrong driver/etc will stop iw output's,
This may also involve backdating drivers/firmware,
Maybe a kernel/driver compatibility issue << ( may help give you all a thought)

Sorry I didn't see your post edits mr_magoo,

try

sudo ubuntu-drivers install

reboot

@Ocka
I tried:
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ iw list
ric@oficina-ric:~$ sudo ubuntu-drivers install
[sudo] senha para ric:
No drivers found for installation.

I am looking into @Mr_Magoo post. Please, wait for my next reply.