Problem: WLAN Verbindung wird nicht hergestellt und/oder gehalten.
cat /etc/os-release
Display Spoiler
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
uname -a
Display Spoiler
Linux pc-debian 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux
Am selben System (Dualboot) unter Debian 9 funktioniert das WLAN allerdings. Hier wird der Netzwerkmanager "wicd" benutzt (bei Debian 12 gibt es den anscheinend nicht).
Genutzt wird ein TP-Link TL-WN823N USB Stick. Folgendes habe ich gemacht/versucht (alles als root):
Mit dem vorinstallierte Netzwerkmanager "Connman" bekomme ich folgenden Log.
Ein Klick auf "Connect" unter Wireless -> "FRITZ!Box 7590 MF" ergibt:
journalctl -f
Display Spoiler
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: SME: Trying to authenticate with 98:9b:cb:a6:46:9a (SSID='FRITZ!Box 7590 MF' freq=2412 MHz)
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: authenticate with 98:9b:cb:a6:46:9a
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: send auth to 98:9b:cb:a6:46:9a (try 1/3)
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: SME: Trying to authenticate with 98:9b:cb:a6:46:9a (SSID='FRITZ!Box 7590 MF' freq=2412 MHz)
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: authenticate with 98:9b:cb:a6:46:9a
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: send auth to 98:9b:cb:a6:46:9a (try 1/3)
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: authenticated
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: PMKSA-CACHE-ADDED 98:9b:cb:a6:46:9a 0
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: Trying to associate with 98:9b:cb:a6:46:9a (SSID='FRITZ!Box 7590 MF' freq=2412 MHz)
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: associate with 98:9b:cb:a6:46:9a (try 1/3)
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: RX AssocResp from 98:9b:cb:a6:46:9a (capab=0x1431 status=0 aid=2)
Jul 09 17:59:58 pc-debian kernel: usb 1-1: rtl8xxxu_bss_info_changed: HT supported
Jul 09 17:59:58 pc-debian connmand[515]: wlx18d6c71cb0a8 {update} flags 102403 <UP,LOWER_UP>
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: associated
Jul 09 17:59:58 pc-debian connmand[515]: wlx18d6c71cb0a8 {newlink} index 3 address 18:D6:C7:1C:B0:A8 mtu 1500
Jul 09 17:59:58 pc-debian connmand[515]: wlx18d6c71cb0a8 {newlink} index 3 operstate 5 <DORMANT>
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: Associated with 98:9b:cb:a6:46:9a
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=DE
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: nl80211: kernel reports: key setting validation failed
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: Limiting TX power to 20 (20 - 0) dBm as advertised by 98:9b:cb:a6:46:9a
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: WPA: Failed to configure IGTK to the driver
Jul 09 17:59:58 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: RSN: Failed to configure IGTK
Jul 09 17:59:58 pc-debian kernel: wlx18d6c71cb0a8: deauthenticating from 98:9b:cb:a6:46:9a by local choice (Reason: 1=UNSPECIFIED)
Jul 09 17:59:59 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: CTRL-EVENT-DISCONNECTED bssid=98:9b:cb:a6:46:9a reason=1 locally_generated=1
Jul 09 17:59:59 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: CTRL-EVENT-DSCP-POLICY clear_all
Jul 09 17:59:59 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jul 09 17:59:59 pc-debian wpa_supplicant[518]: wlx18d6c71cb0a8: PMKSA-CACHE-REMOVED 98:9b:cb:a6:46:9a 0
Jul 09 17:59:59 pc-debian connmand[515]: wlx18d6c71cb0a8 {RX} 2 packets 336 bytes
Jul 09 17:59:59 pc-debian connmand[515]: wlx18d6c71cb0a8 {TX} 2 packets 294 bytes
Jul 09 17:59:59 pc-debian connmand[515]: wlx18d6c71cb0a8 {update} flags 36867 <UP>
Jul 09 17:59:59 pc-debian connmand[515]: wlx18d6c71cb0a8 {newlink} index 3 address 18:D6:C7:1C:B0:A8 mtu 1500
Jul 09 17:59:59 pc-debian connmand[515]: wlx18d6c71cb0a8 {newlink} index 3 operstate 2 <DOWN>
Dann habe ich https://wiki.debianforum.de/WLAN_Einrichten als Anleitung probiert.
iw dev
phy#0
Interface wlx18d6c71cb0a8
ifindex 3
wdev 0x1
addr 18:d6:c7:1c:b0:a8
type managed
txpower 20.00 dBm
lsusb -vv
Display Spoiler
Bus 001 Device 002: ID 2357:0109 TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU]
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x2357 TP-Link
idProduct 0x0109 TL-WN823N v2/v3 [Realtek RTL8192EU]
bcdDevice 2.00
iManufacturer 1 Realtek
iProduct 2 802.11n NIC
iSerial 3 00e04c000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0035
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 5
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 802.11n NIC
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 3
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x000c
bNumDeviceCaps 1
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
HIRD Link Power Management (LPM) Supported
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0001
Self Powered
Nach (SSID und Passwort der Fritzbox eingesetzt)
root@debian:~# wpa_passphrase <ROUTER_SSID> <router_password> >/root/wpa.conf
dann
wpa_supplicant -B -i wlx18d6c71cb0a8 -c /root/wpa.conf
Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
[...]
iw dev wlx18d6c71cb0a8 link
Display Spoiler
Connected to 98:9b:cb:a6:46:9a (on wlx18d6c71cb0a8)
SSID: FRITZ!Box 7590 MF
freq: 2412
RX: 10588 bytes (57 packets)
TX: 914 bytes (15 packets)
signal: -34 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 144.4 MBit/s MCS 15 short GI
bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 100
Sieht für mich erst mal gut aus. Nur dann ein paar Sekunden später nochmal
iw dev wlx18d6c71cb0a8 link
Not connected.
Etwas fruchtlos ist dann wohl
dhclient -v wlx18d6c71cb0a8
Display Spoiler
Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlx18d6c71cb0a8/18:d6:c7:1c:b0:a8
Sending on LPF/wlx18d6c71cb0a8/18:d6:c7:1c:b0:a8
Sending on Socket/fallback
DHCPDISCOVER on wlx18d6c71cb0a8 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlx18d6c71cb0a8 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlx18d6c71cb0a8 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlx18d6c71cb0a8 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlx18d6c71cb0a8 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlx18d6c71cb0a8 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ip a
Display Spoiler
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s7: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:19:66:5d:ee:a5 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.22/24 brd 192.168.178.255 scope global enp0s7
valid_lft forever preferred_lft forever
inet6 fe80::219:66ff:fe5d:eea5/64 scope link
valid_lft forever preferred_lft forever
3: wlx18d6c71cb0a8: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 18:d6:c7:1c:b0:a8 brd ff:ff:ff:ff:ff:ff
Das Einrichtung über /etc/network/interfaces hatte ich noch probiert, ohne Erfolg.
Ich kenne mich mit Netzwerk nicht aus. Daher wären Tips und/oder Hilfe Wilkommen. Wenn noch Informationen benötigt werden, bitte sagen.