Results 1 to 6 of 6

Thread: Compat Wiress - iwlagn - BT5

  1. #1
    Just burned his ISO
    Join Date
    Oct 2011
    Posts
    3

    Default Compat Wiress - iwlagn - BT5

    Hi everybody.
    I'm in that situation where i've been searching the internet for solutions for days, and tried almost everything ( i say almost, because obviously i haven't tried the things that works yet...).
    So a little introduction:

    Current system: BT5 32-bit - kernel 2.6.38 - a Dell M1530 with an intel Pro 4965 wireless.

    The issue:
    I have an issue with Aircrack-ng.
    I am stuck at channel 1, at all times. i can't make it go to channel 4, for instance. It always says "Fixed Channel mon0: 1".

    What i have discovered so far:

    Everyone agrees that this is a driver issue. Hence everyone with similar problems gets the "update your compat-wireless driver" like this <insert instructions here> (Because there is literally hundres of ways to do that apparently).
    And it feels like i have tried them all, without success.

    So this is what i have done:

    1)
    Code:
     Downloaded the newest version of compat-wireless
     wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
     sudo apt-get install patch
     patch ./net/wireless/chan.c channel-negative-one-maxim.patch 
     make
     sudo make install
     sudo make unload
     sudo reboot
    2)

    - Similar as 1) except with another patch + the channel-negative-one-maxim.patch

    3)
    - Similar as 1) and 2) except no patches used.

    4)

    Reinstall aircrack-ng, and made sure it is version 1.1 (which i am currently still not sure about... but i guess/hope that is standard with BT5)

    What usually fails:
    I've gotten quite a few errors trying the things mentioned above, currently i can only remember this particular one though:
    when i try "make unload" i usually get something about 'compat' in use, and then a "FATAL"-error...


    Skipping a step:
    Whomever will chose to help me here will probably ask for the following

    lsmod:
    Code:
    Module                  Size  Used by
    ip6table_filter         1283  0 
    ip6_tables             11915  1 ip6table_filter
    iptable_filter          1310  0 
    ip_tables              10534  1 iptable_filter
    x_tables               14551  4 ip6table_filter,ip6_tables,iptable_filter,ip_tables
    nvidia              10582777  32 
    arc4                    1141  2 
    iwlagn                185755  0 
    iwlcore                64140  1 iwlagn
    snd_hda_codec_idt      55705  1 
    mac80211              248838  2 iwlagn,iwlcore
    snd_hda_intel          21656  0 
    snd_hda_codec          79287  2 snd_hda_codec_idt,snd_hda_intel
    snd_hwdep               5424  1 snd_hda_codec
    snd_pcm_oss            36427  0 
    snd_mixer_oss          13581  1 snd_pcm_oss
    joydev                  8649  0 
    snd_pcm                68875  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
    snd_seq_dummy           1358  0 
    snd_seq_oss            26216  0 
    snd_seq_midi            4460  0 
    cfg80211              152934  3 iwlagn,iwlcore,mac80211
    snd_rawmidi            18745  1 snd_seq_midi
    r852                    9576  0 
    sm_common               6704  1 r852
    snd_seq_midi_event      5720  2 snd_seq_oss,snd_seq_midi
    snd_seq                45875  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    dell_wmi                1413  0 
    sdhci_pci               7479  0 
    dell_laptop             7796  0 
    nand                   45788  2 r852,sm_common
    nand_ids                3822  1 nand
    snd_timer              17835  2 snd_pcm,snd_seq
    uvcvideo               60089  0 
    sdhci                  16342  1 sdhci_pci
    nand_ecc                3732  1 nand
    rfkill                 14987  2 cfg80211,dell_laptop
    snd_seq_device          5281  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    videodev               64006  1 uvcvideo
    psmouse                52655  0 
    sparse_keymap           3098  1 dell_wmi
    snd                    50345  12 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    soundcore               6016  1 snd
    serio_raw               3712  0 
    mtd                    20073  2 sm_common,nand
    snd_page_alloc          6769  2 snd_hda_intel,snd_pcm
    wmi                     8740  1 dell_wmi
    lp                      7373  0 
    mac_hid                 3029  0 
    parport                29468  1 lp
    dcdbas                  5557  1 dell_laptop
    usbhid                 35213  0 
    hid                    67599  1 usbhid
    nouveau               629204  0 
    ttm                    54611  1 nouveau
    drm_kms_helper         30726  1 nouveau
    drm                   171919  3 nouveau,ttm,drm_kms_helper
    i2c_algo_bit            4852  1 nouveau
    intel_agp               9614  0 
    ahci                   18378  2 
    sky2                   44659  0 
    intel_gtt              13296  1 intel_agp
    libahci                19579  1 ahci
    video                  10930  1 nouveau
    agpgart                27382  5 nvidia,ttm,drm,intel_agp,intel_gtt




    I would appreciate some help on the matter.
    In advance, thank you.

  2. #2
    Moderator g0tmi1k's Avatar
    Join Date
    Feb 2010
    Posts
    1,771

    Default Re: Compat Wiress - iwlagn - BT5

    I had issues with my Intel 5100 - same driver ~ www.backtrack-linux.org/forums/backtrack-5-hardware-compatibility-list/45608-intel-corporation-wifi-link-5100-wifi-802-11a-b-g-n-intel-5100-iwlagn.html

    I got it working by the follow commands (The latest drivers didn't work for me).
    Code:
    apt-get update 
    apt-get upgrade 
    
    prepare-kernel-sources 
    cd /usr/src/linux 
    cp -rf include/generated/* include/linux/
    
    cd /tmp
    wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-03-14.tar.bz2
    tar -jxf compat*
    cd compat-wireless*
    
    wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
    patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
    
    wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
    patch ./net/wireless/chan.c channel-negative-one-maxim.patch
    
    ./scripts/driver-select iwlagn
    make
    make install
    make unload
    
    reboot


    Hope it helps.
    Last edited by g0tmi1k; 10-20-2011 at 03:44 PM. Reason: Added BT5 kernel sources
    Have you...g0tmi1k?

  3. #3
    Just burned his ISO
    Join Date
    Oct 2011
    Posts
    3

    Default Re: Compat Wiress - iwlagn - BT5

    Thank you for replying. I just did what you said, and got an error:

    Code:
    root@bt:~# cd /tmp/
    root@bt:/tmp# wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-03-14.tar.bz2
    --2011-10-20 16:16:30--  http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-03-14.tar.bz2
    Resolving wireless.kernel.org... 78.46.109.217
    Connecting to wireless.kernel.org|78.46.109.217|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 4548362 (4.3M) [application/octet-stream]
    Saving to: `compat-wireless-2011-03-14.tar.bz2'
    
    100%[======================================>] 4,548,362    679K/s   in 7.8s    
    
    2011-10-20 16:16:38 (568 KB/s) - `compat-wireless-2011-03-14.tar.bz2' saved [4548362/4548362]
    
    root@bt:/tmp# tar -jxf compat-wireless-2011-03-14.tar.bz2 
    root@bt:/tmp# cd compat-wireless-2011-03-14/
    root@bt:/tmp/compat-wireless-2011-03-14# wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
    --2011-10-20 16:17:49--  http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
    Resolving patches.aircrack-ng.org... 213.186.33.2, 2001:41d0:1:1b00:213:186:33:2
    Connecting to patches.aircrack-ng.org|213.186.33.2|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1049 (1.0K) [text/plain]
    Saving to: `mac80211.compat08082009.wl_frag+ack_v1.patch'
    
    100%[======================================>] 1,049       --.-K/s   in 0s      
    
    2011-10-20 16:17:49 (5.59 MB/s) - `mac80211.compat08082009.wl_frag+ack_v1.patch' saved [1049/1049]
    
    root@bt:/tmp/compat-wireless-2011-03-14# patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch patching file net/mac80211/tx.c
    Hunk #1 succeeded at 781 (offset 104 lines).
    root@bt:/tmp/compat-wireless-2011-03-14# wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
    --2011-10-20 16:18:46--  http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
    Resolving patches.aircrack-ng.org... 213.186.33.2, 2001:41d0:1:1b00:213:186:33:2
    Connecting to patches.aircrack-ng.org|213.186.33.2|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1021 [text/plain]
    Saving to: `channel-negative-one-maxim.patch'
    
    100%[=====================================================================================================================================================================>] 1,021       --.-K/s   in 0s      
    
    2011-10-20 16:18:46 (45.7 MB/s) - `channel-negative-one-maxim.patch' saved [1021/1021]
    
    root@bt:/tmp/compat-wireless-2011-03-14# patch ./net/wireless/chan.c channel-negative-one-maxim.patch 
    patching file ./net/wireless/chan.c
    Hunk #1 succeeded at 82 (offset 33 lines).
    Hunk #2 succeeded at 134 (offset 55 lines).
    root@bt:/tmp/compat-wireless-2011-03-14# ./scripts/driver-select iwlagn
    Processing new driver-select request...
    Backing up makefile: Makefile.bk
    Backing up makefile: drivers/net/wireless/Makefile.bk
    Backup exists: Makefile.bk
    Backing up makefile: net/wireless/Makefile.bk
    Backing up makefile: drivers/net/Makefile.bk
    Backing up makefile: drivers/ssb/Makefile.bk
    Backing up makefile: drivers/misc/eeprom/Makefile.bk
    Backup exists: Makefile.bk
    root@bt:/tmp/compat-wireless-2011-03-14# make
    ./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
    make -C /lib/modules/2.6.38/build M=/tmp/compat-wireless-2011-03-14 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.38'
    
      WARNING: Symbol version dump /usr/src/linux-source-2.6.38/Module.symvers
               is missing; modules will have no dependencies and modversions.
    
      CC [M]  /tmp/compat-wireless-2011-03-14/compat/main.o
      CC [M]  /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.o
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c: In function ‘tty_set_termios’:
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c:93: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c:93: error: (Each undeclared identifier is reported only once
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c:93: error: for each function it appears in.)
    make[3]: *** [/tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.o] Error 1
    make[2]: *** [/tmp/compat-wireless-2011-03-14/compat] Error 2
    make[1]: *** [_module_/tmp/compat-wireless-2011-03-14] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-2.6.38'
    make: *** [modules] Error 2
    The version of compat-wireless seems broken, or something similar.
    Any other suggestions?

    - Stuffnstuff

  4. #4
    Moderator g0tmi1k's Avatar
    Join Date
    Feb 2010
    Posts
    1,771

    Default Re: Compat Wiress - iwlagn - BT5

    I think I missed out the bit to prepared BT5 kernel sources before hand...
    Code:
    apt-get update
    apt-get upgrade
    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/
    cd /tmp
    wget.... See the other post.

    Edit
    Ive updated the first post - with complete commands
    Last edited by g0tmi1k; 10-20-2011 at 03:45 PM.
    Have you...g0tmi1k?

  5. #5
    Just burned his ISO
    Join Date
    Oct 2011
    Posts
    3

    Default Re: Compat Wiress - iwlagn - BT5

    Still not working i'm afraid. The make still displays the same error. Patches were applied perfectly, and prepare-kernel-sources said i already used the current version.
    Terminal print below

    Code:
    root@bt:~# apt-get update
    (---- A lot of printouts, had to shorten the post to 10000 chars - but no errors, installs, or similar here ----)
    root@bt:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages have been kept back:
      backtrack-utils framework3 linux-image set tcpreplay
    0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
    root@bt:~# prepare-kernel-sources[*] apt-getting linux-source...
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-source is already the newest version.
    The following packages were automatically installed and are no longer required:
      python-qt3 libqt3-mt linux-source-2.6.38
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.[*] extracting sources, please wait[*] doing stuff...
    cp: missing destination file operand after `/boot/'
    Try `cp --help' for more information.
    scripts/kconfig/conf --silentoldconfig Kconfig
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
      CALL    scripts/checksyscalls.sh
    ln: creating symbolic link `/lib/modules/2.6.38/build/linux': File exists[*] tada!
    root@bt:~# cd /usr/src/linux
    root@bt:/usr/src/linux# cp -rf include/generated/* include/linux/
    root@bt:/usr/src/linux# cd /tmp/
    root@bt:/tmp# wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-03-14.tar.bz2
    --2011-10-20 19:18:18--  http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-03-14.tar.bz2
    Resolving wireless.kernel.org... 78.46.109.217
    Connecting to wireless.kernel.org|78.46.109.217|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 4548362 (4.3M) [application/octet-stream]
    Saving to: `compat-wireless-2011-03-14.tar.bz2'
    
    100%[=====================================================================================================================================================================>] 4,548,362    607K/s   in 8.3s    
    
    2011-10-20 19:18:26 (536 KB/s) - `compat-wireless-2011-03-14.tar.bz2' saved [4548362/4548362]
    
    root@bt:/tmp# tar -jxf compat-wireless-2011-03-14.tar.bz2 
    root@bt:/tmp# cd compat-wireless-2011-03-14/
    root@bt:/tmp/compat-wireless-2011-03-14# wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
    --2011-10-20 19:19:58--  http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
    Resolving patches.aircrack-ng.org... 213.186.33.2, 2001:41d0:1:1b00:213:186:33:2
    Connecting to patches.aircrack-ng.org|213.186.33.2|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1049 (1.0K) [text/plain]
    Saving to: `mac80211.compat08082009.wl_frag+ack_v1.patch'
    
    100%[=====================================================================================================================================================================>] 1,049       --.-K/s   in 0s      
    
    2011-10-20 19:20:01 (34.9 MB/s) - `mac80211.compat08082009.wl_frag+ack_v1.patch' saved [1049/1049]
    
    root@bt:/tmp/compat-wireless-2011-03-14# patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch 
    patching file net/mac80211/tx.c
    Hunk #1 succeeded at 781 (offset 104 lines).
    root@bt:/tmp/compat-wireless-2011-03-14# wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
    --2011-10-20 19:20:37--  http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
    Resolving patches.aircrack-ng.org... 213.186.33.2, 2001:41d0:1:1b00:213:186:33:2
    Connecting to patches.aircrack-ng.org|213.186.33.2|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1021 [text/plain]
    Saving to: `channel-negative-one-maxim.patch'
    
    100%[=====================================================================================================================================================================>] 1,021       --.-K/s   in 0s      
    
    2011-10-20 19:20:37 (95.5 MB/s) - `channel-negative-one-maxim.patch' saved [1021/1021]
    
    root@bt:/tmp/compat-wireless-2011-03-14# patch ./net/wireless/chan.c channel-negative-one-maxim.patch 
    patching file ./net/wireless/chan.c
    Hunk #1 succeeded at 82 (offset 33 lines).
    Hunk #2 succeeded at 134 (offset 55 lines).
    root@bt:/tmp/compat-wireless-2011-03-14# ./scripts/driver-select iwlagn
    Processing new driver-select request...
    Backing up makefile: Makefile.bk
    Backing up makefile: drivers/net/wireless/Makefile.bk
    Backup exists: Makefile.bk
    Backing up makefile: net/wireless/Makefile.bk
    Backing up makefile: drivers/net/Makefile.bk
    Backing up makefile: drivers/ssb/Makefile.bk
    Backing up makefile: drivers/misc/eeprom/Makefile.bk
    Backup exists: Makefile.bk
    root@bt:/tmp/compat-wireless-2011-03-14# make
    ./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
    make -C /lib/modules/2.6.38/build M=/tmp/compat-wireless-2011-03-14 modules
    make[1]: Entering directory `/usr/src/linux-source-2.6.38'
    
      WARNING: Symbol version dump /usr/src/linux-source-2.6.38/Module.symvers
               is missing; modules will have no dependencies and modversions.
    
      CC [M]  /tmp/compat-wireless-2011-03-14/compat/main.o
      CC [M]  /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.o
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c: In function ‘tty_set_termios’:
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c:93: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c:93: error: (Each undeclared identifier is reported only once
    /tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.c:93: error: for each function it appears in.)
    make[3]: *** [/tmp/compat-wireless-2011-03-14/compat/compat-2.6.39.o] Error 1
    make[2]: *** [/tmp/compat-wireless-2011-03-14/compat] Error 2
    make[1]: *** [_module_/tmp/compat-wireless-2011-03-14] Error 2
    make[1]: Leaving directory `/usr/src/linux-source-2.6.38'
    make: *** [modules] Error 2


    The plot thickens.

  6. #6
    Just burned his ISO
    Join Date
    Oct 2011
    Posts
    1

    Angry Re: Compat Wiress - iwlagn - BT5

    I have not tried the patches yet, but I have a more interesting piece of information. When I first got this laptop (MSI GT660-US) I was using BT4 and had no problems with wireless network or the Aircrack-ng siute. I also updated to the BT5 release as soon as it was available, and used it from a 4GB USB stick for some time with no troubles at all. I decided to make the system a dual boot with BT5 and Win7. I stilll had no problems other than I could never get the sound in BT5 to work. Both the wireless and the Aircrack-ng suite continued to work perfectly. When I
    started back at school I realized that as awesome as BT5 was it was not a really good OS to be hooking to the schools wifi, or for doing school projects in general. I decided to make a disk image and then wipe the OS. I then installed Fedora 15 as I really liked the gnome3 more than the unity offering from Ubuntu. Well it has been about 2 or 3 months and I was going to show one of my friends the gerix-wifi-cracker-ng tool. I downloaded the BT5_R1 iso and made a USB. It took me 3 tries just to get it to boot, then when it did come up, the gerix would not start. I checked the network manager and I was able to see the networks just fine, so I knew the wifi was working. Thinking that it was something new in the R1 release, I went back and downloaded the original BT5 release. I ended up with the same problem. Gerix will not start, and if I try to run airodump-ng it says that the card is in Fixed mode on channel -1. What could have possibly changed from 3 months ago when it used to work fine?

    Taking it a step further, I even went back and downloaded the BT4 final iso and tried to boot into that. This time gerix starts, it sees the wlan0 device, and it can put it in monitor mode, but it is unable to see any wireless networks. When I try 'ifconfig wlan0 up' I get an error that says that 'SIOSFFLAG: file or folder does not exist'.

    Now I know for a fact that all 3 of these releases have worked flawlessly on my computer before, so what could have changed? I never had to install any patches, or modify any scripts in aircrack, it just worked.

Similar Threads

  1. Iwlagn/Intel Centrino works very well
    By VulpiArgenti in forum Working Hardware
    Replies: 3
    Last Post: 01-06-2012, 12:56 AM
  2. PCMCIA wiress che supporta MASTER MODE
    By ale88sv in forum Supporto Hardware
    Replies: 4
    Last Post: 09-10-2009, 01:13 PM
  3. Wiress using ath0 instead of wifi0?
    By zuric in forum OLD Newbie Area
    Replies: 4
    Last Post: 04-06-2008, 04:42 PM

Posting Permissions

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