I've spent the better part of a week attempting to get wireless networking working on my CentOS 5.1 box. Since my card (a D-LINK DWL-G510) is not directly supported, I first installed NDISwrapper, which I've used before on my openSUSE 10.3 installation and works fine.
I first hit a snag when I attempted to set the ssid with iwconfig using
# iwconfig wlan0 essid tartarus
with the result that the machine instantly hangs and I have to do a hardware reset.
I know that wlan0 exists since a call to iwconfig with no options shows it to be there.
Having looked around at anyone with a similar problem, the general consensus seems to be that a patch to set the stack size to 16K should solve the problem. So I downloaded one and attempted to apply the patch and this (eventually) is the problem with which I am now faced. I first copy the patch file to /usr/src as instructed. I then use the following command to apply the patch
# patch -p1 < /usr/src/linux-2.6.18-16kstacks.patch --dry-run
which results in the following output:
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff -urN linux-2.6.18/arch/i386/Kconfig.debug linux-2.6.18-16kstacks/arch/i386/Kconfig.debug
|--- linux-2.6.18/arch/i386/Kconfig.debug 2006-09-19 23:42:06.000000000 -0400
|+++ linux-2.6.18-16kstacks/arch/i386/Kconfig.debug 2006-09-27 13:09:54.000000000 -0400
File to patch:
All instructions I've seen say to move to the directory /usr/src/linux but I do not have one. All I have in the /usr/src directory (aside from the patch) are the directories "kernels" and "redhat".
So, my questions are:
Should I have a "linux" directory?
If so, any idea why I don't?
How do I get this patch applied?
I'm running CentOS 5.1 with kernel 2.6.18-53.1.14.
If anyone has an alternative suggestion as to how to get wireless networking to work I'd be very grateful to hear it.
Thanks to all in advance,