|
Pages: [1]
|
 |
|
Author
|
Topic: Hostap for kernel 2.6.16 (Read 6209 times)
|
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
    
Posts: 142
He is right
|
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
|
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: 142
He is right
|
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
|
Guess what, I did the same things like you  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: 142
He is right
|
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
|
sry, I can't be there at the given time... I announce myself again soon.
|
|
|
|
|
Logged
|
|
|
|
|
|
Zero_Chaos
Frequency Guru
Global Moderator
Full Member
    
Posts: 142
He is right
|
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
|
|
|
|
|
|
Logged
|
|
|
|
worg
Newbie

Posts: 4
|
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: 142
He is right
|
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]
|
|
|
 |