2013-06-15 19:57:51

by Paul Menzel

[permalink] [raw]
Subject: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

Dear Linux wireless folks,


hopefully I am contacting the correct list. I am not able to use the
Realtek RTL8188CUS based USB WLAN device Edimax EW-7811Un.

Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

The device did not work with Debian Wheezy with Linux 3.2.x, Debian
Sid/unstable with Linux 3.9.x, Ubuntu 12.04 with Linux 3.2.12 to 3.5 and
Ubuntu 13.04 with Linux 3.8. The person, from whom the device is from,
claims the device once worked with Ubuntu, but I do not know which
version and what WLAN type(?) this was with.

The behavior is always the same. The device is detected and the
NetworkManager applet `nm-applet` is also able to detect the available
networks. But wanting to connect to one and entering the correct
password, the connection cannot be established and I am asked for the
password again. I tested this with different systems and different
networks and also with wpa_supplicant. A Ralink based WLAN USB device
works just fine.

The Realtek RTL8188CUS WLAN device works also fine under Microsoft
Windows, so the device is functional.

Reporting this bug to the NetworkManager list [1], Dan Williams kindly
replied with the following analysis [2].


Am Dienstag, den 21.05.2013, 10:57 -0500 schrieb Dan Williams:

[…]

> May 19 14:30:07 myhostname wpa_supplicant[5542]: wlan1: WPA: Sending EAPOL-Key 2/4
> May 19 14:30:17 myhostname wpa_supplicant[5542]: wlan1: Authentication with bc:05:43:ae:b5:a3 timed out.
>
> this means that the driver tried to send data to the AP, but didn't hear
> anything back from the AP for 10 seconds, which of course is way, way
> too long.

[…]

Please find the logs from the Debian Sid system (Linux 3.9) pasted at
the end. Please tell me, if you need anything else.


Thanks,

Paul


[1] https://mail.gnome.org/archives/networkmanager-list/2013-May/msg00149.html
[2] https://mail.gnome.org/archives/networkmanager-list/2013-May/msg00161.html


$ lsusb -s 002:005
[…]
Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x7392 Edimax Technology Co., Ltd
idProduct 0x7811 EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
bcdDevice 2.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 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 0x02 EP 2 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 0x03 EP 3 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 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1

$ dmesg
[…]
[ 2582.903731] usb 2-3: new high-speed USB device number 5 using ehci-pci
[ 2583.038925] usb 2-3: New USB device found, idVendor=7392, idProduct=7811
[ 2583.038942] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2583.038952] usb 2-3: Product: 802.11n WLAN Adapter
[ 2583.038961] usb 2-3: Manufacturer: Realtek
[ 2583.038970] usb 2-3: SerialNumber: 00e04c000001
[ 2583.326713] calling rtl_core_module_init+0x0/0x1000 [rtlwifi] @ 16003
[ 2583.326753] initcall rtl_core_module_init+0x0/0x1000 [rtlwifi] returned 0 after 3 usecs
[ 2583.355323] calling rtl8192cu_driver_init+0x0/0x1000 [rtl8192cu] @ 16003
[ 2583.356123] rtl8192cu: Chip version 0x10
[ 2583.471162] rtl8192cu: MAC address: 80:1f:02:7c:de:7b
[ 2583.471181] rtl8192cu: Board Type 0
[ 2583.471571] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 2583.472008] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[ 2583.472397] usbcore: registered new interface driver rtl8192cu
[ 2583.472436] initcall rtl8192cu_driver_init+0x0/0x1000 [rtl8192cu] returned 0 after 114324 usecs
[ 2583.490519] usb 2-3: firmware: agent loaded rtlwifi/rtl8192cufw.bin into memory
[ 2583.490953] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[ 2583.497232] rtlwifi: wireless switch is on
[ 2583.543970] rtl8192cu: MAC auto ON okay!
[ 2583.583088] rtl8192cu: Tx queue select: 0x05
[ 2583.962276] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 2585.601177] wlan1: authenticate with bc:05:43:ae:b5:a3
[ 2585.629238] wlan1: send auth to bc:05:43:ae:b5:a3 (try 1/3)
[ 2585.656227] wlan1: authenticated
[ 2585.659521] wlan1: associate with bc:05:43:ae:b5:a3 (try 1/3)
[ 2585.684481] wlan1: RX AssocResp from bc:05:43:ae:b5:a3 (capab=0x431 status=0 aid=1)
[ 2585.684594] wlan1: associated
[ 2585.685258] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 2595.690834] wlan1: disassociating from bc:05:43:ae:b5:a3 by local choice (reason=3)
[ 2595.706266] cfg80211: Calling CRDA for country: US
[ 2595.708064] wlan1: deauthenticating from bc:05:43:ae:b5:a3 by local choice (reason=3)
[ 2597.453075] wlan1: authenticate with bc:05:43:ae:b5:a3
[ 2597.481398] wlan1: send auth to bc:05:43:ae:b5:a3 (try 1/3)
[ 2597.553088] wlan1: authenticated
[ 2597.555891] wlan1: associate with bc:05:43:ae:b5:a3 (try 1/3)
[ 2597.635637] wlan1: RX AssocResp from bc:05:43:ae:b5:a3 (capab=0x431 status=0 aid=1)
[ 2597.635748] wlan1: associated
[ 2607.640170] wlan1: disassociating from bc:05:43:ae:b5:a3 by local choice (reason=3)
[ 2607.654449] cfg80211: Calling CRDA to update world regulatory domain
[ 2607.656985] wlan1: deauthenticating from bc:05:43:ae:b5:a3 by local choice (reason=3)
[ 2609.409429] wlan1: authenticate with bc:05:43:ae:b5:a3
[ 2609.437185] wlan1: send auth to bc:05:43:ae:b5:a3 (try 1/3)
[ 2609.460052] wlan1: authenticated
[ 2609.463842] wlan1: associate with bc:05:43:ae:b5:a3 (try 1/3)
[ 2609.545170] wlan1: RX AssocResp from bc:05:43:ae:b5:a3 (capab=0x431 status=0 aid=1)
[ 2609.545313] wlan1: associated
[ 2610.122545] wlan1: deauthenticating from bc:05:43:ae:b5:a3 by local choice (reason=3)
[ 2610.137204] cfg80211: Calling CRDA to update world regulatory domain
[ 2639.310805] usb 2-3: USB disconnect, device number 5
[…]

