lwfinger / rtl8723au

Repo for RTL8723AU code before Linux Kernel commit
126 stars 46 forks source link

Crashes home network. #34

Open noobermin opened 10 years ago

noobermin commented 10 years ago

I am really at a loss for understanding this, but with the latest commit to the kernel_version branch 60e49d3d426415d45409c3e7f503c21fe599915c I am no longer able to connect to any networks and trying to connect to the wireless router in my home causes the router to disconnect all devices on the network and no other devices can connect to it until I stop trying to connect with my laptop which uses the rtl8723au driver. As before in #25 , I have a yoga 13.

In between "BOGUS urb" tracebacks as discussed in issue #25, this[1] pops up.

EDIT: Even more dmesg output [2]

[1] http://pastebin.com/6xATwxqs [2] http://pastebin.com/DNnTxcSD

lwfinger commented 10 years ago

Please bisect to the particular commit that causes the problem.

noobermin commented 10 years ago

c402874233c7fe634f82a74b525d05f3d4317af1

lwfinger commented 10 years ago

I reverted that patch. Is it OK now?

noobermin commented 10 years ago

Yes. 0cd652cd36fec509349bdaa94b28d9b3f794fe45 is working again as before.

lwfinger commented 10 years ago

Thanks for bisecting and testing. Will try to find the error in that commit.

lwfinger commented 10 years ago

What make/model is your home router and what firmware are you running? In particular, are you running openWRT?

iBigQ commented 10 years ago

I experienced a similar issue. In generell, WPA2 connections work with the kernel_branch version of March 19 (I guess). But my TPLink AccessPoint keeps crashing (until it is restarted). In contrast to the other routers i tested, this one is using TKIP for group key. When trying to connect to this AP, the connections is disconnected immediately. Often wpa_supplicant is throughing a "Michael MIC failure detected". I cannot provide any further logs etc atm, but tell me if I can do anything for you.

Thank you so much for working on this driver!

lwfinger commented 10 years ago

When you have a problem such as this, you must say which branch you are using by noting the * in the 'git branch' command, and the output of the 'git describe --always' command. That way I will know if you are working with a stale copy, etc.

iBigQ commented 10 years ago

I use

uname -r
3.13.6-1-ARCH

git branch
* kernel_version

git describe --always
df08e6c

When I start wpa_supplicant using

wpa_supplicant -i wlp0s26u1u4i2 -c <(wpa_passphrase "Nebukadnezar" "pw") -D wext

ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWFREQ]: Operation not supported
ioctl[SIOCSIWAP]: Operation not permitted
Successfully initialized wpa_supplicant
wlp0s26u1u4i2: Trying to associate with 90:f6:52:48:34:c6 (SSID='Nebukadnezar' freq=2412 MHz)
wlp0s26u1u4i2: Association request to the driver failed
wlp0s26u1u4i2: Associated with 90:f6:52:48:34:c6
wlp0s26u1u4i2: WPA: Key negotiation completed with 90:f6:52:48:34:c6 [PTK=CCMP GTK=TKIP]
wlp0s26u1u4i2: CTRL-EVENT-CONNECTED - Connection to 90:f6:52:48:34:c6 completed [id=0 id_str=]
wlp0s26u1u4i2: Michael MIC failure detected
wlp0s26u1u4i2: WPA: Sending EAPOL-Key Request (error=1 pairwise=0 ptk_set=1 len=99)
wlp0s26u1u4i2: Michael MIC failure detected
wlp0s26u1u4i2: WPA: Sending EAPOL-Key Request (error=1 pairwise=0 ptk_set=1 len=99)
wlp0s26u1u4i2: TKIP countermeasures started
wlp0s26u1u4i2: CTRL-EVENT-DISCONNECTED bssid=90:f6:52:48:34:c6 reason=14 locally_generated=1
wlp0s26u1u4i2: CTRL-EVENT-TERMINATING 

dmesg shows:

[  121.372903] rtl8723au: Loading firmware rtlwifi/rtl8723aufw_B.bin
[  121.374409] RTL8723AU: Firmware Version 33, SubVersion 0, Signature 0x2302
[  121.884792] IPv6: ADDRCONF(NETDEV_UP): wlp0s26u1u4i2: link is not ready
[  123.358187] RTL8723AU: ERROR set ssid [Nebukadnezar] fw_state=0x00000008
[  123.562718] RTL8723AU: ERROR start auth
[  123.565191] RTL8723AU: ERROR auth success, start assoc
[  123.567881] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s26u1u4i2: link becomes ready
[  123.570444] RTL8723AU: ERROR send eapol packet
[  123.574246] UpdateHalRAMask8192CUsb => mac_id:0, networkType:0x03, mask:0x00000fff
         ==> rssi_level:0, rate_bitmap:0x00000ff5
[  123.574407] RTL8723AU: ERROR send eapol packet
[  123.577831] RTL8723AU: ERROR set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) camid:4
[  123.579307] RTL8723AU: ERROR set group key to hw: alg:2(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1
[  123.870444] RTL8723AU: ERROR send eapol packet
[  123.897229] UpdateHalRAMask8192CUsb => mac_id:0, networkType:0x03, mask:0x00000fff
         ==> rssi_level:3, rate_bitmap:0x00000ff5
[  127.862777] RTL8723AU: ERROR send eapol packet
[  127.883807] RTL8723AU: ERROR set ssid [Nebukadnezar] fw_state=0x00000008
[  131.922743] RTL8723AU: ERROR nolinked power save enter
[  134.408553] rtl8723au: Loading firmware rtlwifi/rtl8723aufw_B.bin
[  134.789168] RTL8723AU: ERROR nolinked power save leave
[  136.793575] RTL8723AU: ERROR nolinked power save enter
[  140.443957] rtl8723au: Loading firmware rtlwifi/rtl8723aufw_B.bin
[  140.823833] RTL8723AU: ERROR nolinked power save leave
[  142.825025] RTL8723AU: ERROR nolinked power save enter

Do you want me to update to the newest commit or do you want me to keep this for further tests?

lwfinger commented 10 years ago

The patch that caused this problem was reverted. You should update and the problem should go away.

iBigQ commented 10 years ago

Works very well, thank you