On 02/25/2013 10:51 AM, Jussi Kivilinna wrote:
Hello, I've been trying to get rtl8192cu work on ARM board I got recently. While I don't get crashes anymore and I can connect to AP, open connections, do short transfers, eventually rtl8192cu goes silent (bulk-IN urbs stop completing, no packets received). Bringing interface down and back up does not help, I need to rmmod/modprobe to wake the device. I noticed that, when doing large transfer (with iperf), "signal avg" reading from iw started to behave interestingly... Idle (0.1 sec interval): signal avg: -75 dBm signal avg: -68 dBm signal avg: -72 dBm signal avg: -73 dBm signal avg: -74 dBm signal avg: -75 dBm signal avg: -75 dBm signal avg: -75 dBm signal avg: -75 dBm signal avg: -74 dBm While doing TCP transfer, rtl8192cu at RX side (0.1sec intervals): signal avg: -88 dBm signal avg: -13 dBm signal avg: -38 dBm signal avg: 100 dBm signal avg: -11 dBm signal avg: 122 dBm signal avg: 51 dBm signal avg: 77 dBm signal avg: -14 dBm signal avg: -18 dBm signal avg: 78 dBm signal avg: 46 dBm signal avg: -65 dBm signal avg: -103 dBm signal avg: -90 dBm signal avg: 88 dBm signal avg: -43 dBm signal avg: -12 dBm This keeps on until rtl8129cu goes silent. I have attached kernel log with rtl8192cu loaded with debug=4. Connection stops working around timestamp 1377. (Log shows some BUGs which do appear with debugging on but not without.) Apparently triggering this hang becomes much harder to trigger when debug=4 is enabled... probably because debug logging increasing CPU usage, transfer rate drops to 1Mbit/s and above symptom mostly disappears. Without debug=4, RX runs at ~28Mbit/s.
Thanks for the log and the signal average data. All of the BUGs come from a single debug statement in the source. I will delete that trace call.
Realtek has apparently stopped development on the mac80211-based driver. The latest version is dated 2011.02.10. The latest driver with Realtek's softmac stack is 2012.06.22. As the two drivers are totally different, porting the fixes from one to the other are quite difficult.
My plan is to try to improve rtl8192cu; however, if that does not work, I will pull it in favor of the version with Realtek's stack. It will, of course, need to be placed in staging. The downside is that a number of distros do not install drivers from staging, and all the mac80211 features will be lost. That is the worst case outcome.
Larry -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html