sunrat wrote:DKCorl wrote:I'm having real hard time trying to sort out a USB WiFi. Think I'm missing some of the needed to get it going.
Drivers or firmware are the usual suspects for non-working wifi. Identify the chip in your device and search for solutions.
lsusb should show your device.
Example from mine:
- Code: Select all
Bus 007 Device 002: ID 0cf3:7015 Qualcomm Atheros Communications TP-Link TL-WN821N v3 / TL-WN822N v2 802.11n [Atheros AR7010+AR9287]
Take the 8 numeral ID and search like "linux 0cf3:7015"
In my case the driver is in the kernel but I needed to install firmware-atheros to get it working. Sometimes you need to find and build a driver as well. And occasionally you just need to get a different device. Lotsa luck!
Thanks for the reply. The best I can see is the firmware is getting loaded. I have a raspberry pi zero that is based on Buster that is working perfect on WiFi so I have been comparing. Below are some commands and the output from both the pi and the desktop.
pi@raspberrypi:~ $ sudo ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
link/ether b8:27:eb:01:3f:a7 brd ff:ff:ff:ff:ff:ff
pi@raspberrypi:~ $
---
root@Buster:/home/dkc# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:d8:61:38:a2:92 brd ff:ff:ff:ff:ff:ff
3: wlx9cefd5fca3d6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether 96:aa:ad:08:86:da brd ff:ff:ff:ff:ff:ff
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 1a2c:2124 China Resource Semico Co., Ltd
Bus 002 Device 002: ID 2188:0ae1
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# dmesg | grep usbcore
[ 1.602783] usbcore: registered new interface driver usbfs
[ 1.602791] usbcore: registered new interface driver hub
[ 1.619438] usbcore: registered new device driver usb
[ 2.211694] usbcore: registered new interface driver usbhid
[ 11.828959] usbcore: registered new interface driver rt2800usb
root@Buster:/home/dkc#
---
[ 1.709428] [drm] Found VCE firmware/feedback version 40.2.2 / 15!
[ 20.033287] r8169 0000:01:00.0: firmware: direct-loading firmware rtl_nic/rtl8168g-2.fw
[ 20.194910] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 20.218653] rt2800usb 1-3:1.0: firmware: direct-loading firmware rt2870.bin
[ 20.218664] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# ip link set wlan0 up
Cannot find device "wlan0"
root@Buster:/home/dkc#
----------------------------------------------------
pi@raspberrypi:~ $ sudo ls /proc/sys/net/ipv4/conf
all default lo wlan0
pi@raspberrypi:~ $
---
root@Buster:/home/dkc# ls /proc/sys/net/ipv4/conf
all default enp1s0 lo wlx9cefd5fca3d6
root@Buster:/home/dkc#
---
ip link set wlx9cefd5fca3d6 up
---
root@Buster:/home/dkc# ip link set wlx9cefd5fca3d6 up
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:d8:61:38:a2:92 brd ff:ff:ff:ff:ff:ff
3: wlx9cefd5fca3d6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether 66:9f:31:89:b3:60 brd ff:ff:ff:ff:ff:ff
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# nmcli device
DEVICE TYPE STATE CONNECTION
enp1s0 ethernet connected Wired connection 1
wlx9cefd5fca3d6 wifi disconnected --
lo loopback unmanaged --
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# nmcli connection up wlx9cefd5fca3d6
Error: unknown connection 'wlx9cefd5fca3d6'.
root@Buster:/home/dkc#
-------------------------------------------
Looks like the wifi device on the desktop is called wlx9cefd5fca3d6 not wlan0 (don't know why) and it is disconnected (don't know why).