Author
|
Topic: Intel iwlwifi drivers with injection * WORKING with 3945 & 4965 cards * (Read 182055 times)
|
freon23
Newbie

Posts: 7
|
i've disabled the rf switch support in Networking ---> < > RF switch subsystem support , but the message about disabled radio appears still in the log. I've been looking into the Device Drivers --->\[*\] Network device support ---> Wireless LAN ---> Intel PRO/Wireless 3945ABG/BG Network Connection too, but there is no configuration option for the switch. Grep didn't find any other relevant lines with keyword RF, so I assume configured the kernel correctly. I don't know, if it is relevant, but if I push the rf switch button to turn the wifi off, this appears in my dmesg:
usb 1-1: USB disconnect, address 2
and if I turn it on again:
hub 3-0:1.0: unable to enumerate USB device on port 1 usb 1-1: new full speed USB device using uhci_hcd and address 3 usb 1-1: configuration #1 chosen from 1 choice
The same lines as above used to appear while using any kernel (2.6.22-2.6.25).
|
|
|
|
|
Logged
|
|
|
|
|
.NetRolller 3D
|
That certainly looks weird. I guess you should post that on the linux-wireless mailing list.
|
|
|
|
|
Logged
|
|
|
|
freon23
Newbie

Posts: 7
|
.NetRolller 3D: Thanks for your time and patience indeed, I'll post into the mailing list as you suggest.
|
|
|
|
|
Logged
|
|
|
|
|
JMF
|
Do you have any bluetooth chip in your computer? that might be it...
|
|
|
|
|
Logged
|
|
|
|
freon23
Newbie

Posts: 7
|
JMF: Yes I have. You are right, this explains it: Bus 001 Device 003: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module]
|
|
|
|
|
Logged
|
|
|
|
Ryanmt
Newbie

Posts: 2
|
Has anybody got a guide on getting this working on ubuntu. Im abit confused as to what i need to install.
|
|
|
|
|
Logged
|
|
|
|
|
.NetRolller 3D
|
Ryanmt: it works on ubuntu, as long as you know how to update the kernel (Ubuntu has 2.6.24, but at least 2.6.25 is required). Joker has posted instructions on this.
|
|
|
|
|
Logged
|
|
|
|
alezmad
Newbie

