Hmmmm... Is there any specific reason you're using such an old kernel, and is it for sure configured to support basic wireless? If it's a default Gentoo kernel from an install, it might not be.
In any case, I've virtually certain with any 2.6.17 kernel the version of madwifi in portage should now work, but not sure about something as old as 2.6.13. Probably 2.6.19 kernels will now work also, whereas before they didn't work with the portage madwifi version (at least for me).
Look in /usr/src and see if the linux symlink is indeed pointing to your 2.6.13.2 kernel source directory. If you haven't compiled any new kernels and put the source directory in another location, it should be in /usr/src, along with it's linux symlink. If for some reason it's not (the symlink pointing to the running kernel), you need to correct that, and then remerge the madwifi stuff, assuming your 2.6.13 kernel does have wifi support compiled in (select "y," not "m" when configuring the kernel). However, since the modules load, it sounds like your symlink was correct.
I really recommend getting a newer kernel, making sure you compile in basic wireless support. The deal is with madwifi you're installing some drivers that aren't in the kernel by default, against the running kernel.
Another thought: What version of madwifi are you dealing with? If you are running stable x86 Gentoo, you might need to try installing the ~x86 madwif version with:
Code: Select all
ACCEPT_KEYWORDS="~x86" emerge madwifi-driver madwifi-tools
Remove the other madwifi stuff with emerge -C first. I'm assuming your system is connected with a regular ethernet card also?
Still more thoughts:
Have you added ath0 to the default run level?
What does dhcpcd ath0 up, and /etc/init.d/net.ath0 start show?
IIRC, I also once had to make an ath0 symlink to bring up ath0 at boot:
Code: Select all
cd /etc/init.d
ln -s net.lo net.ath0
To summarize:
Remove the installed madwifi, and emerge --sync, then check the linux symlink (fix if necessary), and emerge madwifi again. Reboot, and see if the modules load automatically. If not, modprobe them, and check lsmod to see if they show up, and see if you are connected. BTW, are you sure your access point is located close enough to your computer?
If you still can't get the portage version working, installing a version from madwifi SVN is no problem, and might work- I'll give you a rundown on what I do if need be.