2008-07-17 23:01:16

by Jaco Kroon

[permalink] [raw]
Subject: AR242x wireless card (ath5k)

Hi,

I've got a Toshiba Satellite 1i4 (P200 derivative) laptop with the
following wireless card:

05:00.0 Ethernet controller: Atheros Communications Inc. AR242x
802.11abg Wireless PCI Express Adapter (rev 01)

According to
http://linuxwireless.org/en/users/Drivers/ath5k#supportedchips the
module loads but there is no rx/tx - and this is in line with what I see
with the newly released 2.6.26 kernel (x86_64).

What I would like to know is how I can assist? I've got a little bit of
kernel coding experience and my C is at least reasonable. I don't have
an abundance of time available but can probably nip in a couple of hours
worth of work on this.

Regards,
Jaco Kroon


2008-07-18 19:25:44

by Jaco Kroon

[permalink] [raw]
Subject: Re: AR242x wireless card (ath5k)

Pavel Roskin wrote:
> Quoting Jaco Kroon <[email protected]>:
>
>> Hi,
>>
>> I've got a Toshiba Satellite 1i4 (P200 derivative) laptop with the
>> following wireless card:
>>
>> 05:00.0 Ethernet controller: Atheros Communications Inc. AR242x
>> 802.11abg Wireless PCI Express Adapter (rev 01)
>
> That's not sufficient to identify your card. ath5k should print more
> detailed information to the kernel log, which is shown by the dmesg
> command. If it's AR5006 (MAC revision less than 14.2), the card should
> work with MSI turned off. Just add "pci=nomsi" to the kernel command
> line in the bootloader. Alternatively, disable CONFIG_PCI_MSI in
> .config and recompile the kernel.

pci=nomsi doesn't work.

dijkstra ~ # dmesg | grep ath5k
ath5k_pci 0000:05:00.0: registered as 'phy0'
ath5k phy0: Support for RF2425 is under development.
ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)

> If it's AR5007, the experimental code is being tested now:
> http://www.kernel.org/pub/linux/kernel/people/mickflemm/
>
> Look for the latest compat-wireless. Some people report build problems
> due to unrelated code in compat-wireless. It's a known problem, which
> has nothing to do with the driver itself.

This does work for me against 2.6.26 kernel. Time to remove the
wireless support for the kernel and use this instead. Thanks for the
pointers.

>> What I would like to know is how I can assist? I've got a little bit
>> of kernel coding experience and my C is at least reasonable. I don't
>> have an abundance of time available but can probably nip in a couple of
>> hours worth of work on this.
>
> I suggest that you subscribe to ath5k-devel, read the mailing list and
> try dealing with the problems that are reported to the list. You may
> also want to see how to adapt madwifi tracing infrastructure to the new
> mmiotrace code due to appear in Linux 2.6.27.

Subscribed. Will see what I can do about the mmiotrace stuff ... time
to go find some documentation.

Thanks for all the good work that you guys do.

Jaco

2008-07-17 23:14:26

by Pavel Roskin

[permalink] [raw]
Subject: Re: AR242x wireless card (ath5k)

Quoting Jaco Kroon <[email protected]>:

> Hi,
>
> I've got a Toshiba Satellite 1i4 (P200 derivative) laptop with the
> following wireless card:
>
> 05:00.0 Ethernet controller: Atheros Communications Inc. AR242x
> 802.11abg Wireless PCI Express Adapter (rev 01)

That's not sufficient to identify your card. ath5k should print more
detailed information to the kernel log, which is shown by the dmesg
command. If it's AR5006 (MAC revision less than 14.2), the card
should work with MSI turned off. Just add "pci=nomsi" to the kernel
command line in the bootloader. Alternatively, disable CONFIG_PCI_MSI
in .config and recompile the kernel.

If it's AR5007, the experimental code is being tested now:
http://www.kernel.org/pub/linux/kernel/people/mickflemm/

Look for the latest compat-wireless. Some people report build
problems due to unrelated code in compat-wireless. It's a known
problem, which has nothing to do with the driver itself.

> What I would like to know is how I can assist? I've got a little bit
> of kernel coding experience and my C is at least reasonable. I don't
> have an abundance of time available but can probably nip in a couple of
> hours worth of work on this.

I suggest that you subscribe to ath5k-devel, read the mailing list and
try dealing with the problems that are reported to the list. You may
also want to see how to adapt madwifi tracing infrastructure to the
new mmiotrace code due to appear in Linux 2.6.27.

--
Regards,
Pavel Roskin