-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running hostapd crashes when WPA2 encryption is used (8723AU module as Access Point) #27
Comments
I do not have much experience with ARM kernels, but the crash dump you supplied does not seem to contain any backtrace to rtl8723au. It probably comes from hostapd. That old version of hostapd is supplied because rtl8723au did not contain the necessary code to accept the cfg80211 commands used by the modern versions of hostapd. In the kernel_version branch of the repo is a new version of rtl8723au that does speak cfg80211 and should work with a new hostapd. That branch of the repo is the code that will be submitted for inclusion in the kernel. Because of that, all the conditional code to handle kernel API changes has been removed. To use it, you will need a 3.13 or 3.14 kernel. I have a question. Is the ARM-based RTL8723AU device commercially available? I have been trying to get a sample device, but so far I only knew about it being in a Lenovo Yoga 13, and that is too expensive for me. |
First of all - thank you for the feedback! :)
Yes, I actually noticed that as well, as I'm seeing iptables errors.
I see. So the current hostapd that I'm using (provided by the supplier) is the "old version" which is compatible to the current rtl8723au (master branch). On the other hand, the "modern version" of hostapd (I'm assuming this is the one available at http://w1.fi/releases/hostapd-x.y.z.tar.gz, correct me if I'm wrong) uses cfg80211 commands NOT supported by rtl8723au (master branch).
Wow. I never noticed that there's a rtl8723au (kernel_version branch)! I will try this new combination (ARM + modern hostapd + rtl8723au kernel_version branch) and give you an update whether I'll encounter problems.
Hmm. I'll get back to you on this. |
BTW, I'm seeing a lot of releases at http://w1.fi/releases/ for modern hostapd. Also, using the new combination (ARM + modern hostapd + rtl8723au kernel_version branch), what is the best suited Bluetooth driver I should use? Thanks! |
The current hostapd code can be found at http://hostap.epitest.fi/releases/hostapd-2.1.tar.gz. The BT driver is separate from the rest. As I have no rtl8723au device, I cannot test. A separate version from Realtek is in the new branch of that repo. |
I see. Sorry, where is this "new branch" of what "repo"?
Okay.
|
Hi Larry - Update on this:
I had no problems cross-compiling my platform in the kernel. Note: I copied the rtl8723aufw_*.bin fw files in my platform's /lib/firmware/rtlwifi. Some results below, via quick tests. [Configuring 8723au as Client]Seems problematic. I can execute "ifconfig wlan0 up", but I have problems trying to connect to AP.
Are there other ways to connect using linux command-line other than the following which both failed:
... that is compatible to my current setup? Note: I can properly do "iw dev wlan0 scan" though. [Configuring 8723au as Access Point (no encryption)]Seems good. Basic testing is OK. [Configuring 8723au as Access Point (has WPA2 encryption)]Seems problematic. I can't connect at all, either using a PC or my phone. Logs and hostapd conf file are in the following links: Please advise. |
Please install the firmware. The device will never work without it!!!! |
Sorry for the confusion. But, in my comment #27 (comment), the firmware is already loaded in my platform (if you meant "install the firmware" as "copy the firmwre somewhere in /lib/ so the driver can load it"):
Firmware is already loaded, but I had problems in WiFi as Client and WiFi as AP with WPA2 encryption (kernel does not crash anymore, but I get authentication problems). BTW, should I open another issue on the Client issue?). Please check. Thank you. |
As I do not have a device, it is impossible for me to help much with the type of issue you have. The conversion to a kernel-ready state is being done by someone at RedHat. AFAIK, he has not tested the device as an AP, but he has been using it as a client with encryption. He is not available at the moment, but when he returns to his office, I'll ask him what encryption methods he has tested. |
I have filed a separate issue #28 on the WiFi in Client mode problem for proper tracking. As for the WiFi as AP with WPA2 encryption mode problem:
I see. So this someone maintains the "kernel_version" branch?
The "encryption methods he has tested" are for the "client with encryption" setup...? Hmm. Not testing the device as an AP seems a bit weird to me... (if I'm correct in understanding that as you said, "That branch (kernel_version) of the repo is the code that will be submitted for inclusion in the kernel."). I'm not really sure but shouldn't all 8723AU modules work as either Client or AP? |
BTW, does these error snippets look familiar to you?
Complete logs at: |
You seem to not be comprehending the statement that "I have no device, and I cannot test anything." If you want an analysis of the problems as an AP, then you need to use a 3rd computer to capture all of the on-the-air traffic. That is the best way to find out what is wrong with communication. Testing as an AP is always the last thing that is tested. If that is important to you, then you will need to do some debugging. |
If I capture details using a 3rd computer and posted pcap files here, can you help me decode it? |
I tried to capture the on-the-air data via a 3rd computer (via pcaputils' pcapdump utility "pcapdump -i wlan0 -w sample.pcap", however - it seems that I can only capture these packets when I am already connected to the platform's AP. Anything I'm missing in my setup...? To compensate with not being able to provide you packets, for now, I tried to debug the RTL8723AU logs when I try to connect to AP with WPA2 encryption. As I see it, this is what happens: (1) My phone tries to connect to AP:
(2) My phone requests for connection/association to AP:
(3) Signal seems to degrade suddenly:
(4) Some null data issuing happened, possibly due to low signal(?):
(5) My phone initiates disconnection from AP (cause: unknown).
Note: Complete AP with WPA2 logs are at: https://gist.github.com/maggieroxas/9322891 Based on above events during trying to connect to a WPA2 encrypted network (tried 3x and the same log patterns occur), the client connecting (in this case, my phone) disconnects itself after receive signal did a sudden degrade after the client initiated association. Given the case that the Client initiates disconnection, I tried to verify if manually disconnecting from the AP indeed has the same logs as above.
Note: Complete AP without encryption logs are at: https://gist.github.com/maggieroxas/9322890 So my questions are:
Thank you very much and sorry for the long comment. |
Unfortunately, neither pcapdump not tcpdump are useful for the kind of logging we want. Both pick the packets off at a relatively high level in the stack. You need a device/driver combo that can go into promiscuous mode, and use either kismet or wireshark to capture the packets as they appear on the air. That is the only way we can see the primitive packets, acks, etc. I have not yet had a chance to look at your log data, but I doubt that they will be of much help. |
hi, Iwfinger. I know a device which uses rtl8723au as wifi device. Please visit: www.taobao.com, and search "radxa". It's a board for developpment. It's only $100. |
I am currently having problems with my wireless device (with its own microprocessor) installed with 8723au module.
I cross-compile the driver (with my device's platform's compiler) using my Ubuntu 12.04 PC as host and across kernel v3.10.24 source codes - NO problems in compilation (make clean && make all),
I copy and install the created 8723au.ko in my device's file system, via "insmod 8723au.ko debug=4" - NO problems in installation.
For 8723au as Client or STA - NO problems in connection (connects fine, signal OK, link quality OK).
For 8723au as Access Point (without encryption) - NO problem in connection (connects fine, signal OK, link quality OK).
For 8723au as Access Point (with WPA2 encryption) - HAS problem in connection (Kernel panic).
Please check these files you might need as reference:
Some quick questions:
The default hostapd driver installed via "apt-get install hostapad" also crashes.
Does this give a clue?
The text was updated successfully, but these errors were encountered: