LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ath5k doesnt work.. - Atheros AR2413 (https://www.linuxquestions.org/questions/linux-networking-3/ath5k-doesnt-work-atheros-ar2413-681074/)

dark_access 11-04-2008 11:42 AM

Ath5k doesnt work.. - Atheros AR2413
 
Hello everybody,

I've a BIG problem with my new Fedora Core 9 (2.6.25).

I have an Atheros card (AR2413) that is supported by madwifi drivers (http://madwifi-project.org/wiki/Chipsets#a2413).. but unfortunately doesn't work with the new ath5k drivers already compiled in the linux kernel (2.6.25).


So, times ago I installed on my slack madwifi 0.9 and my Atheros card worked fine.. but now I tryed to change distro (Fedora 9) and I've some PROBLEMS.. (strange problems).

I enabled on my 2.6.25 kernel these modules:
Networking --->
Wireless --->
Improved wireless configuration API
Generic IEEE 802.11 Networking Stack (mac80211)

and

Device Drivers --->[*] Network device support --->
Wireless LAN --->
Atheros 5xxx wireless cards support

So.. ath5k is now enabled..

I also enabled all kind of algos for cryptology.. (AES TKIP and so on..)

I tryed to connect with wpa_supplicant but.. doesn't work.. So I decided to cut off WPA-PSK from my AP.. So my AP is now setted with no keys.. then I tryed again to connect on my ap:

/sbin/ifconfig wlan0 192.168.0.5
/sbin/route add default gw 192.168.0.1 wlan0
(these command work well)

but then I got again this error from dmesg:

...
wlan0: authenticate with AP MAC_ADDRESS
wlan0: disassociate(reason=3)

So, what's wrong? I'm going crazy.. :(

Someone can help me please?


PS I also saw this from dmesg | grep ath

ath5k_pci 0000:06:02.0 registered as 'phy0'
ath5k phy0 AR2413 chip found

but phy0.. is not in the ifconfig -a output ... :(

Thanks in advance.

rvo 11-04-2008 12:22 PM

What about your ESSID? Try iwconfig wlan0 essid [your essid goes here] an see what happens.

craigevil 11-04-2008 12:22 PM

You might try:
http://www.linuxforums.org/forum/wir...edora-8-a.html

dark_access 11-04-2008 12:43 PM

@rvo:
already done..

I tryed all... iwlist, iwconfig, wpa_supplicant, AP without key.. and so on..
No kinda results..


@craigevil: already tryed.. it doesn't work.. But I think that ath5k.. is "madwifi"..So I dont need to madwifi...

Or .. am i wrong?

dark_access 11-04-2008 05:38 PM

I tryed again other ways.. but without any kind of success...

Same same same error.. :(

If someone know something about it.. please let me know.

Thanks

craigevil 11-04-2008 07:53 PM

idk about fedora but in sidux ath5k is in the 2.6.27 kernel, madiwifi has to be installed separately.

On my eee I removed madwifi and modprobed ath5k and it just worked

Quakeboy02 11-04-2008 08:22 PM

Ath5k has been in high development mode, and I don't know what kernel version it became sort of "stable". You might have to remove ath5k and install madwifi 0.9.4.1 or whatever the final version was. You might be better off switching to the latest stable 2.6 kernel, if you can. I'm running 2.6.27.3 and it seems OK for ath5k.

dark_access 11-05-2008 06:52 AM

Quote:

Originally Posted by Quakeboy02 (Post 3331952)
Ath5k has been in high development mode, and I don't know what kernel version it became sort of "stable". You might have to remove ath5k and install madwifi 0.9.4.1 or whatever the final version was. You might be better off switching to the latest stable 2.6 kernel, if you can. I'm running 2.6.27.3 and it seems OK for ath5k.

thanks for reply.. I tryed to install madwifi from yum (livna mirror) but it doesn't work...

yum install madwifi kmod-madwifi

it gives me some error (no rpm found..)

So, I tryed to install madwifi (0.9.4) from sources but... also here.. my wifi0 doesn't run :(
during compiling time is ALL OK!! but.. /sbin/iwconfig wlan0 essid "my" doesn't associate my ath to my ap..

What's wrong?

ah.. I've blacklisted ath5k in modprobe.conf after installing madwifi!

Best Regards.

PTrenholme 11-05-2008 10:50 AM

I have the same Atheros device, and my solution was to disable (i.e., blacklist) the ath5k and install the ath_hal snapshot (I use madwifi-hal-0.10.5.6-r3698-20080604). Note that my problem was because I was using a AMD 64bit system, and the 64bit support in the stock madwifi driver for the AR24__ EG chips has not yet been merged into the ath5k driver.

By the way, if you use that snapshot, you'll need to patch the calls to iwe_stream_add_event and iwe_stream_add_point in the ieee80211_wireless.c program to include a reference to a iw_request_info structure as the first argument of each call. I just added a static struct iw_request_info iw_info = { 0, 0}; near the top of the program, and a &iw_info as the first argument. (A real kludge, but it works.)

Quakeboy02 11-05-2008 11:25 AM

Quote:

So, I tryed to install madwifi (0.9.4) from sources but... also here.. my wifi0 doesn't run
during compiling time is ALL OK!! but.. /sbin/iwconfig wlan0 essid "my" doesn't associate my ath to my ap..

What's wrong?
My guess would be that you've left out some crucial step. Have you done all of the following in this order before giving up?
Code:

sudo make clean
sudo make
sudo make install
sudo modprobe ath_pci


dark_access 11-05-2008 01:49 PM

@ Quakeboy02: sure.. Done that steps.. ;)

@ PTrenholme:
But on my slack i installed madwifi from sources and it worked very well!!
I blacklisted ath5k (and with lsmod i cant see ath5k.. so it's blacklisted!)
but... it doesnt work..

So, where I can find madwifi-hal-0.10.5.6-r3698-20080604?

But i don't understand which changes (which patches) has to be made in the ieee80211_wireless.c.

Thanks.

Quakeboy02 11-05-2008 02:56 PM

You do know that with madwifi you get ath0 and now wlan0.

PTrenholme 11-05-2008 08:27 PM

Quote:

Originally Posted by dark_access (Post 3332671)
<snip>
@ PTrenholme:
But on my slack i installed madwifi from sources and it worked very well!!
I blacklisted ath5k (and with lsmod i cant see ath5k.. so it's blacklisted!)
but... it doesnt work..

So, where I can find madwifi-hal-0.10.5.6-r3698-20080604?

But i don't understand which changes (which patches) has to be made in the ieee80211_wireless.c.
</snip>

The snapshots are here: http://snapshots.madwifi-project.org...-hal-0.10.5.6/ where, I notice that there are several more recent snapshots.

Just a moment - let me download the November one an see if it compiles without a patch.

Yes, it does.

So, just go to the snapshot directory, grab the last (r3875) file, unpack it (ark works well), and do the make dance steps described above.

Now I'm going to reboot and see what happens . . .

<edit>
And everything seems to be working fine.
</edit>

dark_access 11-07-2008 11:30 AM

Hello,

I think I've solved the problem... I tryed to install the newest snapshot (downloaded from the "PTrenholme link") and it seems that it works (tested on 2.6.27 vanilla kernel).. as soon as possible I'll make some tests.. but i think there will be no problems.

PTrenholme 11-17-2008 11:22 AM

Fedora just updated to a 2.6.27 kernel, and I needed to re-compile and install the driver. So, for what it's worth, here's how I did it:
Code:

# cd madwifi-hal-0.10.5.6-r3875-20081105/
# make -s clean
# make -s
Checking requirements... ok.
Checking kernel configuration... ok.
  Building modules, stage 2.
# make -s install
Checking requirements... ok.
Checking kernel configuration... ok.
  Building modules, stage 2.
# modprobe ath_pci

After which my knetworkmanager icon changed from a screen-with-a-red-x to a "connecting" moving icon, and I was soon automatically connected to my wireless WPA2-protected modem. (knetworkmanager because I mostly use KDE.)

Note: I posted this here not so much for the OP who, when last heard from, seems OK, but for others who may access this thread.


All times are GMT -5. The time now is 03:38 PM.