$ more /var/log/syslog
[…]
Jun 15 18:56:51 myhostname kernel: [ 2582.903731] usb 2-3: new high-speed USB device number 5 using ehci-pci
Jun 15 18:56:51 myhostname kernel: [ 2583.038925] usb 2-3: New USB device found, idVendor=7392, idProduct=7811
Jun 15 18:56:51 myhostname kernel: [ 2583.038942] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 15 18:56:51 myhostname kernel: [ 2583.038952] usb 2-3: Product: 802.11n WLAN Adapter
Jun 15 18:56:51 myhostname kernel: [ 2583.038961] usb 2-3: Manufacturer: Realtek
Jun 15 18:56:51 myhostname kernel: [ 2583.038970] usb 2-3: SerialNumber: 00e04c000001
Jun 15 18:56:51 myhostname mtp-probe: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:12.2/usb2/2-3"
Jun 15 18:56:51 myhostname mtp-probe: bus: 2, device: 5 was not an MTP device
Jun 15 18:56:51 myhostname kernel: [ 2583.326713] calling rtl_core_module_init+0x0/0x1000 [rtlwifi] @ 16003
Jun 15 18:56:51 myhostname kernel: [ 2583.326753] initcall rtl_core_module_init+0x0/0x1000 [rtlwifi] returned 0 after 3 usecs
Jun 15 18:56:51 myhostname kernel: [ 2583.355323] calling rtl8192cu_driver_init+0x0/0x1000 [rtl8192cu] @ 16003
Jun 15 18:56:51 myhostname kernel: [ 2583.356123] rtl8192cu: Chip version 0x10
Jun 15 18:56:51 myhostname kernel: [ 2583.471162] rtl8192cu: MAC address: 80:1f:02:7c:de:7b
Jun 15 18:56:51 myhostname kernel: [ 2583.471181] rtl8192cu: Board Type 0
Jun 15 18:56:51 myhostname kernel: [ 2583.471571] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
Jun 15 18:56:51 myhostname kernel: [ 2583.472008] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
Jun 15 18:56:51 myhostname kernel: [ 2583.472397] usbcore: registered new interface driver rtl8192cu
Jun 15 18:56:51 myhostname kernel: [ 2583.472436] initcall rtl8192cu_driver_init+0x0/0x1000 [rtl8192cu] returned 0 after 114324 usecs
Jun 15 18:56:51 myhostname kernel: [ 2583.490519] usb 2-3: firmware: agent loaded rtlwifi/rtl8192cufw.bin into memory
Jun 15 18:56:51 myhostname kernel: [ 2583.490953] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> found WiFi radio killswitch rfkill1 (at /sys/devices/pci0000:00/0000:00:12.2/usb2/2-3/2-3:1.0/ieee80211/phy1/rfkill1) (driver (unknown))
Jun 15 18:56:51 myhostname kernel: [ 2583.497232] rtlwifi: wireless switch is on
Jun 15 18:56:51 myhostname NetworkManager[3002]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:12.2/usb2/2-3/2-3:1.0/net/wlan1, iface: wlan1)
Jun 15 18:56:51 myhostname NetworkManager[3002]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:12.2/usb2/2-3/2-3:1.0/net/wlan1, iface: wlan1): no ifupdown configuration found.
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> (wlan1): using nl80211 for WiFi device control
Jun 15 18:56:51 myhostname NetworkManager[3002]: <warn> (wlan1): driver supports Access Point (AP) mode
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> (wlan1): new 802.11 WiFi device (driver: 'rtl8192cu' ifindex: 4)
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> (wlan1): exported as /org/freedesktop/NetworkManager/Devices/2
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> (wlan1): now managed
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> (wlan1): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jun 15 18:56:51 myhostname NetworkManager[3002]: <info> (wlan1): bringing up device.
Jun 15 18:56:51 myhostname kernel: [ 2583.543970] rtl8192cu: MAC auto ON okay!
Jun 15 18:56:51 myhostname kernel: [ 2583.583088] rtl8192cu: Tx queue select: 0x05
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): preparing device.
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): deactivating device (reason 'managed') [2]
Jun 15 18:56:52 myhostname kernel: [ 2583.962276] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: starting -> ready
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: ready -> inactive
Jun 15 18:56:52 myhostname NetworkManager[3002]: <warn> Trying to remove a non-existant call id.
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Auto-activating connection 'MYWLAN 1'.
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) starting connection 'MYWLAN 1'
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) started...
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) scheduled...
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) complete.
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) starting...
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): device state change: prepare -> config (reason 'none') [40 50 0]
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1/wireless): access point 'MYWLAN 1' has security, but secrets are required.
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> (wlan1): device state change: config -> need-auth (reason 'none') [50 60 0]
Jun 15 18:56:52 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) complete.
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) started...
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> (wlan1): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) scheduled...
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) complete.
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) starting...
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> (wlan1): device state change: prepare -> config (reason 'none') [40 50 0]
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1/wireless): connection 'MYWLAN 1' has security, and secrets exist. No new secrets needed.
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Config: added 'ssid' value 'MYWLAN'
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Config: added 'scan_ssid' value '1'
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Config: added 'auth_alg' value 'OPEN'
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Config: added 'psk' value '<omitted>'
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) complete.
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> Config: set interface ap_scan to 1
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: inactive -> scanning
Jun 15 18:56:53 myhostname wpa_supplicant[4806]: wlan1: SME: Trying to authenticate with bc:05:43:ae:b5:a3 (SSID='MYWLAN' freq=2457 MHz)
Jun 15 18:56:53 myhostname kernel: [ 2585.601177] wlan1: authenticate with bc:05:43:ae:b5:a3
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: scanning -> authenticating
Jun 15 18:56:53 myhostname kernel: [ 2585.629238] wlan1: send auth to bc:05:43:ae:b5:a3 (try 1/3)
Jun 15 18:56:53 myhostname wpa_supplicant[4806]: wlan1: Trying to associate with bc:05:43:ae:b5:a3 (SSID='MYWLAN' freq=2457 MHz)
Jun 15 18:56:53 myhostname kernel: [ 2585.656227] wlan1: authenticated
Jun 15 18:56:53 myhostname kernel: [ 2585.659521] wlan1: associate with bc:05:43:ae:b5:a3 (try 1/3)
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: authenticating -> associating
Jun 15 18:56:53 myhostname wpa_supplicant[4806]: wlan1: Associated with bc:05:43:ae:b5:a3
Jun 15 18:56:53 myhostname kernel: [ 2585.684481] wlan1: RX AssocResp from bc:05:43:ae:b5:a3 (capab=0x431 status=0 aid=1)
Jun 15 18:56:53 myhostname kernel: [ 2585.684594] wlan1: associated
Jun 15 18:56:53 myhostname kernel: [ 2585.685258] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Jun 15 18:56:53 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: associating -> 4-way handshake
Jun 15 18:56:55 myhostname avahi-daemon[3172]: Joining mDNS multicast group on interface wlan1.IPv6 with address fe80::821f:2ff:fe7c:de7b.
Jun 15 18:56:55 myhostname avahi-daemon[3172]: New relevant interface wlan1.IPv6 for mDNS.
Jun 15 18:56:55 myhostname avahi-daemon[3172]: Registering new address record for fe80::821f:2ff:fe7c:de7b on wlan1.*.
Jun 15 18:56:57 myhostname ntpd[3397]: Listen normally on 6 wlan1 fe80::821f:2ff:fe7c:de7b UDP 123
Jun 15 18:56:57 myhostname ntpd[3397]: peers refreshed
Jun 15 18:57:03 myhostname wpa_supplicant[4806]: wlan1: Authentication with bc:05:43:ae:b5:a3 timed out.
Jun 15 18:57:03 myhostname kernel: [ 2595.690834] wlan1: disassociating from bc:05:43:ae:b5:a3 by local choice (reason=3)
Jun 15 18:57:03 myhostname kernel: [ 2595.706266] cfg80211: Calling CRDA for country: US
Jun 15 18:57:03 myhostname wpa_supplicant[4806]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Jun 15 18:57:03 myhostname kernel: [ 2595.708064] wlan1: deauthenticating from bc:05:43:ae:b5:a3 by local choice (reason=3)
Jun 15 18:57:03 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: 4-way handshake -> disconnected
Jun 15 18:57:04 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: disconnected -> scanning
Jun 15 18:57:05 myhostname wpa_supplicant[4806]: wlan1: SME: Trying to authenticate with bc:05:43:ae:b5:a3 (SSID='MYWLAN' freq=2457 MHz)
Jun 15 18:57:05 myhostname kernel: [ 2597.453075] wlan1: authenticate with bc:05:43:ae:b5:a3
Jun 15 18:57:05 myhostname kernel: [ 2597.481398] wlan1: send auth to bc:05:43:ae:b5:a3 (try 1/3)
Jun 15 18:57:05 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: scanning -> authenticating
Jun 15 18:57:05 myhostname wpa_supplicant[4806]: wlan1: Trying to associate with bc:05:43:ae:b5:a3 (SSID='MYWLAN' freq=2457 MHz)
Jun 15 18:57:05 myhostname kernel: [ 2597.553088] wlan1: authenticated
Jun 15 18:57:05 myhostname kernel: [ 2597.555891] wlan1: associate with bc:05:43:ae:b5:a3 (try 1/3)
Jun 15 18:57:05 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: authenticating -> associating
Jun 15 18:57:05 myhostname wpa_supplicant[4806]: wlan1: Associated with bc:05:43:ae:b5:a3
Jun 15 18:57:05 myhostname kernel: [ 2597.635637] wlan1: RX AssocResp from bc:05:43:ae:b5:a3 (capab=0x431 status=0 aid=1)
Jun 15 18:57:05 myhostname kernel: [ 2597.635748] wlan1: associated
Jun 15 18:57:05 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: associating -> 4-way handshake
Jun 15 18:57:15 myhostname wpa_supplicant[4806]: wlan1: Authentication with bc:05:43:ae:b5:a3 timed out.
Jun 15 18:57:15 myhostname kernel: [ 2607.640170] wlan1: disassociating from bc:05:43:ae:b5:a3 by local choice (reason=3)
Jun 15 18:57:15 myhostname kernel: [ 2607.654449] cfg80211: Calling CRDA to update world regulatory domain
Jun 15 18:57:15 myhostname wpa_supplicant[4806]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Jun 15 18:57:15 myhostname kernel: [ 2607.656985] wlan1: deauthenticating from bc:05:43:ae:b5:a3 by local choice (reason=3)
Jun 15 18:57:15 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: 4-way handshake -> disconnected
Jun 15 18:57:16 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: disconnected -> scanning
Jun 15 18:57:17 myhostname wpa_supplicant[4806]: wlan1: SME: Trying to authenticate with bc:05:43:ae:b5:a3 (SSID='MYWLAN' freq=2457 MHz)
Jun 15 18:57:17 myhostname kernel: [ 2609.409429] wlan1: authenticate with bc:05:43:ae:b5:a3
Jun 15 18:57:17 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: scanning -> authenticating
Jun 15 18:57:17 myhostname kernel: [ 2609.437185] wlan1: send auth to bc:05:43:ae:b5:a3 (try 1/3)
Jun 15 18:57:17 myhostname wpa_supplicant[4806]: wlan1: Trying to associate with bc:05:43:ae:b5:a3 (SSID='MYWLAN' freq=2457 MHz)
Jun 15 18:57:17 myhostname kernel: [ 2609.460052] wlan1: authenticated
Jun 15 18:57:17 myhostname kernel: [ 2609.463842] wlan1: associate with bc:05:43:ae:b5:a3 (try 1/3)
Jun 15 18:57:17 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: authenticating -> associating
Jun 15 18:57:17 myhostname wpa_supplicant[4806]: wlan1: Associated with bc:05:43:ae:b5:a3
Jun 15 18:57:17 myhostname kernel: [ 2609.545170] wlan1: RX AssocResp from bc:05:43:ae:b5:a3 (capab=0x431 status=0 aid=1)
Jun 15 18:57:17 myhostname kernel: [ 2609.545313] wlan1: associated
Jun 15 18:57:17 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: associating -> 4-way handshake
Jun 15 18:57:18 myhostname kernel: [ 2610.122545] wlan1: deauthenticating from bc:05:43:ae:b5:a3 by local choice (reason=3)
Jun 15 18:57:18 myhostname NetworkManager[3002]: <warn> Activation (wlan1/wireless): association took too long.
Jun 15 18:57:18 myhostname NetworkManager[3002]: <info> (wlan1): device state change: config -> need-auth (reason 'none') [50 60 0]
Jun 15 18:57:18 myhostname NetworkManager[3002]: <warn> Activation (wlan1/wireless): asking for new secrets
Jun 15 18:57:18 myhostname kernel: [ 2610.137204] cfg80211: Calling CRDA to update world regulatory domain
Jun 15 18:57:18 myhostname wpa_supplicant[4806]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Jun 15 18:57:18 myhostname NetworkManager[3002]: <info> (wlan1): supplicant interface state: 4-way handshake -> disconnected
Jun 15 18:57:18 myhostname NetworkManager[3002]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Jun 15 18:57:18 myhostname dbus[2950]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Jun 15 18:57:18 myhostname dbus[2950]: [system] Successfully activated service 'org.freedesktop.UDisks'
Jun 15 18:57:25 myhostname NetworkManager[3002]: <warn> No agents were available for this request.
Jun 15 18:57:25 myhostname NetworkManager[3002]: <info> (wlan1): device state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
Jun 15 18:57:25 myhostname NetworkManager[3002]: <warn> Activation (wlan1) failed for access point (MYWLAN)
Jun 15 18:57:25 myhostname NetworkManager[3002]: <info> Marking connection 'MYWLAN 1' invalid.
Jun 15 18:57:25 myhostname NetworkManager[3002]: <warn> Activation (wlan1) failed.
Jun 15 18:57:25 myhostname NetworkManager[3002]: <info> (wlan1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Jun 15 18:57:25 myhostname NetworkManager[3002]: <info> (wlan1): deactivating device (reason 'none') [0]
Jun 15 18:57:47 myhostname kernel: [ 2639.310805] usb 2-3: USB disconnect, device number 5
Jun 15 18:57:47 myhostname kernel: [ 2639.332649] rtlwifi: reg 0x102, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x0
Jun 15 18:57:47 myhostname kernel: [ 2639.341027] rtlwifi: reg 0x422, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x4d5
Jun 15 18:57:47 myhostname kernel: [ 2639.349204] rtlwifi: reg 0x542, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x3903f2a
Jun 15 18:57:47 myhostname kernel: [ 2639.357666] rtlwifi: reg 0x608, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x3f3f3f3f
Jun 15 18:57:47 myhostname avahi-daemon[3172]: Interface wlan1.IPv6 no longer relevant for mDNS.
Jun 15 18:57:47 myhostname avahi-daemon[3172]: Leaving mDNS multicast group on interface wlan1.IPv6 with address fe80::821f:2ff:fe7c:de7b.
Jun 15 18:57:47 myhostname avahi-daemon[3172]: Withdrawing address record for fe80::821f:2ff:fe7c:de7b on wlan1.
Jun 15 18:57:47 myhostname avahi-daemon[3172]: Withdrawing workstation service for wlan1.
Jun 15 18:57:47 myhostname NetworkManager[3002]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:12.2/usb2/2-3/2-3:1.0/net/wlan1, iface: wlan1)
Jun 15 18:57:47 myhostname NetworkManager[3002]: <info> (wlan1): now unmanaged
Jun 15 18:57:47 myhostname NetworkManager[3002]: <info> (wlan1): device state change: disconnected -> unmanaged (reason 'removed') [30 10 36]
Jun 15 18:57:47 myhostname NetworkManager[3002]: <info> (wlan1): cleaning up...
Jun 15 18:57:47 myhostname NetworkManager[3002]: <warn> (4) failed to find interface name for index
Jun 15 18:57:47 myhostname NetworkManager[3002]: (nm-system.c:685):nm_system_iface_get_flags: runtime check failed: (iface != NULL)
Jun 15 18:57:47 myhostname NetworkManager[3002]: <error> [1371315467.634015] [nm-system.c:687] nm_system_iface_get_flags(): (unknown): failed to get interface link object
Jun 15 18:57:47 myhostname NetworkManager[3002]: <info> radio killswitch /sys/devices/pci0000:00/0000:00:12.2/usb2/2-3/2-3:1.0/ieee80211/phy1/rfkill1 disappeared
Jun 15 18:57:47 myhostname wpa_supplicant[4806]: Could not read interface wlan1 flags: No such device
Jun 15 18:57:48 myhostname ntpd[3397]: Deleting interface #6 wlan1, fe80::821f:2ff:fe7c:de7b#123, interface stats: received=0, sent=0, dropped=0, active_time=51 secs
[…]


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2013-06-19 22:38:23

