Bug 12635
Summary: | ath5k scanning makes system choppy | ||
---|---|---|---|
Product: | Networking | Reporter: | Benjamin Schindler (bschindler) |
Component: | Wireless | Assignee: | networking_wireless (networking_wireless) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | kernel-bugzilla, linville, mcgrof, me, nick, vickieharmstrong |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.28 (and earlier - have not tried 2.6.29-rcX) | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Benjamin Schindler
2009-02-05 04:07:34 UTC
The problem is that scanning changes channels, which in turn calls ath5k_hw_reset, thus reloading all the registers for the card. This is how it has pretty much always worked. This is also, I suspect, a cause for a number of bad behaviors of the card, such as noise floor timeouts and perhaps some lockups. We need to make channel changes a much simpler affair. Hi I just spotted that part in the code (base.c, ath5k_chan_set) Is there any way I can help on this? This patch *may* help, by reducing the total number of channels: http://marc.info/?l=linux-wireless&m=123841474910111&w=2 Otherwise Nick is working on "reset-light" I believe. Well, if somebody is already working on reset-light, then I'd rather wait for that. If there are patches for that which need testing, I'd surely give them a go Fair enough. One thing you can try in the interim is to add to your wpa_supplicant.conf "scan_freq=2412 2437 2462" -- that will limit the channels that are scanned to 1,6, and 11, which should reduce the problems by a lot. I believe this could be the root problem for this distro bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/291760 (basically, every 2min when NetworkManager does a network scan, all wireless traffic stops for ~5sec until it's done). I see channel hopping happening during the (background!) scan, to echo the comments above. Yes, all hardware does this, ath5k just takes longer to scan since there are two bands and tons of channels (and it doesn't help that reset is pretty heavy-weight). Patches for spreading out background scans have been posted recently. There are many fewer channels in 2.6.31. Are you still experiencing this problem with kernels versions >=2.6.31? I still see this on Debian with their 2.6.31 and 2.6.32 kernels (most recently 2.6.32-3 on amd64). It makes interactive use very bad with NetworkManager. I've reported it there as Bug#575229: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575229 I think this situation has been vastly improved between the original report and 2.6.35. I'm going to close this now -- please reopen if you truly believe a serious issue remains. It doesn't! I still see some minor glyphs corruption, but that's another story. So it took approximately 10 cycles to get this fixed... ;-) http://www.kizifan.com/action/friv-monster-hordes |