FS#9202 - madwifi patch for Atheros 5007EG
Attached to Project:
Arch Linux
Opened by Shrutarshi Basu (Basu) - Monday, 14 January 2008, 03:39 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 31 May 2009, 10:31 GMT
Opened by Shrutarshi Basu (Basu) - Monday, 14 January 2008, 03:39 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 31 May 2009, 10:31 GMT
|
Details
Description:The current madwifi driver does not work with
the Atheros 5007EG chipset -- the ndiswrapper driver
sometimes work. I've found this patch which will make the
madwifi driver work reliably.
http://madwifi.org/ticket/1679 the normal network and wicd daemons work and nothing has been broken. All the instructions are in the URL |
This task depends upon
Closed by Thomas Bächler (brain0)
Sunday, 31 May 2009, 10:31 GMT
Reason for closing: Fixed
Additional comments about closing: This is very old. ath5k and ath9k should cover all atheros devices nowadays.
Sunday, 31 May 2009, 10:31 GMT
Reason for closing: Fixed
Additional comments about closing: This is very old. ath5k and ath9k should cover all atheros devices nowadays.
I built the drivers using this tarball:
http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz
That was the only driver my wifi card would work with.
(Acer Aspire 4315 here)
http://aur.archlinux.org/packages.php?ID=17392
But it is a good thing that AUR has a madwifi package that will work with ar5006/5007eg and then there is the second possibility to download the .tar.gz and run make and make install as root and insert the modules to /lib/modules.
_______________________
<linfan> The madwifi maintainer on Archlinux wonders about the /ticket/1192: "Can anyone verify that this patch doesn't break other chipsets, and only adds support for the ar5007 chipset?"
<linfan> What should I answer him?
<nbd> nobody can without actually testing all chipsets
<linfan> ok, then i will answer him that madwifi better not be updated
<alisonken1> also, make sure of the actual chipset he's using
<linfan> it is not a question about that - it is a question about replacing stock madwifi with the http://madwifi.org/ticket/1192
* axelm71 has quit (Remote closed the connection)
<alisonken1> the only reason for ticket 1192 is the upgrade to newer chipsets via the new hal. if you're not using a chipset that _requires_ the new hal (as noted, some chipsets are incorrectly reported via lspci), then there's no reason to upgrade to the new hal
<alisonken1> if you're currently using madwifi stock (stable), then there should be no reason to upgrade to ticket 1192 other than testing
* wackl_ is now known as wackl
* topse has quit (Remote closed the connection)
* topse (n=topse@p5B2B2E5C.dip0.t-ipconnect.de) has joined #madwifi
<linfan> well, many have laptops with ar5006/5007/242*agb and they cannot use madwifi per se. They either have to use the madwifi-nr-r3366+ar5007.tar.gz or madwifi-newhal-svn 3704-1. So, if this new hal package is to become the only madwifi package, will all atheros chipsets work with it?
<alisonken1> ok - with that caveat - the new hal will be merged into trunk as soon as it gets tested enough to at least not kill older chipsets :)
<alisonken1> as noted, there have been some api changes with the new hal, and they have to be verified with the older code before it gets merged
<linfan> ok, thanks - then I will cut and paste this info to the bug report.
<topse> @ linfan I was only able to get my ar5006 working with the newest hal ^^
<marvin42> 10-4, topse.
<linfan> yeah, me, too - but there are other atheros users too that have other chipsets
_______________
regards
linfan
<alisonken1> as noted, there have been some api changes with the new hal, and they have to be verified with the older code before it gets merged
Based on this information, doesn't it look safer to keep the two madwifi versions (madwifi from core and madwifi-newhal-svn from AUR)?
Further it seems there is all the madwifi stuff in the kernel and madwifi is obsolete, but that leaves my laptop without wifi unfortunately as the kernel does not support my atheros chip.
The said version can still be obtained here (from the look of it, I didn't get mine there):
http://code.google.com/p/eeedora/source/browse/trunk/generate-rpms/madwifi/?r=138
change int i, lclass = 0; to int i;
http://georgia.ubuntuforums.org/showthread.php?p=7057640
When you say that you "no longer user madwifi with patch..." do you mean, you don't even use madwifi?
Just add ath5k in your modules line in /etc/rc.conf.
It enable wifi hardware support.
Interface ath0 is not a wireless inerface :(
Is it absolutely 100 % sure that i don't need to install some madwifi and/or madwifi-utils pkgs and or wpa_supplicant?
04:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
Subsystem: Device 1a32:0105
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at f8000000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath5k
Kernel modules: ath5k
ifconfig output:
wlan0 IEEE 802.11bg ESSID:"XXXX"
Mode:Managed Frequency:2.437 GHz Access Point: XX:XX:XX:XX:XX:XX
Bit Rate=24 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Power Management:off
Link Quality=100/100 Signal level:-38 dBm Noise level=-99 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Here are the logs:
May 5 19:20:27 minifox kernel: ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)
May 6 20:01:34 minifox kernel: ath5k 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
May 6 20:01:34 minifox kernel: ath5k 0000:04:00.0: setting latency timer to 64
May 6 20:01:34 minifox kernel: ath5k 0000:04:00.0: registered as 'phy0'
May 6 20:01:34 minifox kernel: wmaster0 (ath5k): not using net_device_ops yet
May 6 20:01:34 minifox kernel: wlan0 (ath5k): not using net_device_ops yet
May 6 20:01:34 minifox kernel: ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)
I connect using iwconfig command supplying the AP's MAC, ESSID and pwd. And this works on clean install out of the box.
Just made sure there is NO 'ath5k' in MODULES list, and it works. Here's the relevant snippet from rc.conf:
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(!snd_pcsp)
My output looks like this:
lspci -v output:
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
Subsystem: Hewlett-Packard Company Device 137b
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f2000000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath_pci
Kernel modules: ath5k, ath_pci
ifconfig output:
ath0 Link encap:Ethernet HWaddr xxxxxxxxx
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:4cff:fe86:a2d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1192 errors:0 dropped:0 overruns:0 frame:0
TX packets:635 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:985376 (962.2 Kb) TX bytes:82076 (80.1 Kb)
wifi0 Link encap:UNSPEC HWaddr xxxxxxxx-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15248 errors:0 dropped:0 overruns:0 frame:882
TX packets:826 errors:59 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:280
RX bytes:2347291 (2.2 Mb) TX bytes:118994 (116.2 Kb)
Interrupt:16
I cannot find any logs to post.
I have madwifi-utils, madwifi-newhal-svn (AUR) and wpa_supplicant installed. I use mac filters in the router and wpa.
My net-profile looks like this:
CONNECTION="wireless"
INTERFACE=ath0
QUIRKS=(prescan preessid)
SCAN="yes"
SECURITY="wpa"
ESSID="xxxx"
KEY="xxxx"
IP="dhcp"
TIMEOUT=30
and rc.conf:
MODULES=(!ath5k !wlan0 ath-pci wlan-scan-sta ...)
INTERFACES=(lo !eth0 !ath0)
NETWORKS=(Sawers)
#NETWORKS=(ethernet)
DAEMONS=(syslog-ng !network net-profiles...)
It seems ath5k can scan, but it cannot find my router AP. I have wpa and passphrase set up in the router and I use mac filters. Turning off the security options I can get connected to one of my neighbors' router.
Is ath5k relying on wpa_supplicant for wpa? Many questions and no clues or wikis for the new ath5k setup with security options.
#!/bin/bash
sudo ifconfig wlan0 down
sudo dhcpcd wlan0 --release
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid XXXXXX channel 6 key XXXXXXXXX ap XX:XX:XX:XX:XX:XX
sudo dhcpcd wlan0
That gets the job done for me. For the record, I used to get only 60% signal strength using madwifi with the patch, now I'm constantly 100%, which is as it should be because my AP is less than 10 feet from my laptop.
https://lists.linux-foundation.org/pipermail/bugme-new/2009-April/021762.html