by Paul Menzel

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

Am Samstag, den 15.06.2013, 16:08 -0500 schrieb Larry Finger:
> On 06/15/2013 02:57 PM, Paul Menzel wrote:

> > hopefully I am contacting the correct list. I am not able to use the
> > Realtek RTL8188CUS based USB WLAN device Edimax EW-7811Un.
> >
> > Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
> >
> > The device did not work with Debian Wheezy with Linux 3.2.x, Debian
> > Sid/unstable with Linux 3.9.x, Ubuntu 12.04 with Linux 3.2.12 to 3.5 and
> > Ubuntu 13.04 with Linux 3.8. The person, from whom the device is from,
> > claims the device once worked with Ubuntu, but I do not know which
> > version and what WLAN type(?) this was with.
> >
> > The behavior is always the same. The device is detected and the
> > NetworkManager applet `nm-applet` is also able to detect the available
> > networks. But wanting to connect to one and entering the correct
> > password, the connection cannot be established and I am asked for the
> > password again. I tested this with different systems and different
> > networks and also with wpa_supplicant. A Ralink based WLAN USB device
> > works just fine.
> >
> > The Realtek RTL8188CUS WLAN device works also fine under Microsoft
> > Windows, so the device is functional.
>
> Use a compat-wireless package from 3.10-rc1 or later. If that fails, then I will
> give you a debug sequence to run.

