[ltp] Re: MadWiFi on 2.6.9-mm1 ???

Michael Olbrich linux-thinkpad@linux-thinkpad.org
Sat, 6 Nov 2004 12:08:29 +0100


On Sun, Oct 24, 2004 at 02:15:16PM +0200, Anders Hermansen wrote:
> * Arno Willig (akw@thinkwiki.org) wrote:
> > Is here anyone who managed to get madwifi running on 2.6.9 or 2.6.9-mm1
> > properly?
> 
> I'm using 2.6.9 vanilla with madwifi.

2.6.9-mm1

> > Here is what I did:
> > First I took the latest cvs version.
> > Second I patched it with madwifi-2.6.8-mm_and_later-040927.patch.bz2
> > from http://users.informatik.haw-hamburg.de/~gropp_v/
> 
> This is excatly what I did to get it to work with 2.6.9 vanilla

My first step.

> > Third to get rid of the compilation errors I changed the following lines
> > in ath/if_ath_pci.c:
> > Line 245: pci_save_state(pdev, sc->aps_pmstate);
> > to  pci_save_state(pdev);
> > and
> > Line 260: pci_restore_state(pdev, sc->aps_pmstate);
> > to pci_restore_state(pdev);
> 
> This was not necessary with 2.6.9 vanilla.

I'm not an expert here, but all modifications the -mm1 patch just remove
the second parameter, so this looks ok to me.

> > When I try to 'insmod' ath_pci.ko I get the following error message:
> > insmod: error inserting 'ath_pci.ko': -1 Unknown symbol in module
> > 'dmesg' shows: ath_pci: Unknown symbol pci_dma_sync_single
> 
> This did not happen with 2.6.9 vanilla.

Again a change in the -mm1 patch. When compiling it says:
"warning: implicit declaration of function `pci_dma_sync_single'"
In -mm1 pci_dma_sync_single is replaced by pci_dma_sync_single_for_cpu
as far as I can see so I did the same here (it's a #define in
ath/if_ath_pci.h). Unfortunately it still doesn't work. I can't insert
ath_pci and dmesg says:
--------------------------------
ath_hal: 0.9.12.14 (AR5210, AR5211, AR5212)
wlan: 0.8.4.4 (EXPERIMENTAL)
ath_rate_onoe: 1.0
ath_pci: 0.9.4.11 (EXPERIMENTAL)
PCI: Found IRQ 5 for device 0000:02:02.0
PCI: Sharing IRQ 5 with 0000:00:1d.2
PCI: Sharing IRQ 5 with 0000:00:1f.1
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: mac 4.2 phy 3.0 5ghz radio 1.7 2ghz radio 2.3
ath0: 802.11 address: 00:05:4e:40:5b:96
ath0: Use hw queue 0 for WME_AC_BE traffic
ath0: Use hw queue 0 for WME_AC_BK traffic
ath0: Use hw queue 0 for WME_AC_VI traffic
ath0: Use hw queue 0 for WME_AC_VO traffic
ath0: Atheros 5211: mem=0xc0200000, irq=5
ath_pci: No devices found, driver not installed.
----------------------------------

Any ideas?

Michael