Open jllocutus opened 11 years ago
Funny: I can connect to a corporate WPA2 network, but the connection seems to flake a bit every minute or so. Network traffic stops for around 10 seconds or so before it resumes.
Maybe these issues are related?
Edit: I am on Ubuntu 12.10, 64-bit
Is that corporate network WPA2 Enterprise, or is it WPA2-PSK?
As you probably know, I have no access to any RTL8723AU devices. As a result, I will need detailed diagnostics before I would be able to make any fixes. Any info found in the output of the dmesg command would be a start.
Another driver that is derived from the same general code base is for the RTL8192DU. It connects with WPA2-PSK, and stays connected for hours.
@yzhernand : maybe, what kind of encryption you are using 802.1? with TLIP or AES or? @lwfinger: we use WPA2 with AES128 and RADIUS Authentification. Which detailed diagnostics data do you need and how could I get them? On connection try, no message was written to /var/log/dmesg on Ubuntu 13.04. in the /var/log/syslog I found: NetworkManager ... 4-way handshake complete IW_SCAN_THIS_ESSID, ssid=..., len=7 wlan0: Association request to the driver failed Where can I find the driver of the RTL8192DU?
@lwfinger For me, Network Manager sees it as "WPA2 Enterprise".
@jllocutus I'm using PEAP with MSCHAPv2 for inner authentication. I've got the output for my log and it looks like a different problem than yours. I can open a new bug report to avoid hijacking this one.
@jllocutus The RTL8192DU driver is at http://github.com/lwfinger/rtl8192du.git.. There are two of us active in development of that driver. Whatever changes and/or bug fixes that are applicable to the 8723 are made to that driver as well.
I have not set up a RADIUS server and all testing on similar drivers is with WPA2-PSK. That does test the encryption code; however, the handshaking is certainly different.
Do we have the chance to make the driver work with enterprise WPA2? which information do you need from which log files/commands?
with colleagues from WLAN we found, that the authentication gives always an error. Username and password are correct, so that I assume that the device driver does not support the AES encryption of the users password. If I tail -f the /var/log/syslog on ubuntu 13.04 there are many "kernel: [..] RTL8723AU...-messages
You need to post those "many" messages somewhere in a pastebin. In addition, I would change the startup so that both NetworkManager and wpa-supplicant run with maximum debugging and also post those logs.
I just got a new version of the driver from Realtek, and I am currently applying the differences to the one at GitHub. I have no idea if that will make a difference.
is the new version already available for download? How should I chnage the debugging for NetworkManager and wpa-supplicant?
Just a heads up that I'm using WPA2 enterprise with PEAP and MSCHAPV2 here at work. Connected just fine. I have no root CA setup for this connection if that makes any sort of difference. Let me know if there's more I can provide.
May 22 10:29:48 tomcat kernel: [ 1998.334520] RTL8723AU: rtl8723a_FirmwareDownload accquire FW from embedded image
May 22 10:29:48 tomcat kernel: [ 1998.334524] RTL8723AU: rtl8723a_FirmwareDownload: fw_ver=30 fw_subver=0 sig=0x2302
May 22 10:29:48 tomcat kernel: [ 1998.363494] RTL8723AU: rtl8723a_FirmwareDownload Exit rtw_mfree pFirmware !
May 22 10:29:48 tomcat kernel: [ 1998.363499] RTL8723AU: rtl8723a_FirmwareDownload Exit rtw_mfree pBTFirmware !
May 22 10:29:48 tomcat kernel: [ 1998.363500] RTL8723AU: fw download ok!
May 22 10:29:48 tomcat kernel: [ 1998.363502] RTL8723AU: Set RF Chip ID to RF_6052 and RF type to 1T1R.
May 22 10:29:49 tomcat kernel: [ 1998.694401] RTL8723AU: pdmpriv->TxPowerTrackControl = 1
May 22 10:29:49 tomcat kernel: [ 1998.699018] RTL8723AU: rtl8723au_hal_init in 435ms
May 22 10:29:49 tomcat kernel: [ 1998.699212] RTL8723AU: pHalData->IntrMask = 0x0000
May 22 10:29:49 tomcat kernel: [ 1998.699532] RTL8723AU: <=== rtw_ips_pwr_up.............. in 436ms
May 22 10:29:49 tomcat kernel: [ 1998.699537] RTL8723AU: ERROR nolinked power save leave
May 22 10:29:49 tomcat kernel: [ 1998.699643] RTL8723AU: ==> ips_leave.....LED(0x00e28282)...
May 22 10:29:49 tomcat NetworkManager[594]:
@jllocutus: I got the new driver from Realtek's private web site. It is not publicly available. I am partway through making the changes to the code and will push it when I'm done and it compiles. Changing the debugging level for NM and wpa-supplicant depends on how your distro sets it up.
@tmclaugh: Thanks for the posting. I wonder about all those " ERROR send eapol packet" messages, but at least it did connect.
@lwfinger I uploaded the syslog from ubuntu 13.04 to http://pastebin.com/WPHMhkbf Do you have a tipp for NetworkManager and wpa-supplicant debugging on ubuntu 13.04?
@jllocutus Your system is looking for a local certificate and not finding it. Should one be required? Check with your network people. I am not an Ubuntu user and I cannot advise on your distro.
@lwfinger on other hardware, ubuntu systems work without the certificate, so I assume, that is not the core problem with the Yoga WLAN driver. Do you see more problems in the log? I will check for debugging NetworkManager and wpa-supplican on ubuntu.
@lwfinger I did the step from https://wiki.ubuntu.com/DebuggingNetworkManager to debig nm and wpa-s and found in the log "secret request error: (6) no agents wre available for this request. Does this help anyhow?
I just committed the update to v4.1.6_7336.20130426. The commit message is as follows:
commit 3d016617aff190212aa81db9c594dc3e2d1f5728 Author: Larry Finger Larry.Finger@lwfinger.net Date: Mon May 27 15:24:29 2013 -0500
rtl8723au: Upgrade to driver version v4.1.6_7336.20130426
This update replaces the entire source and should be tested. If it fails,
report it and do a "git checkout 4682dce" to return to the previous
version.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This version may connect to WPA2-ENTERPRISE networks. If it fails to work at all, note the way to return to the previous source.
Larry
@lwfinger unfortunately the new driver does not work in our environment. In the syslog on the ubuntu 12.04 I found: _rtw_join_timeout_handler, fw_state=8 kernel: [ 287.603515] RTL8723AU: ERROR indicate disassoc wpa_supplicant[1003]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 rtl8723a_set_FwJoinBssReport_cmd mstatus(0) RTL8723AU: ==>rtw_ps_processor .fw_state(8) RTL8723AU: ==>ips_enter cnts:7 RTL8723AU: ERROR nolinked power save enter RTL8723AU: ===> rtw_ips_pwr_down................... RTL8723AU: ====> rtw_ips_dev_unload... [...] Rtl8723_FwUMCBCutImageArrayWithBT for RTL8723A B CUT RTL8723AU: rtl8723a_FirmwareDownload accquire FW from embedded image RTL8723AU: rtl8723a_FirmwareDownload: fw_ver=33 fw_subver=0 sig=0x2302 RTL8723AU: rtl8723a_FirmwareDownload Exit rtw_mfree pFirmware ! RTL8723AU: rtl8723a_FirmwareDownload Exit rtw_mfree pBTFirmware ! RTL8723AU: fw download ok! RTL8723AU: Set RF Chip ID to RF_6052 and RF type to 1T1R. RTL8723AU: pdmpriv->TxPowerTrackControl = 1 RTL8723AU: rtl8723au_hal_init in 464ms RTL8723AU: pHalData->IntrMask = 0x0000 RTL8723AU: <=== rtw_ips_pwr_up.............. in 464ms RTL8723AU: ERROR nolinked power save leave
Updated to latest commit and no issues connecting to company network using WPA2.
@jllocutus - I have no idea why your system fails. In addition, I have no idea what is different between your case and that of tmclaugh. To me it appears as if both of you are using WPA2 PEAP with MSCHAPV2. Why one works, and the other does not is a question. Perhaps the RADIUS server logs might offer a clue. Could you have your IT department check them after a failed attempt? In the meantime, I will set up a RADIUS server for testing. Of course, I don't have an RTL8723AU, but the driver for RTL8188EU is similar.
@lwfinger I will try to get the information from the network colleagues and come back. A difference to tmclaugh maybe is the AES128 encryption for the RADIUS authentication, but I am not familiar with all these technologies.
@lwfinger it is working now. I traced the problem with someone from network and he only saw the reason "no cert for authentication". So also if my other testsystems didn't need a cert for this WLAN, I tried it with a cert and it works. Thank you for your perfect support!
thanks a lot for the driver. Unfortunately I can not connect with it to an wpa2 encrypted network. AP is seen and authorization worked, but connection is not established (OS: Ubuntu 13.04)