LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ath5k drivers = slow as hell internet...now so are madwifi's!! (https://www.linuxquestions.org/questions/linux-networking-3/ath5k-drivers-%3D-slow-as-hell-internet-now-so-are-madwifis-703958/)

joemoer90 02-11-2009 02:27 PM

ath5k drivers = slow as hell internet...now so are madwifi's!!
 
Hi

I've been out of the linux world for a couple of years as I had to use windows stuff for work. Anyway, that's all by-the-by.

I installed Mandriva 2009 today (my linux flavour of choice) and noticed that it is now shipped with ath5k drivers for atheros chipsets. In the old days I used to just install the latest madwifi drivers which worked a treat. The ath5k module just doesn't seem to work well for me - I get very unreliable speeds and it drops a lot so I thought, no problem, I'll install madwifi drivers and I'll be away...not so. I had the same problem with madwifi's drivers.
Then after a bit of reading up I discovered that madwifi and ath5k drivers are pretty much one and the same these days (correct me if I'm wrong). So the logical move was to install old madwifi drivers (I still had a copy of the ones that used to work for me a couple of years ago). Now the problem is that they won't compile under the madrive 2009 kernel!

Arrrgh. Since I've been out of the loop for a while I'm guessing I'm not the first person to enquire about this problem/bug/whatever. Can anyone offer some advice?

Here's hoping I don't timeout while I upload this message!!

rjwilmsi 02-11-2009 03:54 PM

I also had problems attempting to use the ath5k drivers on opensuse 11.1 and had to go back to the existing madWiFi drivers. However, even with them I still found that the maximum connection speed I could attain was not what it should be. I reported the two bugs below:

https://bugzilla.novell.com/show_bug.cgi?id=463247

https://bugzilla.novell.com/show_bug.cgi?id=463250

nx5000 02-12-2009 02:36 AM

Works perfect on my card on my debian.

Which version of the driver?

Which card?

joemoer90 02-12-2009 04:32 AM

The card is AR2413. As I said, it used to work perfectly with the old madwifi drivers.

I've tried installing version 0.9.4 of madwifi but it was just as inconsistent and slow as the ath5 drivers and as I mentioned before older versions of madwifi won't compile under the newer kernel.

Thanks for any advice

farslayer 02-12-2009 09:17 AM

Try the madwifi openhal version maybe (0.10.5.6) ? it's for ar2425/ar5007 but I would think it should work with the older Atheros chips..

http://madwifi-project.org/ticket/1192

Works great with the ar5007 in my netbook..


Just a thought really, since nothing else has worked for you.

nx5000 02-13-2009 07:15 AM

Isn't madwifi deprecated anymore? Wouldn't that conflict with ath5k in the kernel? Not sure I would take this path.

When I first switched to ath5k (probably 2.6.27 kernel), I got nasty bugs. I was not even able to determine my exact network chipset. This driver gave me headaches.

From this page, it looks ok for your card:
http://wireless.kernel.org/en/users/...supportedchips

At the start, they had to limit the rate but it should'nt be the case anymore. "shouldn't" because at the moment I've only tried the driver for internet (slower than LAN).
At least, my downloads run over night without interruption.

Since I switched to 2.6.28 it works pretty good.
For info, I use wicd which works like a charm.

I would dl the latest kernel and build and install it with default configuration.

joemoer90 02-16-2009 06:44 AM

Thanks again to all replies.
It seems odd that my card is listed but it doesn't work properly with the drivers. I tried a live cd of suselinux 11.1 and had the same issue, but when I tried the latest ubuntu the card works fine.

As far as I know madwifi is not deprecated, it's just that ath5k is the driver of choice for a lot of distros recently. Anyway, I was thinking about what you said about the drivers conflicting, NX5000, and blacklisted everything in sight to do with ath5k. Still no joy so I've gone back to mandriva 2007 and installed madwifi. All seems to be well again.

Strange that hardware support should get worse with later distros rather than improve!

nx5000 02-16-2009 10:36 AM

As I've said, ath5k began to work for me on linux kernel 2.6.28, but you didn't talk about the kernels nor ath5k version you had tried.

uname -a will tell you


Quote:

Originally Posted by http://madwifi-project.org/
Ath5k is intended to replace MadWifi in the long run and exceed it feature-wise

And that's why I switched to ath5k.

flammenwurfer 02-21-2009 08:59 AM

I'm having very similar problems with my Atheros card. I think mine has the same chipset as well. I get horribly slow speeds when I'm using Arch Linux. When I use Xubuntu it works great.

joemoer90: You say yours is working fine in Mandriva? Can you tell me what version of Madwifi and kernel you are using which work?

Thanks

joemoer90 02-23-2009 06:08 AM

Flammerwurfer: I'm using kernel 2.6.22.19 and compiled madwifi 0.9.3.3 from source. Now it works great. I don't understand why a newer kernel and latest version of madwifi cause slow/sporadic network speeds, but this has fixed the problem for me.

nx5000: I was previously using mandriva 2009 and had done all updates so I'm assuming I had the latest ath5k drivers and kernel. I'm going to re-install it on an other hard drive so I can tinker with it without breaking my main machine. I'll give an update soon (including accurate info on driver version and kernel)

Cheers all

nx5000 02-23-2009 09:16 AM

Glad you fixed your problem.

I looked at mandriva 2009 and it includes a 2.6.27 kernel. Mandriva probably adds its own patches but it could be that the ones concerning "noise calibration" affecting your chip was not backported from 2.6.28 to 2.6.27.

So as you say, keep your current kernel, additionnaly take the latest kernel from kernel.org, blacklist everything related to madwifi (starting with ath and with wlan), comment the line blacklisting ath5k and boot.
I'd bet it will work as it does for me. (I needed wicd also)

joemoer90 03-31-2009 08:28 AM

Hi NX5000.

Out of interest I'm experimenting with mandriva 2009 with kernel 2.6.27.19 on spare hard drive as I will want to upgrade eventually. I was wondering about what you said about ath5k working for you when you upgraded the kernel to 2.6.28. Did you have to upgrade your ath5k version too or did the new kernel alone fix noise problems?

Also do you know if ath5k is available as a precompiled package (like RPM, etc) or does it have to be compiled from source? I can't seem to find any rpms out there.

Regards

joemoer90

wartstew 04-18-2010 01:19 PM

Both ath5k and Madwifi very slow
 
I have very poor performing wifi performance on my Ubuntu Jaunty laptop that has an AR5212 in it.

The ath5k driver has never worked very well, as I've experimented with it for several years now.

The older Madwifi driver used to work very well, but now is also slow and has been slow for a few months now.

I've repeatably tried both the latest Ubuntu kernels as well as my own custom compiled ones (the latest being 2.6.33.2). Note that I have both drivers in the kernel but then just change the blacklisting from one to the other to select the one I try to use.

I have NOT been able get the MADWIFI kernel to compile into the 2.6.33.2 (or a few versions previous that I've tried). It bombs out with "copy_from_user() buffer size is not provably correct". I guess this is a result of strict "copy_from_user" now being checked. I just tried the latest MADWIFI SVN assembled code wth this result, but it does compile and install into the Ubuntu kernel.

damgar 04-18-2010 01:24 PM

For what it's worth setting the rate manually has worked, well for me as has ndiswrapper when using mandriva. I never got ndiswrapper to work right in ubuntu, but setting the rate manually gets me everything from my ISP up to 20mb/s. I really haven't tested the range. Also with very recent kernels I haven't even had to set the rate.


All times are GMT -5. The time now is 11:58 AM.