I just built Linux 3.10-rc6+ (containing the patch you attached in your
other reply)

$ git describe
v3.10-rc6-84-gc069114

and it still fails. Though with a different error message.

kernel: [ 174.729668] rtlwifi:rtl_watchdog_wq_callback():<0-0> AP off, try to reconnect now
kernel: [ 174.729753] wlan1: Connection to AP yy:yy:yy:yy:yy:yy lost
wpa_supplicant[5247]: wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wpa_supplicant[5247]: wlan1: CTRL-EVENT-DISCONNECTED bssid=yy:yy:yy:yy:yy:yy reason=4

I am pretty sure I am using a WPA2 WLAN. The NetworkManager developer
Dan Williams confirmed that [1].

Please find the parts from `/var/log/syslog` attached.

It also contains a backtrace, which I reported a bug about already
somewhere. (I’ll get the reference later.)

[ 168.601781] ------------[ cut here ]------------
[ 168.601805] WARNING: at kernel/workqueue.c:1365 __queue_work+0x177/0x1d1()
[ 168.601809] Modules linked in: arc4 rtl8192cu rtlwifi mac80211 cfg80211 rtl8192c_common ip6table_filter ip6_tables iptable_filter ip_tables x_tables binfmt_misc reiserfs xfs crc32c libcrc32c w83627ehf hwmon_vid loop firewire_sbp2 firewire_core crc_itu_t fuse radeon snd_hda_codec_realtek snd_hda_intel snd_hda_codec backlight snd_hwdep drm_kms_helper snd_pcm snd_page_alloc ttm snd_seq_midi snd_seq_midi_event snd_rawmidi drm snd_seq snd_seq_device snd_timer kvm_amd kvm snd i2c_algo_bit soundcore psmouse processor button serio_raw evdev ext3 mbcache jbd sha256_generic cbc dm_crypt dm_mod raid1 md_mod usbhid sd_mod crc_t10dif r8169 mii fan thermal thermal_sys ahci libahci libata scsi_mod sp5100_tco
[ 168.601896] CPU: 1 PID: 39 Comm: kworker/1:2 Not tainted 3.10.0-rc6+ #103
[ 168.601900] Hardware name: ASROCK E350M1, BIOS 4.0-4334-geca6d02 06/19/2013
[ 168.601912] Workqueue: rtl92c_usb rtl_watchdog_wq_callback [rtlwifi]
[ 168.601916] f66e17b8 c1023f9b c10364f3 f66e6f00 f4032840 f2c51084 00000001 c1023fbb
[ 168.601925] 00000009 00000000 c10364f3 f66d8f80 00000008 00000297 f2c51084 00000008
[ 168.601933] f2c50e00 c1036585 f4032840 f2c50d80 00000000 00000000 f8429287 00000000
[ 168.601942] Call Trace:
[ 168.601952] [<c1023f9b>] ? warn_slowpath_common+0x4d/0x60
[ 168.601958] [<c10364f3>] ? __queue_work+0x177/0x1d1
[ 168.601964] [<c1023fbb>] ? warn_slowpath_null+0xd/0x10
[ 168.601969] [<c10364f3>] ? __queue_work+0x177/0x1d1
[ 168.601975] [<c1036585>] ? queue_work_on+0x2b/0x36
[ 168.601984] [<f8429287>] ? rtl_watchdog_wq_callback+0x1d9/0x37f [rtlwifi]
[ 168.601992] [<c1042a00>] ? finish_task_switch+0x37/0x89
[ 168.601998] [<c12fe282>] ? __schedule+0x441/0x4c7
[ 168.602004] [<c1037459>] ? process_one_work+0x14c/0x230
[ 168.602010] [<c1037871>] ? worker_thread+0x107/0x1bd
[ 168.602015] [<c103776a>] ? rescuer_thread+0x210/0x210
[ 168.602021] [<c103b099>] ? kthread+0x68/0x6d
[ 168.602027] [<c1302f37>] ? ret_from_kernel_thread+0x1b/0x28
[ 168.602032] [<c103b031>] ? __kthread_parkme+0x50/0x50
[ 168.602036] ---[ end trace 40aa884081d482ce ]---