Posts: 4
|
Thanks for .NetRolller 3D. It was extreamly useful the information you gave me. I can start iwl3945, but I use ipwraw for injection because iwl3945 can't get an association (ACK) in my computer. However, I use iwl3945 for everything else. I sometimes need to restart the iwl3945 driver (rmmod and modprobe) because it stops running well, I can't understand its behavior but I can set it up opening ipwraw before and starting a capture with ipwraw, then the message "no such device" is not showed so I can use my iwl drivers normally... I am not a professional user but I try to keep improving.
Thanks for all contributors.
|
|
|
|
|
Logged
|
|
|
|
|
.NetRolller 3D
|
alezmad: did you install all patches correctly? Do you have 2.6.25 installed? (2.6.24 won't work, not even with the compat package!)
Also, use the 2008-05-20 version of compat-wireless, as iwlwifi is changing rapidly in later versions, due to the new iwl5000 card. I will post a patch for the new version once things calm down in iwlwifi.
|
|
|
|
|
Logged
|
|
|
|
alezmad
Newbie

Posts: 4
|
Thanks .NetRoller3D. I gonna install 2008-05-20 version. Archlinux Kernel 2.6.25 Firmware: iwlwifi-3945-ucode (2.14.1.5-2) compat-wireless-2008-05-20http://www.orbit-lab.org/kernel/compat-wireless-2.6/2008/05/compat-wireless-2008-05-20.tar.bz2iwlwifi-injection-2.6.25.patchhttp://tinyshell.be/aircrackng/forum/index.php?action=dlattach;topic=2898.0;id=331mac80211_2.6.25-wl_frag.patchhttp://patches.aircrack-ng.org/mac80211_2.6.25-wl_frag.patchThen, I will report my results. Patching with iwlwifi-injection-2.6.25.patch: bash-3.2$ pwd /home/alezmad/Desktop/compat-wireless-2008-05-20/compat-wireless-2008-05-20/drivers/net/wireless/iwlwifi bash-3.2$ patch -p5 -i iwlwifi-injection-2.6.25.patch patching file iwl3945-base.c Hunk #1 succeeded at 2542 (offset -203 lines). Hunk #2 FAILED at 2585. Hunk #3 succeeded at 2607 (offset -203 lines). Hunk #4 FAILED at 6279. Hunk #5 FAILED at 6828. Hunk #6 FAILED at 7150. Hunk #7 FAILED at 8200. 5 out of 7 hunks FAILED -- saving rejects to file iwl3945-base.c.rej patching file iwl-3945.h Hunk #1 succeeded at 881 (offset -1 lines). patching file iwl4965-base.c Hunk #1 FAILED at 2870. Hunk #2 FAILED at 2913. Hunk #3 FAILED at 2934. Hunk #4 FAILED at 6903. Hunk #5 FAILED at 7469. Hunk #6 FAILED at 7806. Hunk #7 FAILED at 8981. 7 out of 7 hunks FAILED -- saving rejects to file iwl4965-base.c.rej patching file iwl-4965.c Hunk #1 FAILED at 3659. Hunk #2 FAILED at 3977. 2 out of 2 hunks FAILED -- saving rejects to file iwl-4965.c.rej can't find file to patch at input line 463 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ru8p linux-2.6.25.4.old/drivers/net/wireless/iwlwifi/iwl-4965.h linux-2.6.25.4/drivers/net/wireless/iwlwifi/iwl-4965.h |--- linux-2.6.25.4.old/drivers/net/wireless/iwlwifi/iwl-4965.h 2008-05-15 17:00:12.000000000 +0200 |+++ linux-2.6.25.4/drivers/net/wireless/iwlwifi/iwl-4965.h 2008-05-19 16:02:37.000000000 +0200 -------------------------- File to patch: ^C
I can patch it by hand but I'd rather doing it automatically.
|
|
|
|
« Last Edit: May 31, 2008, 05:42:23 pm by alezmad »
|
Logged
|
|
|
|
|
.NetRolller 3D
|
Patch the compat package, not the kernel. The patch looks like a kernel patch, but it isn't.
|
|
|
|
|
Logged
|
|
|
|
alezmad
Newbie

Posts: 4
|
I extracted the compat package, after that I patched the package using the extracted folder. My kernel is here "/lib/modules/2.6.25-ARCH" So I think I use the patch correctly.
Why doesn't the patch work properly? I used the versions which you recommended me. Note that some hunks were succeded and I use this command "patch -p5 -i iwlwifi-injection-2.6.25.patch" in this extracted directory "/home/alezmad/Desktop/compat-wireless-2008-05-20/compat-wireless-2008-05-20/drivers/net/wireless/iwlwifi" where iwl3945-base.c and others are located. "patching file iwl3945-base.c Hunk #1 succeeded at 2542 (offset -203 lines). Hunk #2 FAILED at 2585. (...)"
If there isn't any other option, I can patch it manually. Thanks NetRoller for your useful help.
|
|
|
|
« Last Edit: June 01, 2008, 12:38:00 am by alezmad »
|
Logged
|
|
|
|
|
.NetRolller 3D
|
Oops... I meant it the other way around. The patch you were using is for the "bare" kernel, without the compat-wireless package. If you use that, then compat-wireless is not needed at all. However, don't forget that 2.6.25 needs the 2.6.24.4 version of the frag patch - the 2.6.25-wl one is only for 2.6.25-wl and compat-wireless, not for the regular 2.6.25.
|
|
|
|
|
Logged
|
|
|
|
alkar
Newbie

Posts: 2
|
Firstly, many thanks and kudos for the work on iwlwifi guys!
No on my problem, I have an iwl3945 using kernel 2.6.25. I applied the 2.6.24.4 fragmentation patch and the iwlwifi-injection-2.6.25 patch on the bare kernel, rebuilt the modules and still no luck at getting packet injection.
Have I got it all wrong? Do you need me to supply other info?
|
|
|
|
|
Logged
|
|
|
|
|
.NetRolller 3D
|
alkar: do you use 1.0-beta2 or newer? Older versions won't work, due to the lack of radiotap support.
|
|
|
|
|
Logged
|
|
|
|
|
 |