you can find ipw2200_rtap_fix.patch here
be sure to read carefully the steps you have to follow in order to compile ipw2200.
you can find ipw2200_rtap_fix.patch here
be sure to read carefully the steps you have to follow in order to compile ipw2200.
Thanks to the OP, this thread provided tons of information about how to get injection to work on ipw2200.
I've had the same problem. Just FYI, if your wireless is screw up to a point where you don't care anymore if injection works(like me >_<), you can check my solution. Took me two days to figure out http://ubuntuforums.org/showthread.php?p=6920127
dox@dox-laptop:~/wifi/patch/ipw2200-1.2.2$ sudo make SHELL=/bin/bash
mkdir -p /home/dox/wifi/patch/ipw2200-1.2.2/tmp/.tmp_versions
make -C /lib/modules/2.6.27-11-generic/build M=/home/dox/wifi/patch/ipw2200-1.2.2 MODVERDIR=/home/dox/wifi/patch/ipw2200-1.2.2/tmp/.tmp_versions modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-11-generic'
CC [M] /home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.o
/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.c: In function ‘ipw_net_set_mac_address’:
/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.c:10697: error: ‘rtap_iface’ undeclared (first use in this function)
/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.c:10697: error: (Each undeclared identifier is reported only once
/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.c:10697: error: for each function it appears in.)
/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.c:10698: error: ‘struct ipw_priv’ has no member named ‘prom_net_dev’
/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.c:10698: error: ‘struct ipw_priv’ has no member named ‘prom_net_dev’
make[2]: *** [/home/dox/wifi/patch/ipw2200-1.2.2/ipw2200.o] Error 1
make[1]: *** [_module_/home/dox/wifi/patch/ipw2200-1.2.2] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-11-generic'
make: *** [modules] Error 2
Ok so i took another whack at it. No luck. Now I am without wifi again. I really would like to play around with injection but I am just having no luck here.
If you are simply interested in getting your wireless working again, you can just open a terminal and type:
The following is a guide on how to get injection, its basically a summarize of all my posts in this thread, i thought it was time to get them all in one organized guide so as to avoid confusion, here it goes.Code:sudo apt-get --reinstall install linux-image-2.6.27-11-generic
First of all open a terminal and enter:
create a directory called wireless in your home folder, just to keep it tidy.Code:sudo apt-get install build-essential linux-headers-`uname -r`
1)Download the zip attached to this post and extract its contents to the "wireless" folder you created. Also Download the ieee80211 subsystem, ieee80211-1.2.18, to the "wireless" folder.
2) Open a terminal and enter:
Steps 3 and 4 have been dismissed, i have left them here only for future reference.Code:cd /home/$USER/wireless tar -xzvf ieee80211-1.2.18.tgz patch ieee80211-1.2.18/ieee80211_tx.c ieee80211_inject-1.2.18.patch patch -p0 < ieee80211-1.2.18-2.6.24.patch
5) In a terminal enter:3) Go inside the ieee80211-1.2.18 folder, you'll see a file called ieee80211_module.c, open it and look for every occurrence of 'proc_net' and change it for 'init_net.proc_net'. For example:
toCode:ieee80211_proc = proc_mkdir(DRV_NAME, proc_net);4) In the files ieee80211_crypt_wep.c and ieee80211_crypt_tkip.cCode:ieee80211_proc = proc_mkdir(DRV_NAME, init_net.proc_net);
substitute every occurrence of '.page' for '.page_link'
For example:
toCode:sg.page = virt_to_page(pos);
Code:sg.page_link = virt_to_page(pos);
*note: Thanks to arturosevilla for this patch, i found it on this postCode:cd /home/$USER/wireless patch ieee80211-1.2.18/ieee80211_wx.c ieee80211_wx.c-2.6.27.patch
6)now type:
I dont know if it is necessary to use sudo, but i did it anyway.Code:cd /home/$USER/wireless/ieee80211-1.2.18 . remove-old sudo make SHELL=/bin/bash sudo make install SHELL=/bin/bash
Good, now you have the ieee80211 subsystem installed, time to install the driver, for this you need to download the following:
ipw2200-1.2.2.tgz
and
firmware v3.0
save them in the "wireless folder"
7) open a terminal and type:
Code:cd /home/$USER/wireless tar -xzvf ipw2200-1.2.2.tgz patch ipw2200-1.2.2/ipw2200.c ipw2200-1.2.2-inject.patch patch ipw2200-1.2.2/Makefile ipw2200-1.2.2-make.patch patch ipw2200-1.2.2/ipw2200.h ipw2200-1.2.2-2.6.24.patch patch ipw2200-1.2.2/ipw2200.c ipw2200_rtap_fix.patch
Now open ipw2200.c with gedit and look for this line(use Ctrl + F to look for it):
below that line we need to write this one:memcpy(priv->mac_addr, addr->sa_data, ETH_ALEN);
Important: do not erase the original line, simply paste the other one below it, so that it looks like this:if (rtap_iface)
memcpy(priv->prom_net_dev->dev_addr, addr->sa_data, ETH_ALEN);
now open a terminal and enter:memcpy(priv->mac_addr, addr->sa_data, ETH_ALEN);
if (rtap_iface)
memcpy(priv->prom_net_dev->dev_addr, addr->sa_data, ETH_ALEN);
Now all is left to do is copy the firmware to the proper directory, open a terminal and type:Code:cd /home/$USER/wireless cd ipw2200-1.2.2 sudo ./remove-old sudo make SHELL=/bin/bash sudo make install SHELL=/bin/bash
reload the module:Code:cd /home/$USER/wireless tar -xzvf ipw2200-fw-3.0.tgz sudo cp ipw2200-fw-3.0/* /lib/firmware/`uname -r`/
And that's it!Code:rmmod ipw2200 sudo modprobe ipw2200 ifconfig eth1 up
If you have any problems while doing this just let me know.
Last edited by sambita; July 20th, 2009 at 11:58 PM. Reason: commands missing in step 7
How do I know which subsystem is correct?
The link i provided (ieee80211-1.2.18 ) should work for you, when i said "in my case" i meant it in case there was a newer version when someone read the post, ill edit that now.
Last edited by sambita; March 25th, 2009 at 10:56 AM.
im having the same issue as dox here
im getting the following
would love to see somone help me get this resolved any help is apreciatedCode:*****@laptop:~/wireless/ipw2200-1.2.1$ sudo ./remove-oldChecking in /lib/modules/2.6.27-11-generic/build/ for ipw2x00 components... *****@laptop:~/wireless/ipw2200-1.2.1$ sudo make SHELL=/bin/bashmkdir -p /home/*****/wireless/ipw2200-1.2.1/tmp/.tmp_versions make -C /lib/modules/2.6.27-11-generic/build M=/home/*****/wireless/ipw2200-1.2.1 MODVERDIR=/home/*****/wireless/ipw2200-1.2.1/tmp/.tmp_versions modules make[1]: Entering directory `/usr/src/linux-headers-2.6.27-11-generic' CC [M] /home/*****/wireless/ipw2200-1.2.1/ipw2200.o /home/*****/wireless/ipw2200-1.2.1/ipw2200.c: In function ‘ipw_handle_mgmt_packet’: /home/*****/wireless/ipw2200-1.2.1/ipw2200.c:8346: error: ‘struct sk_buff’ has no member named ‘mac’ /home/*****/wireless/ipw2200-1.2.1/ipw2200.c: In function ‘ipw_net_set_mac_address’: /home/*****/wireless/ipw2200-1.2.1/ipw2200.c:10645: error: ‘rtap_iface’ undeclared (first use in this function) /home/*****/wireless/ipw2200-1.2.1/ipw2200.c:10645: error: (Each undeclared identifier is reported only once /home/*****/wireless/ipw2200-1.2.1/ipw2200.c:10645: error: for each function it appears in.) /home/*****/wireless/ipw2200-1.2.1/ipw2200.c:10646: error: ‘struct ipw_priv’ has no member named ‘prom_net_dev’ /home/*****/wireless/ipw2200-1.2.1/ipw2200.c:10646: error: ‘struct ipw_priv’ has no member named ‘prom_net_dev’ make[2]: *** [/home/*****/wireless/ipw2200-1.2.1/ipw2200.o] Error 1 make[1]: *** [_module_/home/*****/wireless/ipw2200-1.2.1] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-11-generic' make: *** [modules] Error 2
@machinehead: You're using ipw2200-1.2.1, the patches i provide are for ipw2200-1.2.2
The guide did well for me, but ill follow it once more tomorrow to double check in case somethings wrong in it, causing the mistakes you have.
Sorry for the delay to answer
i did retry with 1.2.2 drivers to no avail getting the same error messages will try agiain tomorrow after ive had more sleep
im really sorry, i found two commands missing in the guide, i edited, the only thing that changed is step 7), The attached tar provides the files needed, it is only the patching of those files that was missing in the guide. Once again i apologize and hope this corrections make it work for you.
Bookmarks