Thanks,

Paul


[1] https://mail.gnome.org/archives/networkmanager-list/2013-June/msg00112.html


Attachments:
20130620--edimax-rtl8192cu.syslog (112.91 kB)
signature.asc (198.00 B)
This is a digitally signed message part
Download all attachments

2013-06-18 07:54:51

by Paul Menzel

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

Am Montag, den 17.06.2013, 17:19 -0500 schrieb Larry Finger:
> On 06/17/2013 04:38 PM, Paul Menzel wrote:
> > What am I doing wrong?
>
> Did you do the 'sudo make install' step? If not, you are going to be mixing
> modules from the original kernel and those from backports.

No, I did not run that, hoping to avoid getting non-packaged stuff
installed. Sorry, for leaving that out.

> I just built that version of backports and installed it. Unfortunately, the
> patches you need are not in that version as they have just been incorporated in
> 3.10-rc6.

Good to know. Thanks.

> They will be propagated to stable in the next few weeks, but they are
> not there yet. To fix that, copy the attached patch to the backports directory
> and run the command
>
> patch -p1 < patch_5b8df24e22e0
>
> and remake the drivers.

I am going to try that.

Three more questions regarding this patch.

1. Could you add `CC: [email protected]` to the patch so it gets
backported to the stable Linux kernel releases.

2. Does this fix a regression or did it never work with WEP/WPA(1)
networks before?

