Results 1 to 1 of 1

Thread: 9.04 Jaunty ieee802.11 Compiling Issue

  1. #1
    Join Date
    Feb 2008
    Beans
    56

    9.04 Jaunty ieee802.11 Compiling Issue [SOLVED]

    Everything that was brought up in this post was solved perfectly by sambita in another post. Thanks to sambita's work on that, big help!

    So, you'd think with all the documentation and no subsystem and driver updates since 2007 that everything would stay the same, but for some reason I'm have challenges getting packet injection back on my Intel IPW2200 wireless card. I'll go through the steps which I've taken to get the errors that I am.

    I had originally followed this walkthrough in Hardy last year and since it worked, that's what I used this time. There's a lot of other postings on this forum with similar instructions.

    I first tried to make and install the 1.2.18 ieee80211 subsystem. Just an FYI I pointed the terminal to the bash directory because I was getting errors. I figured someone would ask eventually.
    Code:
    sudo make SHELL=/bin/bash
    Checking in /lib/modules/2.6.28-11-generic for ieee80211 components...
    #define CONFIG_IEEE80211_MODULE 1
    #define CONFIG_IEEE80211_CRYPT_WEP_MODULE 1
    #define CONFIG_IEEE80211_CRYPT_CCMP_MODULE 1
    #define CONFIG_IEEE80211_CRYPT_TKIP_MODULE 1
    Above definitions found.  Comment out? [y], n y
    make -C /lib/modules/2.6.28-11-generic/build M=/home/~/wireless/ieee80211-1.2.17 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
      CC [M]  /home/~/wireless/ieee80211-1.2.17/ieee80211_module.o
    /home/~/wireless/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_init’:
    /home/~/wireless/ieee80211-1.2.18/ieee80211_module.c:267: error: ‘proc_net’ undeclared (first use in this function)
    /home/~/wireless/ieee80211-1.2.18/ieee80211_module.c:267: error: (Each undeclared identifier is reported only once
    /home/~/wireless/ieee80211-1.2.18/ieee80211_module.c:267: error: for each function it appears in.)
    /home/~/wireless/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_exit’:
    /home/~/wireless/ieee80211-1.2.18/ieee80211_module.c:296: error: ‘proc_net’ undeclared (first use in this function)
    make[2]: *** [/home/~/wireless/ieee80211-1.2.17/ieee80211_module.o] Error 1
    make[1]: *** [_module_/home/~/wireless/ieee80211-1.2.18] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
    make: *** [modules] Error 2
    So, of course, nothing was created and it. What gives? Of course I get the same result if I tried to make install it.

    You probably already know the error that I got when I get after patching the ipw2200 files.
    Code:
    patch ipw2200-1.2.2/ipw2200.c ipw2200-1.2.2-inject.patch
    patching file ipw2200-1.2.2/ipw2200.c
    Hunk #1 succeeded at 2017 with fuzz 2 (offset 46 lines).
    Hunk #2 succeeded at 11801 (offset 53 lines).
    Code:
    patch ipw2200-1.2.2/Makefile ipw2200-1.2.2-make.patch
    patching file ipw2200-1.2.2/Makefile
    Code:
    cd ../ipw2200-1.2.2
    sudo ./remove-old
    Checking in /lib/modules/2.6.28-11-generic/build/ for ipw2x00 components...
    #define CONFIG_IPW2200_QOS 1
    #define CONFIG_IPW2200_MONITOR 1
    #define CONFIG_IPW2200_RADIOTAP 1
    #define CONFIG_IPW2200_PROMISCUOUS 1
    #define CONFIG_IPW2200_MODULE 1
    Above definitions found.  Comment out? [y], n y
    
    sudo make
    
     ERROR: ieee80211.h not found in '/lib/modules/2.6.28-11-generic/include'.
    
    You need to install the ieee80211 subsystem from http://ieee80211.sf.net
    and point this build to the location where you installed those sources, eg.:
    
    % make IEEE80211_INC=/usr/src/ieee80211/
    
    will look for ieee80211.h in /usr/src/ieee80211/net/
    
    make: *** [check_inc] Error 1
    I thought that by pointing it to the directory that is now the default for the original files that came with Jaunty, it would work. No. The location for that file is this:
    Code:
    sudo make IEEE80211_INC=/usr/src/linux-headers-2.6.28-11/include/linux/
    I had found one person with a similar problem and they were told that they needed to install their linux headers. Another site instructs the user to make sure that the headers are in /usr/src/linux. That made no sense to me what-so-ever since no matter which release of ubuntu I've used there's NEVER been a linux folder under src. It's always been the specific and the generic source headers.

    Anyway, I thought this was all pretty stupid that the make file couldn't find the file, so I did the following:
    Code:
    locate ieee80211.h
    /usr/src/linux-headers-2.6.28-11/include/linux/ieee80211.h
    /usr/src/linux-headers-2.6.28-11/include/net/ieee80211.h
    /usr/src/linux-headers-2.6.28-11-generic/include/config/ieee80211.h
    /usr/src/linux-headers-2.6.28-11-generic/include/linux/ieee80211.h
    At this point I'm not sure what to do. I have NO doubt that the answer is staring me right in the face and I'll laugh when someone tells me what I'm doing wrong.

    And not surprisingly, with all my tinkering eth1 now doesn't get setup on boot. And yes, I made a backup of autoconf.h and restored it to it's original state. So I don't know why the old drivers and subsystems aren't working.

    Just for fun I just also copied the 1pw3.2.fw (I think, I'm in Win now) files into /lib/firmware thinking that the drivers didn't match the firmware, but I'm guessing that's not right. Anyway.

    Thanks folks!
    Last edited by joebrueske; June 15th, 2009 at 12:19 AM. Reason: solved

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •