Aircrack-ng
Welcome, Guest. Please login or register.
August 01, 2010, 02:24:38 am

Login with username, password and session length
Search:     Advanced search
Read forum rules, "Read this before posting". Post that do not respect them will be trashed.
34568 Posts in 6337 Topics by 20712 Members
Latest Member: illino87t
* Home Help Search Login Register
+  Aircrack-ng
|-+  Members only
| |-+  Help
| | |-+  Hostap for kernel 2.6.16
« previous next »
Pages: [1] Print
Author Topic: Hostap for kernel 2.6.16  (Read 6131 times)
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
*****
Posts: 141


He is right


Hostap for kernel 2.6.16
« on: April 06, 2006, 05:19:36 am »

Okay kids, for the love of GOD, lets get it right.

Hostap-driver-0.4.7 is to be used on kernel 2.6.15 and BELOW

Hostap kernel drivers are to be used for kernel 2.6.16 and higher.

This is the way of the world, at least for right now.  I have an injection patch that works for my 2.6.16 kernel, I've had some complaints and when I get a little bit of time I'll work on it, but for most of you it should work fine.

Enable hostap in the kernel, and patch with the patch from http://zerochaos.aircrack-ng.org.  Just "cd /usr/src/linux-<version>/drivers/net/wireless/hostap; patch -p1 < /full/path/to/patch"

Then recompile your kernel, including make clean (not make distclean as this would wipe out your .config)

If you cannot, or are unwilling too, recompile your kernel, for now I suggest not using kernel 2.6.16 for now, I'll work on something more useful later.

-Zero_Chaos

PS> if my patch doesn't work for you, please respond with the kernel version you are using, and a link to the sources. If you are using sources from kernel.org, then only the version number is required.  Thanks.
« Last Edit: April 11, 2006, 04:17:26 am by Zero_Chaos » Logged
gladiac
Jr. Member
**
Posts: 51


Re: Hostap for kernel 2.6.16
« Reply #1 on: April 06, 2006, 09:23:11 pm »

Hello,

I got problems patching my vanilla kernel 2.6.16.1 (which is pretty much the same as 2.6.16+some patches). I dont know why... Heres my patch-output:

hawk:/usr/src/linux# cd drivers/net/wireless/hostap/
hawk:/usr/src/linux/drivers/net/wireless/hostap# patch -p1 --dry-run < /usr/src/lin ux/hostap-kernel-2.6.16.patch
(Stripping trailing CRs from patch.)
patching file hostap_80211_tx.c
Hunk #1 FAILED at 69.
Hunk #2 FAILED at 237.
Hunk #3 FAILED at 408.
3 out of 3 hunks FAILED -- saving rejects to file hostap_80211_tx.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_cs.c
Hunk #1 FAILED at 872.
1 out of 1 hunk FAILED -- saving rejects to file hostap_cs.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_hw.c
Hunk #1 succeeded at 1006 with fuzz 1.
Hunk #2 FAILED at 1061.
Hunk #3 FAILED at 1497.
Hunk #4 FAILED at 3183.
3 out of 4 hunks FAILED -- saving rejects to file hostap_hw.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_ioctl.c
Hunk #1 FAILED at 1104.
Hunk #2 FAILED at 1173.
2 out of 2 hunks FAILED -- saving rejects to file hostap_ioctl.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_main.c
Hunk #1 FAILED at 332.
1 out of 1 hunk FAILED -- saving rejects to file hostap_main.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_pci.c
Hunk #1 FAILED at 49.
1 out of 1 hunk FAILED -- saving rejects to file hostap_pci.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_plx.c
Hunk #1 FAILED at 100.
1 out of 1 hunk FAILED -- saving rejects to file hostap_plx.c.rej
(Stripping trailing CRs from patch.)
patching file hostap_wlan.h
Hunk #1 FAILED at 575.
1 out of 1 hunk FAILED -- saving rejects to file hostap_wlan.h.rej
hawk:/usr/src/linux/drivers/net/wireless/hostap#

Any Ideas why I can't do it?

chris
Logged
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
*****
Posts: 141


He is right


Re: Hostap for kernel 2.6.16
« Reply #2 on: April 07, 2006, 05:42:04 am »

Alright, I've had several complaints that my patch doesn't work against kernel 2.6.16.1.

I downloaded the vanilla kernel 2.6.16.1 from kernel.org, that is the plain kernel, with no patches.

I untarbzip2ed it. tar xvjf linux-2.6.16.1 -C /usr/src

now I have a folder /usr/src/linux-2.6.16.1

I cd to /usr/src/linux-2.6.16.1/drivers/net/wireless/hostap

Now I type "patch -p1 < /usr/src/hostap-kernel-2.6.16.patch" (your patch location may be different)

Guess what, it works, no errors.

Now I understand that patching is not always easy, but I have fscking spelled it out here.... if you are trying to patch the vanilla kernel 2.6.16.1 and you are getting errors, I don't know what to say.... you must have something wrong with the patch, maybe you download on windows and transfer to linux and get control characters, I don't know.... but it does work.

If there is something wrong with the patch on the server, I can work on that, but for me, it works fine....

Just in case the patch I attached is bad somehow.... this one isn't:

http://zerochaos.aircrack-ng.org

-Zero_Chaos
« Last Edit: April 11, 2006, 04:17:56 am by Zero_Chaos » Logged
gladiac
Jr. Member
**
Posts: 51


Re: Hostap for kernel 2.6.16
« Reply #3 on: April 07, 2006, 09:47:04 am »

Guess what, I did the same things like you Smiley
I don't know why this happens. I already patched tons of things. I don't even think that the error is on your side. My dist is debian sid. Maybe they did something to the patching-routines? (no, i don't really believe that) my patch-version is 2.5.9. I also get this error on a vanilla, freshly unpacked 2.6.16 kernel from kernel.org. I also used absolute pathes (which should never mind). I downloaded the patch with wget, no windows downloading and copying. (from http://tinyshell.be/aircrackng/patches/hostap-kernel-2.6.16.patch )

Recapitulating I don't understand what my mistake is. Maybe you want to have a look per ssh?
Logged
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
*****
Posts: 141


He is right


Re: Hostap for kernel 2.6.16
« Reply #4 on: April 07, 2006, 02:54:05 pm »

I should be in #aircrack-ng on irc.freenode.net after 1700 GMT-5.... if you can be there, I'd love to have a look via ssh. If no one can do it but me, something must be wrong....

-Zero_Chaos
Logged
gladiac
Jr. Member
**
Posts: 51


Re: Hostap for kernel 2.6.16
« Reply #5 on: April 07, 2006, 06:42:45 pm »

sry, I can't be there at the given time... I announce myself again soon.
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5905


Re: Hostap for kernel 2.6.16
« Reply #6 on: April 08, 2006, 07:17:36 pm »

Zero_Chaos,

Thanks for the patch, it is much appreciated.

For what is worth, my results are identical to gladiac against the kernel.org sources.  I previously  reworked your patch manually against Fedora Core 5 and generated a new patch: http://tinyshell.be/aircrackng/forum/index.php?action=dlattach;topic=30.0;id=3  Interestingly, this applies cleanly to the kernel.org source.

Methodolgy:

wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.2.tar.bz2

Extact hostap source directory to another directory.

Change to extracted directory.

wget http://tinyshell.be/aircrackng/patches/hostap-kernel-2.6.16.patch

patch -Pn1 --dry-run -i hostap-kernel-2.6.16.patch
Results in the same list of errors that gladiac gets


patch -Np1 --dry-run -i hostap-kernel-2.6.16.fedoraFC5.patch
patching file hostap_80211_tx.c
patching file hostap_cs.c
patching file hostap_hw.c
patching file hostap_ioctl.c
patching file hostap_main.c
patching file hostap_pci.c
patching file hostap_plx.c
patching file hostap_wlan.h

b.
Logged
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
*****
Posts: 141


He is right


Re: Hostap for kernel 2.6.16
« Reply #7 on: April 08, 2006, 08:43:56 pm »

I am killing myself over trying to find out why my patch doesn't work for most people but I can't seem to get it to bug.

Anyone out there that has a problem, and wants it fixed, please, come by irc.freenode.net #aircrack-ng and help me :-)

-Zero_Chaos
Logged
gladiac
Jr. Member
**
Posts: 51


Re: Hostap for kernel 2.6.16
« Reply #8 on: April 09, 2006, 12:54:00 am »

be careful. 2.6.16.2 has a change to hostap that could maybe be troublesome. (i don't think so but maybe)
have a look at http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.16.2 .
Logged
worg
Newbie
*
Posts: 4


WWW
Re: Hostap for kernel 2.6.16
« Reply #9 on: April 10, 2006, 08:08:11 pm »

Nice work guys, I have managed to get it to compile cleanly.  Card seems to be working fine with airodump and reports that it is DeAuthing with aireplay but the physical DeAuth does not occur.  Works fine with Atheros/Madwifi setup.
I am using the 2.6.16.1 and have also tried 2.6.16.2 with the same results.  Any ideas?
Logged
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
*****
Posts: 141


He is right


Re: Hostap for kernel 2.6.16
« Reply #10 on: April 11, 2006, 04:16:10 am »

Alright folks... there were some problems with the upload of my patch, so here is one I did myself... happy hacking :-)

http://zerochaos.aircrack-ng.org

-Zero_Chaos
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Aircrack-ng | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!