3. If wpa_supplicant only prints WPA to `/var/log/syslog`, can I be sure
this is *no* WPA2 network? Because I always thought this is a WPA2
network.


Thanks,

Paul


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2013-06-17 22:20:00

by Larry Finger

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

On 06/17/2013 04:38 PM, Paul Menzel wrote:
> What am I doing wrong?

Did you do the 'sudo make install' step? If not, you are going to be mixing
modules from the original kernel and those from backports.

I just built that version of backports and installed it. Unfortunately, the
patches you need are not in that version as they have just been incorporated in
3.10-rc6. They will be propagated to stable in the next few weeks, but they are
not there yet. To fix that, copy the attached patch to the backports directory
and run the command

patch -p1 < patch_5b8df24e22e0

and remake the drivers.

Larry



Attachments:
patch_5b8df24e22e0 (13.87 kB)

2013-06-17 21:39:41

by Paul Menzel

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

Am Samstag, den 15.06.2013, 16:08 -0500 schrieb Larry Finger:
> On 06/15/2013 02:57 PM, Paul Menzel wrote:

> > hopefully I am contacting the correct list. I am not able to use the
> > Realtek RTL8188CUS based USB WLAN device Edimax EW-7811Un.
> >
> > Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
> >
> > The device did not work with Debian Wheezy with Linux 3.2.x, Debian
> > Sid/unstable with Linux 3.9.x, Ubuntu 12.04 with Linux 3.2.12 to 3.5 and
> > Ubuntu 13.04 with Linux 3.8. The person, from whom the device is from,
> > claims the device once worked with Ubuntu, but I do not know which
> > version and what WLAN type(?) this was with.
> >
> > The behavior is always the same. The device is detected and the
> > NetworkManager applet `nm-applet` is also able to detect the available
> > networks. But wanting to connect to one and entering the correct
> > password, the connection cannot be established and I am asked for the
> > password again. I tested this with different systems and different
> > networks and also with wpa_supplicant. A Ralink based WLAN USB device
> > works just fine.
> >
> > The Realtek RTL8188CUS WLAN device works also fine under Microsoft
> > Windows, so the device is functional.
>
> Use a compat-wireless package from 3.10-rc1 or later.

I only found 3.10-rc1 [1].

Unfortunately I was not able to load the modules. With the help from
#linux-wireless I did `make menuconfig` and then `make`.

$ find net -name *ko
net/mac80211/mac80211.ko
net/wireless/cfg80211.ko
$ find -name rtl*ko
./drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
./drivers/net/wireless/rtlwifi/rtlwifi.ko
./drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
$ sudo insmod -f net/mac80211/mac80211.ko
Error: could not insert module net/mac80211/mac80211.ko: Unknown symbol in module
$ file net/mac80211/mac80211.ko
net/mac80211/mac80211.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), BuildID[sha1]=c3fcda409c09dcd98997f7a0a43a7eb8401b83cb, not stripped
$ more /var/log/syslog
[…]
Jun 17 23:26:18 myhostname kernel: [ 6853.383013] mac80211: Unknown symbol cfg80211_send_assoc_timeout (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383049] mac80211: Unknown symbol cfg80211_sched_scan_results (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383099] mac80211: Unknown symbol cfg80211_rx_unexpected_4addr_frame (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383186] mac80211: Unknown symbol cfg80211_scan_done (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383220] mac80211: Unknown symbol cfg80211_sched_scan_stopped (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383272] mac80211: Unknown symbol cfg80211_send_auth_timeout (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383307] mac80211: Unknown symbol cfg80211_remain_on_channel_expired (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383340] mac80211: Unknown symbol cfg80211_cac_event (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383395] mac80211: Unknown symbol ieee80211_amsdu_to_8023s (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383423] mac80211: Unknown symbol cfg80211_send_deauth (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383460] mac80211: Unknown symbol cfg80211_ref_bss (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383531] mac80211: Unknown symbol __cfg80211_send_deauth (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383574] mac80211: Unknown symbol cfg80211_chandef_valid (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383601] mac80211: Unknown symbol cfg80211_new_sta (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383639] mac80211: Unknown symbol cfg80211_send_unprot_deauth (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383686] mac80211: Unknown symbol cfg80211_calculate_bitrate (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383738] mac80211: Unknown symbol cfg80211_ready_on_channel (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383773] mac80211: Unknown symbol cfg80211_classify8021d (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383811] mac80211: Unknown symbol cfg80211_send_unprot_disassoc (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383843] mac80211: Unknown symbol wiphy_register (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383874] mac80211: Unknown symbol wiphy_new (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383905] mac80211: Unknown symbol cfg80211_put_bss (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383945] mac80211: Unknown symbol cfg80211_gtk_rekey_notify (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.383991] mac80211: Unknown symbol ieee80211_bss_get_ie (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384034] mac80211: Unknown symbol cfg80211_rx_spurious_frame (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384061] mac80211: Unknown symbol cfg80211_ibss_joined (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384090] mac80211: Unknown symbol __cfg80211_send_disassoc (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384118] mac80211: Unknown symbol cfg80211_chandef_compatible (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384155] mac80211: Unknown symbol cfg80211_report_obss_beacon (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384196] mac80211: Unknown symbol cfg80211_michael_mic_failure (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384223] mac80211: Unknown symbol cfg80211_cqm_pktloss_notify (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384254] mac80211: Unknown symbol cfg80211_send_rx_auth (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384295] mac80211: Unknown symbol ieee80211_operating_class_to_band (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384442] mac80211: Unknown symbol wiphy_unregister (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384493] mac80211: Unknown symbol cfg80211_send_disassoc (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384532] mac80211: Unknown symbol ieee80211_radiotap_iterator_init (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384574] mac80211: Unknown symbol cfg80211_get_bss (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384609] mac80211: Unknown symbol __ieee80211_get_channel (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384648] mac80211: Unknown symbol cfg80211_chandef_usable (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384682] mac80211: Unknown symbol rfc1042_header (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384724] mac80211: Unknown symbol cfg80211_mgmt_tx_status (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384757] mac80211: Unknown symbol cfg80211_check_station_change (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384792] mac80211: Unknown symbol cfg80211_reg_can_beacon (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384834] mac80211: Unknown symbol cfg80211_find_ie (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384865] mac80211: Unknown symbol cfg80211_unregister_wdev (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384892] mac80211: Unknown symbol cfg80211_del_sta (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384920] mac80211: Unknown symbol cfg80211_probe_status (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384949] mac80211: Unknown symbol ieee80211_data_to_8023 (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.384976] mac80211: Unknown symbol cfg80211_send_rx_assoc (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385003] mac80211: Unknown symbol ieee80211_radiotap_iterator_next (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385041] mac80211: Unknown symbol ieee80211_channel_to_frequency (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385069] mac80211: Unknown symbol cfg80211_rx_mgmt (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385117] mac80211: Unknown symbol ieee80211_hdrlen (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385153] mac80211: Unknown symbol cfg80211_chandef_create (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385181] mac80211: Unknown symbol cfg80211_report_wowlan_wakeup (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385210] mac80211: Unknown symbol cfg80211_inform_bss_frame (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385245] mac80211: Unknown symbol cfg80211_get_p2p_attr (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385277] mac80211: Unknown symbol ieee80211_frequency_to_channel (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385313] mac80211: Unknown symbol cfg80211_radar_event (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385341] mac80211: Unknown symbol bridge_tunnel_header (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385375] mac80211: Unknown symbol backport_dependency_symbol (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385402] mac80211: Unknown symbol cfg80211_unlink_bss (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385430] mac80211: Unknown symbol wiphy_free (err 0)
Jun 17 23:26:18 myhostname kernel: [ 6853.385462] mac80211: Unknown symbol cfg80211_cqm_rssi_notify (err 0)

What am I doing wrong?

> If that fails, then I will give you a debug sequence to run.


Thanks,

Paul


[1] https://www.kernel.org/pub/linux/kernel/projects/backports/stable/


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2013-06-18 15:26:35

by Larry Finger

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

On 06/18/2013 02:54 AM, Paul Menzel wrote:
> Three more questions regarding this patch.
>
> 1. Could you add `CC: [email protected]` to the patch so it gets
> backported to the stable Linux kernel releases.

I thought I had done that. In fact, the patch was Cc'd to stable, but I missed
the entry in the commit message. I have written to Stable to see what caqn be done.

> 2. Does this fix a regression or did it never work with WEP/WPA(1)
> networks before?

It does fix a regression, but I have no idea when it happened.

> 3. If wpa_supplicant only prints WPA to `/var/log/syslog`, can I be sure
> this is *no* WPA2 network? Because I always thought this is a WPA2
> network.

The data in an "iwlist scan" will state the version of WPA in use. If it is
WPA2, you get a line with

IE: IEEE 802.11i/WPA2 Version 1

For WPA1, it is

IE: WPA Version 1

Larry




2013-06-17 22:03:58

by Paul Menzel

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

Am Samstag, den 15.06.2013, 16:08 -0500 schrieb Larry Finger:
> On 06/15/2013 02:57 PM, Paul Menzel wrote:

> > hopefully I am contacting the correct list. I am not able to use the
> > Realtek RTL8188CUS based USB WLAN device Edimax EW-7811Un.
> >
> > Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
> >
> > The device did not work with Debian Wheezy with Linux 3.2.x, Debian
> > Sid/unstable with Linux 3.9.x, Ubuntu 12.04 with Linux 3.2.12 to 3.5 and
> > Ubuntu 13.04 with Linux 3.8. The person, from whom the device is from,
> > claims the device once worked with Ubuntu, but I do not know which
> > version and what WLAN type(?) this was with.
> >
> > The behavior is always the same. The device is detected and the
> > NetworkManager applet `nm-applet` is also able to detect the available
> > networks. But wanting to connect to one and entering the correct
> > password, the connection cannot be established and I am asked for the
> > password again. I tested this with different systems and different
> > networks and also with wpa_supplicant. A Ralink based WLAN USB device
> > works just fine.
> >
> > The Realtek RTL8188CUS WLAN device works also fine under Microsoft
> > Windows, so the device is functional.
>
> Use a compat-wireless package from 3.10-rc1 or later. If that fails, then I will
> give you a debug sequence to run.

I resorted to installing Linux 3.10-rc5 from Debian experimental [1].

$ uname -a
Linux myhostname 3.10-rc5-686-pae #1 SMP Debian 3.10~rc5-1~exp1 (2013-06-11) i686 GNU/Linux

The error is still there.


Thanks,

Paul


[1] http://ftp.de.debian.org/debian/pool/main/l/linux/linux-image-3.10-rc5-686-pae_3.10~rc5-1~exp1_i386.deb


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2013-06-15 21:08:14

by Larry Finger

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

On 06/15/2013 02:57 PM, Paul Menzel wrote:
> Dear Linux wireless folks,
>
>
> hopefully I am contacting the correct list. I am not able to use the
> Realtek RTL8188CUS based USB WLAN device Edimax EW-7811Un.
>
> Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
>
> The device did not work with Debian Wheezy with Linux 3.2.x, Debian
> Sid/unstable with Linux 3.9.x, Ubuntu 12.04 with Linux 3.2.12 to 3.5 and
> Ubuntu 13.04 with Linux 3.8. The person, from whom the device is from,
> claims the device once worked with Ubuntu, but I do not know which
> version and what WLAN type(?) this was with.
>
> The behavior is always the same. The device is detected and the
> NetworkManager applet `nm-applet` is also able to detect the available
> networks. But wanting to connect to one and entering the correct
> password, the connection cannot be established and I am asked for the
> password again. I tested this with different systems and different
> networks and also with wpa_supplicant. A Ralink based WLAN USB device
> works just fine.
>
> The Realtek RTL8188CUS WLAN device works also fine under Microsoft
> Windows, so the device is functional.

Use a compat-wireless package from 3.10-rc1 or later. If that fails, then I will
give you a debug sequence to run.

Larry



2013-07-19 09:48:32

by Paul Menzel

[permalink] [raw]
Subject: Re: Connection not established with Realtek RTL8188CUS based USB device (EDIMAX)

Am Donnerstag, den 20.06.2013, 00:36 +0200 schrieb Paul Menzel:
> Am Samstag, den 15.06.2013, 16:08 -0500 schrieb Larry Finger:
> > On 06/15/2013 02:57 PM, Paul Menzel wrote:
>
> > > hopefully I am contacting the correct list. I am not able to use the
> > > Realtek RTL8188CUS based USB WLAN device Edimax EW-7811Un.
> > >
> > > Bus 002 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
> > >
> > > The device did not work with Debian Wheezy with Linux 3.2.x, Debian
> > > Sid/unstable with Linux 3.9.x, Ubuntu 12.04 with Linux 3.2.12 to 3.5 and
> > > Ubuntu 13.04 with Linux 3.8. The person, from whom the device is from,
> > > claims the device once worked with Ubuntu, but I do not know which
> > > version and what WLAN type(?) this was with.
> > >
> > > The behavior is always the same. The device is detected and the
> > > NetworkManager applet `nm-applet` is also able to detect the available
> > > networks. But wanting to connect to one and entering the correct
> > > password, the connection cannot be established and I am asked for the
> > > password again. I tested this with different systems and different
> > > networks and also with wpa_supplicant. A Ralink based WLAN USB device
> > > works just fine.
> > >
> > > The Realtek RTL8188CUS WLAN device works also fine under Microsoft
> > > Windows, so the device is functional.
> >
> > Use a compat-wireless package from 3.10-rc1 or later. If that fails, then I will
> > give you a debug sequence to run.
>
> I just built Linux 3.10-rc6+ (containing the patch you attached in your
> other reply)
>
> $ git describe
> v3.10-rc6-84-gc069114
>
> and it still fails. Though with a different error message.
>
> kernel: [ 174.729668] rtlwifi:rtl_watchdog_wq_callback():<0-0> AP off, try to reconnect now
> kernel: [ 174.729753] wlan1: Connection to AP yy:yy:yy:yy:yy:yy lost
> wpa_supplicant[5247]: wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
> wpa_supplicant[5247]: wlan1: CTRL-EVENT-DISCONNECTED bssid=yy:yy:yy:yy:yy:yy reason=4
>
> I am pretty sure I am using a WPA2 WLAN. The NetworkManager developer
> Dan Williams confirmed that [1].
>
> Please find the parts from `/var/log/syslog` attached.
>
> It also contains a backtrace, which I reported a bug about already
> somewhere. (I’ll get the reference later.)
>
> [ 168.601781] ------------[ cut here ]------------
> [ 168.601805] WARNING: at kernel/workqueue.c:1365 __queue_work+0x177/0x1d1()
> [ 168.601809] Modules linked in: arc4 rtl8192cu rtlwifi mac80211 cfg80211 rtl8192c_common ip6table_filter ip6_tables iptable_filter ip_tables x_tables binfmt_misc reiserfs xfs crc32c libcrc32c w83627ehf hwmon_vid loop firewire_sbp2 firewire_core crc_itu_t fuse radeon snd_hda_codec_realtek snd_hda_intel snd_hda_codec backlight snd_hwdep drm_kms_helper snd_pcm snd_page_alloc ttm snd_seq_midi snd_seq_midi_event snd_rawmidi drm snd_seq snd_seq_device snd_timer kvm_amd kvm snd i2c_algo_bit soundcore psmouse processor button serio_raw evdev ext3 mbcache jbd sha256_generic cbc dm_crypt dm_mod raid1 md_mod usbhid sd_mod crc_t10dif r8169 mii fan thermal thermal_sys ahci libahci libata scsi_mod sp5100_tco
> [ 168.601896] CPU: 1 PID: 39 Comm: kworker/1:2 Not tainted 3.10.0-rc6+ #103
> [ 168.601900] Hardware name: ASROCK E350M1, BIOS 4.0-4334-geca6d02 06/19/2013
> [ 168.601912] Workqueue: rtl92c_usb rtl_watchdog_wq_callback [rtlwifi]
> [ 168.601916] f66e17b8 c1023f9b c10364f3 f66e6f00 f4032840 f2c51084 00000001 c1023fbb
> [ 168.601925] 00000009 00000000 c10364f3 f66d8f80 00000008 00000297 f2c51084 00000008
> [ 168.601933] f2c50e00 c1036585 f4032840 f2c50d80 00000000 00000000 f8429287 00000000
> [ 168.601942] Call Trace:
> [ 168.601952] [<c1023f9b>] ? warn_slowpath_common+0x4d/0x60
> [ 168.601958] [<c10364f3>] ? __queue_work+0x177/0x1d1
> [ 168.601964] [<c1023fbb>] ? warn_slowpath_null+0xd/0x10
> [ 168.601969] [<c10364f3>] ? __queue_work+0x177/0x1d1
> [ 168.601975] [<c1036585>] ? queue_work_on+0x2b/0x36
> [ 168.601984] [<f8429287>] ? rtl_watchdog_wq_callback+0x1d9/0x37f [rtlwifi]
> [ 168.601992] [<c1042a00>] ? finish_task_switch+0x37/0x89
> [ 168.601998] [<c12fe282>] ? __schedule+0x441/0x4c7
> [ 168.602004] [<c1037459>] ? process_one_work+0x14c/0x230
> [ 168.602010] [<c1037871>] ? worker_thread+0x107/0x1bd
> [ 168.602015] [<c103776a>] ? rescuer_thread+0x210/0x210
> [ 168.602021] [<c103b099>] ? kthread+0x68/0x6d
> [ 168.602027] [<c1302f37>] ? ret_from_kernel_thread+0x1b/0x28
> [ 168.602032] [<c103b031>] ? __kthread_parkme+0x50/0x50
> [ 168.602036] ---[ end trace 40aa884081d482ce ]---

the device still does not work with Linux 3.10. Larry, could you please
give me the instructions how to debug this? That would be great.


Thanks,

Paul


> [1] https://mail.gnome.org/archives/networkmanager-list/2013-June/msg00112.html


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part