Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was just writing to seek a little guidance for patching the orinoco wireless card driver. I just installed slackware 10.0 (2.4.26 kernel) and couldn't get it patched. I tried schmoo's patch with:
Code:
patch -p1 < orinoco-0.13e-dragorn-patch.diff
but it returned errors :
Code:
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 -aur orinoco-0.13e/hermes.c orinoco-0.13e-dragorn-patch/hermes.c |--- orinoco-0.13e/hermes.c2003-05-11 23:22:27.000000000 -0700 |+++ orinoco-0.13e-dragorn-patch/hermes.c2003-11-23 18:04:31.000000000 -0800
--------------------------
File to patch: hermes.c
patching file hermes.c Hunk #1 FAILED at 183. 1 out of 1 hunk FAILED --
saving rejects to file hermes.c.rej can't find file to patch at input line 18 Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -aur orinoco-0.13e/hermes.h orinoco-0.13e-dragorn-patch/hermes.h |--- orinoco-0.13e/hermes.h2003-05-11 23:22:27.000000000 -0700 |+++ orinoco-0.13e-dragorn-patch/hermes.h2003-11-23 18:04:31.000000000 -0800
--------------------------
File to patch: hermes.h
patching file hermes.h patch: **** malformed patch at line 50: HERMES_RXSTATUS_MSGTYPE) >> 13)
any suggestions...
btw, this approach didn't work with slackware 9.0 either, but many act as though it is no big deal with other distros. I just want to be able to throw my card into monitor mode so I can do some scanning.
1. Download the orinoco driver source and unzip
2. Copy the patch to the source folder and apply
3. make, make install
4. Restart PCMCIA
Alternatively, I've read that the version 0.14x driver source does not need to be patched.
Correction to the last comment. I tried the 0.14alpha2 driver and Kismet errored out with a "can't put the card into monitor mode." The 0.15rc1 driver did work without patching, though. I tried both of them on the 2.6.7 kernel with Slack 10.
I was succsesful at patching the drivers by altering the above command,
patch -p1 < orinoco-0.13e-dragorn-patch.diff to
patch -p0 < orinoco-0.13e-dragorn-patch.diff ,
although I was never able to set my card to monitor mode, I am using slack 10 and am using the 2.6.7 kernel, I would love to here if anyone got this working yet, as I am reluctant to go back to the old kernel.
I downloaded the orinoco 0.13e- dragorn patch and have been unsucsessful at patching that, this is on the 2.6.7 kernel. This seems to be a dead end for now, I have been able to patch the orinoco_cs driver for my 2.4.26 kernel put i am still unable to put the card into monitor mode. I have not patched the pcmcia-cs drivers as I'm not sure where they live in the kernel tree.
esssentially i cant patch the 2.6.7, and Im not sure where to patch 2.4.26
Originally posted by byondrch I downloaded the orinoco 0.13e- dragorn patch and have been unsucsessful at patching that ...
Explain. Where did you place the patch, what command did you use to try to apply it and what was the output - errors or otherwise?
Quote:
Originally posted by byondrch I have been able to patch the orinoco_cs driver for my 2.4.26 kernel put i am still unable to put the card into monitor mode.
How so? Same questions as above: where and how did you apply the patch and what was the output? What is the output of iwpriv after you apply the patch, make, make install and restart PCMCIA services?
Have you tried the 0.15rc1 driver as suggested above?
for the 2.6.7 kernel I tried applying the the orinoco 0.13e-dragorn patch in the drivers/net/wireless directory of the kernel, getting the resulting output:
bash-2.05b# patch -p1 < orinoco-0.13e-2.6.2-patch.diff
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 -Naur linux-2.6.2/drivers/net/wireless/airport.c linux-2.6.2-orinoco/drivers/net/wireless/airport.c
|--- linux-2.6.2/drivers/net/wireless/airport.c 2003-12-18 10:59:45.000000000 +0800
|+++ linux-2.6.2-orinoco/drivers/net/wireless/airport.c 2004-02-17 15:26:40.000000000 +0800
--------------------------
File to patch:
I have also for the 2.4.26 kernel patched with the orinoco-cs-0.13d patch in the same directory as above for the 2.4.26 kernel. this was successful, however as I understand it I need to also patch the pcmcia-cs driver, but I am unable to locate this driver to see which patch applies
also do compile my kernel after applying the patches?
From the Shmoo instructions:
"If you want to install one of the orinoco-0.xx patches directly to your kernel sources or to pcmcia-cs sources that I have not yet provided a patch for (see pcmcia-cs-X.Y.Z/wireless/orinoco_cs.c to determine what version you need), then drop the patch in the same directory as the orinoco source files and use the following command
patch -p1 < orinoco-0.XX-patch.diff"
So, what I suggested above, with as much detail as I can:
Download and unzip orinoco-0.13e.tar.gz
Download the orinoco-0.13e-patch.diff patch
$ cd orinoco-0.13e
$ cp path_to_file/orinoco-0.13e-patch.diff .
$ patch -p1 < orinoco-0.13e-patch.diff
$ make
$ su
# make install
Restart pcmcia services - /etc/rc.d/rc.pcmcia restart or /etc.initrd/pcmcia restart depending on your distro.
Check for monitor mode with iwpriv.
Again, as an alternative, try the most recent orinoco_cs drivers - 0.15RC1. They work for me with Kismet and 2.4.26 without patching (a couple of odd artifacts, thought). I've not been able to get Kismet to run under 2.6.7 for more than a minute or so. I've not recompiled under 2.6.7 to see if that will help.
I recompiled my 2.4.26 kernel removing the wavelan modules, and after that my card now goes int monitor mode. I will have to see if the same will work for the 2.6.7 kernel.
That seems to be the trick, removing the wavelan modules from the kernel allows me to go into monitor mode with the stock drivers that are in the slackware packages. I was able to start kismet in the 2.6.7 kernel and had no problems that i could tell in 10 minutes, I hope this helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.