LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 05-03-2005, 11:52 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
Patching Orinoco Gold to enable monitor mode


I'm running Debian Sarge with an Orinoco Gold PCMCIA card. I'm (unsuccessfully) following the directions in O'Reilly's 'Linux Unwired' to patch the orinoco_cs driver for monitor mode.

I used the orinoco-0.13e.tar.gz patch from Shmoo.com...
http://airsnort.shmoo.com/orinocoinfo.html

Then I downloaded the kernel source, created the necessary symbolic link and started compiling the patch...
Code:
apt-get install kernel-source-2.4.27
cd /usr/src/
bunzip2 kernel-source-2.4.27.tar.bz2
tar -xvf kernel-source-2.4.27.tar
ln -s /usr/src/kernel-source-2.4.27 /lib/modules/2.4.27-1-386/build

tar -xzvf orinoco-0.13e.tar.gz
cd orinoco-0.13e
make
Here is where everything goes bad... the make command returns tons of errors, but I can't scroll back all the way to the beginning. The problem seems to start with /lib/modules/2.4.27-1-386/build/include/linux/types.h

Most of the errors say "warning: data definition has no type or storage class"

It doesn't stop there - the errors continue in both hermes.c and hermes.h

Note, the card does work in "regular" mode. Any ideas as to how I can solve these issues?

Thanks in advance.
 
Old 05-04-2005, 10:52 PM   #2
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
So I decided to start over with a fresh install of Debian Sarge (2.4.27-1-386), which currently has a working orinoco_cs driver. However, I’m still having an issue when patching the orinoco_cs for monitor mode.

This time I followed Kismet's orinoco HOWTO...
http://www.kismetwireless.net/HOWTO-orinoco-drivers.txt

And I downloaded the orinoco_0.13e-rfmon-dragorn3.dff patch…
http://www.kismetwireless.net/download.shtml#orinoco

Here is what is happening...
Code:
cd /usr/src/kernel-source-2.4.27/drivers/net/wireless/
patch -p1 --dry-run < /usr/src/orinoco-0.13e-rfmon-dragorn3.dff

patching file hermes.c
patching file orinoco.c
Hunk #1 FAILED at 458.
Hunk #2 succeeded at 737 (offset 8 lines).
Hunk #3 succeeded at 917 (offset 8 lines).
Hunk #4 succeeded at 958 (offset 8 lines).
Hunk #5 succeeded at 1711 (offset 3 lines).
Hunk #6 succeeded at 1728 (offset 3 lines).
Hunk #7 succeeded at 1739 (offset 3 lines).
Hunk #8 succeeded at 1770 (offset 3 lines).
Hunk #9 succeeded at 1850 (offset 4 lines).
Hunk #10 succeeded at 2412 (offset 4 lines).
Hunk #11 succeeded at 2515 (offset 4 lines).
Hunk #12 succeeded at 3685 (offset 4 lines).
Hunk #13 succeeded at 4081 (offset 4 lines).
Hunk #14 succeeded at 4178 with fuzz 2 (offset 4 lines).
Hunk #15 succeeded at 4409 (offset 3 lines).
Hunk #16 succeeded at 4436 (offset 2 lines).
Hunk #17 succeeded at 4647 (offset 2 lines).
1 out of 17 hunks FAILED - - saving rejects to file orinoco.c.rej
patching file orinoco.h
Hunk #1 succeeded at 28 (offset -9 lines).
Hunk #2 succeeded at 59 with fuzz 1 (offset -9 lines).
Hunk #3 succeeded at 273 (offset -9 lines).
Hunk #4 succeeded at 323 (offset -9 lines).
I'm not able to find the "orinoco.c.rej" on my system using...
find / -name 'orinoco.c*'

Should I take the risk and try to patch it anyways (without the --dry-run)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting orinoco gold into promiscuous mode danran Linux - Wireless Networking 2 10-23-2005 07:42 PM
Orinoco and monitor mode rafita Linux - Wireless Networking 1 04-11-2005 08:04 PM
Orinoco Classic Gold in Permiscuous mode? Gates1026 Linux - Wireless Networking 3 04-06-2005 03:06 PM
orinoco monitor mode in suse 9.2? evilhomer Suse/Novell 2 01-02-2005 02:39 PM
Patching Orinoco Drivers for Monitor Mode starnix Linux - Wireless Networking 0 08-20-2004 05:36 PM


All times are GMT -5. The time now is 05:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration