Modify

Opened 3 years ago

Last modified 6 weeks ago

#742 new defect

airodump-ng: channel handling is broken.

Reported by: anonymous Owned by:
Priority: critical Milestone: 1.2
Component: general Version: trunk
Keywords: Cc:

Description (last modified by misterx)

airodump-ng doesn't work well with drivers from compat-wireless (or wireless-testing).

No matter if you use one vif or more than one, with the command:

airodump-ng -c <channel number> <monitor interface>

you got something like:

 CH  9 ][ Elapsed: 24 s ][ 2010-05-22 03:15 ][ fixed channel mon0: -1

...

In the example airodump-ng was launched with -c 9 but airodump-ng says channel -1, and with aireplay-ng you got something like this:

03:15:37  mon0 is on channel -1, but the AP uses channel 9



It could be related with the new channel handling:

Attachments (4)

0001-aireplay-ng-add-an-option-to-ignore-channel-1-error.patch (2.4 KB) - added by fercerpav@… 2 years ago.
channel_minus_one_warning_aireplay-ng-1.1.patch (771 bytes) - added by anonymous 2 years ago.
Ignore channel -1 error in aireplay-ng-1.1 and emit a warning.
0001-aireplay-ng-add-an-option-to-ignore-channel-1-error.2.patch (2.4 KB) - added by anonymous 22 months ago.
Don-t-exit-when-the-AP-and-our-interface-are-on-diff.patch (2.3 KB) - added by clopez 7 months ago.
Don't exit when the AP and our interface are on different channels

Download all attachments as: .zip

Change History (161)

comment:1 follow-up: Changed 3 years ago by misterx

  • Description modified (diff)
  • Milestone changed from 1.3 to 1.2
  • Priority changed from minor to critical

comment:2 Changed 3 years ago by misterx

I tried compat-wireless 2.6.34 on a 2.6.34rc6 (Backtrack 4 r1) but I can't reproduce your bug (ath5k and rtl8187).

Could you describe me the different steps and what distro you used as well as the name of the driver you used. Did you kill all network managers?

comment:4 Changed 3 years ago by anonymous

There is no problem if you use the drivers that come in a vanilla kernel (2.6.34 and below).

There is no problem if you use the drivers that come in the _stable_ branch of compat-wireless.

But there are at least two branch of compat-wireless and the issue appears if you use the "bleeding edge" of compat-wireless.

wireless.kernel.org/en/users/Download

wireless.kernel.org/en/users/Download#Compat-wireless_release_types

The issue can be reproduced with a tarball like this:

wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-05-22.tar.bz2



Download / compile / install / load drivers and the steps are these:

With mac80211-based drivers you have by default a interface wlan0 in managed mode and down.

1) Create a monitor interface with airmon-ng

# airmon-ng start wlan0

now you have two interfaces: wlan0 (mode managed and down) and mon0 (mode monitor and up)

2) Launch airodump-ng in a fixed channel (i.e. channel 6)

# airodump-ng -c 6 mon0

You get something like this:

 CH  6 ][ Elapsed: 24 s ][ 2010-05-23 19:21 ][ fixed channel mon0: -1
...

and if you use aireplay-ng you get something like this:

...
19:21:36  Waiting for beacon frame (BSSID: XX:XX:XX:XX:XX:XX) on channel -1
19:21:37  mon0 is on channel -1, but the AP uses channel 6

The channel hopping with airodump-ng is working well the issue appears when you fixed a channel.

I can confirm the issue with drivers rt2x00 (rt73usb, rt2500pci), zd1211rw and ath5k (may be all mac80211-based drivers are affected).

comment:5 follow-ups: Changed 3 years ago by anonymous

Just a mini update:

The issue is still there but there are two possible solutions:


V1: http://marc.info/?l=linux-wireless&m=127476407611861&w=4


V2: http://marc.info/?l=linux-wireless&m=127541691302338&w=4


The entire thread: http://marc.info/?t=127476414900004&r=1&w=4

comment:6 in reply to: ↑ 5 ; follow-up: Changed 3 years ago by talesam@…

please, for which kernel version serves the V1 and V2? I tried to apply both kernel versions 2.6.33 and 2.6.34-r1 and not succeeded. My wireless card is rt73usb. Grateful!

Replying to anonymous:

Just a mini update:

The issue is still there but there are two possible solutions:


V1: http://marc.info/?l=linux-wireless&m=127476407611861&w=4


V2: http://marc.info/?l=linux-wireless&m=127541691302338&w=4


The entire thread: http://marc.info/?t=127476414900004&r=1&w=4

comment:7 in reply to: ↑ 6 Changed 3 years ago by anonymous

I am having the same problem.

Is there yet a solution?

Replying to talesam@…:

please, for which kernel version serves the V1 and V2? I tried to apply both kernel versions 2.6.33 and 2.6.34-r1 and not succeeded. My wireless card is rt73usb. Grateful!

Replying to anonymous:

Just a mini update:

The issue is still there but there are two possible solutions:


V1: http://marc.info/?l=linux-wireless&m=127476407611861&w=4


V2: http://marc.info/?l=linux-wireless&m=127541691302338&w=4


The entire thread: http://marc.info/?t=127476414900004&r=1&w=4

comment:8 Changed 3 years ago by ubuntosaure@…

Same problem in ubuntu 10/10 alpha 2 with the following cards:
intel 3945
atheros ar928x (ath9k)

I use the kernel and aircrack-ng in the official repositories of ubuntu.
Linux 2.6.35-6
aircrack-ng 1.1

comment:9 Changed 3 years ago by misterx

There are 2 possibilities:

  • In the driver: Improve patch "Path for fixed channel issue in aircrack-ng suite [V2]" so that it can be included in linux-wireless (see entire thread: http://marc.info/?t=127476414900004&r=1&w=4 ).
  • In OSdep by using the channel from the radiotap headers in packets.

comment:10 Changed 3 years ago by Roadkill

Backtrack 4 with Kernel 2.6.35 monX fixed channel is still -1

comment:11 Changed 3 years ago by anonymous

That means that the problem has arrived to vanilla kernels. Now all branches are affected (wireless-testing, wireless-next-2.6, wireless-2.6, linux-next, linux-2.6, ...).

comment:12 Changed 3 years ago by anonymous

BackTrack 4 R1 with a RT2870/3070 chipset adapter and compat-wireless I have this issue as well:/

comment:13 Changed 3 years ago by weaknetlabs

compiling new kernel for distro, i can confirm the failure above. When I use

airmon-ng start <dev> 

I get

[: <integer here>: x: unexpected operator

I have tried a few patches from the above links all on clean builds/tarballs and channel still says "fixed -1"

reverting back to 2.6.34 for functionality.

comment:14 follow-up: Changed 3 years ago by Klemens

I use Backtrack 4. I installed new kernel 2.6.35 and now i have always "fixed channel mon0: -1"

comment:15 in reply to: ↑ 14 Changed 3 years ago by Roadkill

Replying to Klemens:

I use Backtrack 4. I installed new kernel 2.6.35 and now i have always "fixed channel mon0: -1"

this should fix it for you

comment:16 follow-up: Changed 3 years ago by Roadkill

backtrack forums howto upgrade-backtrack4-r1-kernel-2-6-35-package-fix-damn-wireless-issues

comment:17 Changed 3 years ago by weaknetlabs

I followed the directions from Roadkill and it saved my development! I am back on track now, The only things i did differently was I used the fakeroot/make-kpkg (old fashioned Debian way) and there were a few typos, like "/usr/usr/src/linux-2.6.35" and at one point he called it a 2.5.35 kernel! Other than that, i am back on track with development. Thank you. The only issue I have now is with airmon-ng. I still get "[: 374: x: unexpected operator" when running, yet it works and Airodump-ng can channel hop and lock onto a channel using ath5k.
Thanks again!
~Douglas.

comment:18 Changed 3 years ago by anonymous

Same problem, fixed channel mon0: -1 help

comment:19 in reply to: ↑ 16 Changed 3 years ago by beini

Replying to Roadkill:

backtrack forums howto upgrade-backtrack4-r1-kernel-2-6-35-package-fix-damn-wireless-issues

where is it? i can not found it...

comment:20 Changed 3 years ago by anonymous

It can be found here: (replace the xx with tt)

hxxp://webcache.googleusercontent.com/search?q=cache:Gj7h84cvZQQJ:www.backtrack-linux.org/forums/backtrack-howtos/31555-upgrade-backtrack4-r1-kernel-2-6-35-package-fix-damn-wireless-issues-%3B.html+roadkill+%22I+pulled+my+packages+offline+and+added+compile+instruction%22+to+achieve+the+same+end+result&cd=1&hl=en&ct=clnk&gl=uk&client=firefox-a

comment:21 Changed 3 years ago by egonny

2 out of 2 hunks FAILED for me.
I'm not using Backtrack, but Ubuntu 10.04 .

comment:22 Changed 3 years ago by misterx

egonny, make sure you patched in the correct directory. We have a tutorial for patching in the wiki. Next time, don't forget to give more details, especially the commandline and also the directory you're in.

comment:23 follow-up: Changed 3 years ago by egonny

I applied it in usr/src/linux-headers-2.6.34-24 (tried -p0 and -p1).

comment:24 in reply to: ↑ 23 Changed 3 years ago by beini

Replying to egonny:

I applied it in usr/src/linux-headers-2.6.34-24 (tried -p0 and -p1).

Manually modify the code, I've tested successfully.

comment:25 Changed 3 years ago by egonny

Yeah, turns out you have to apply it to compat-wireless before doing make and make install. How dumb of me :-X.

Everything works fine now, thank you!

comment:26 Changed 3 years ago by anonymous

i installed the new ubuntu distribution, aircrack and compat-wireless drivers and i have the same problem with airodump. i saw about a patch but i don't know how to apply it and where... can u help me? thanks

comment:28 follow-ups: Changed 3 years ago by anonymous

I'm experiencing the same issue with ARCH 2.6.35 kernel using the 3945abg driver. There doesn't appear to be a "chan.c" file to patch anywhere on my filesystem. Any ideas?

comment:29 Changed 3 years ago by anonymous

I also am using an ARCH 2.6.35 kernel, with the p54usb driver, getting the -1 error.

comment:30 in reply to: ↑ 28 Changed 3 years ago by anonymous

Replying to anonymous:

I'm experiencing the same issue with ARCH 2.6.35 kernel using the 3945abg driver. There doesn't appear to be a "chan.c" file to patch anywhere on my filesystem. Any ideas?

Look into manualling compiling and patching with the ABS. Plenty of doc on Arch's Wiki.

comment:31 follow-up: Changed 3 years ago by laggywizard

im not understanding this, can some one post a link with the correct kernel or update required? thank you

comment:32 Changed 3 years ago by misterx

laggywizard, please use the forum for such question.

Anyway, here is a step-by-step howto fix it:

comment:33 in reply to: ↑ 31 ; follow-up: Changed 3 years ago by anonymous

Replying to laggywizard:

im not understanding this, can some one post a link with the correct kernel or update required? thank you

Installing the 2.6.34 kernel also fixed the issue for me.

comment:34 follow-up: Changed 3 years ago by EncipherRum

I was using BT (kernell 2.6.34) and the last compat-wireless (.36), and i kept getting this -1 channel error, even with the patch. I'm on a 4965.

And i tried the native BT4 R1 (boot into ram).

And it worked.

comment:35 Changed 3 years ago by valecillosjg@…

I have the same issue in archlinux with ath5k driver.

lspci output:

01:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)

uname -r output:

2.6.35-ARCH

comment:36 Changed 3 years ago by anonymous

Same issue here on Ubuntu 2.6.35-22-generic with ath9k, but not in Backtrack 4 R1. Works when compiling own kernel with patch

comment:37 Changed 3 years ago by INVENT

Same issue with ArchLinux? 2.6.35-ARCH and:
wlan0 Intel 4965/5xxx iwlagn - [phy0]
wlan1 ZyDAS 1211 zd1211rw - [phy2]

comment:38 in reply to: ↑ 28 Changed 3 years ago by anonymous

Replying to anonymous:

I'm experiencing the same issue with ARCH 2.6.35 kernel using the 3945abg driver. There doesn't appear to be a "chan.c" file to patch anywhere on my filesystem. Any ideas?

You need to download compat-wireless, the file is there. find /net/wireless directory within the compat-wireless directory, move the patch file there. and patch -Np3 -i <patch file>

comment:39 Changed 3 years ago by anonymous

Hi,
I'm have the same issue using Gentoo with 2.6.35.
Realtek Semiconductor Corp. RTL8187B Wireless 802.11g 54Mbps Network Adapter

comment:41 Changed 3 years ago by anonymous

I have the same issue using Ubuntu Maverick (aircrack-ng 1.1.1, zd1211rw, 2.6.35-22-generic). Is this going to be fixed in trunk any time soon? I'm not sure if I can patch it myself...

comment:42 follow-ups: Changed 3 years ago by anonymous

For those on Maverick try this kernel:
kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/

2.6.34-020634-generic #020634 SMP Mon May 17 20:34:55 UTC 2010 i686 GNU/Linux
Worked great for me on an phy0: Atheros AR9285 Rev:2 mem=0xf8e20000, irq=16

comment:43 Changed 3 years ago by anonymous

patches.aircrack-ng.org/channel-negative-one-maxim.patch

Work perfectly for me with ubuntu10.04 and 2.6.36-rc7 kernel. I hope this will go upstream.
Thanks.

comment:44 Changed 3 years ago by anonymous

Will this patch go upstream ? Maybe the next version of aircrack-ng will work out of the box again ?

comment:45 follow-up: Changed 3 years ago by misterx

no. It has been discussed in the linux-wireless mailing list.

comment:46 in reply to: ↑ 45 Changed 3 years ago by anonymous

Replying to misterx:

no. It has been discussed in the linux-wireless mailing list.

Can you link the discussion? plz

comment:47 in reply to: ↑ 42 Changed 3 years ago by anonymous

Replying to anonymous:

For those on Maverick try this kernel:
kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/

2.6.34-020634-generic #020634 SMP Mon May 17 20:34:55 UTC 2010 i686 GNU/Linux
Worked great for me on an phy0: Atheros AR9285 Rev:2 mem=0xf8e20000, irq=16

this worked perfect for me with my netbook, running ubuntu 10.10 with an Atheros chip. thank you, no more stuck in channel -1 for me lol this was an easy install to by the way

comment:48 follow-ups: Changed 3 years ago by anonymous

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

comment:50 Changed 3 years ago by anonymous

Please, excuse my english!

After install the patchs above, my system falls down (hung) when I connect to Internet.
I follow instructions from last reply (wget, patch, make, etc...).

My system:
Ubuntu 10.10 64 bits
Acer Aspire 5732z
Pentium Dual-Core CPU T4400 @ 2.20GHz
Atheros AR928X Wireless Network Adapter (PCI-Express)
Kernel 2.6.35-22-generic x86_64

thank You for your attention
(Again, sorry for my english)

comment:51 Changed 3 years ago by anonymous

Same issue here. After the install and reboot, my laptop stop working...

My system: Sony Vaio VGN-FW160D, Core 2Duo P8400, 4Gb ram
OS: Ubuntu 10.10 32Bit
Wifi Card: Atheros AR928X

comment:52 Changed 3 years ago by snowsurfer69@…

It worked great for me with my intel card! My channel isn't stuck on -1 anymore!

Thanks a lot!

comment:53 in reply to: ↑ 34 Changed 3 years ago by akmaxiii@…

Replying to EncipherRum:

I was using BT (kernell 2.6.34) and the last compat-wireless (.36), and i kept getting this -1 channel error, even with the patch. I'm on a 4965.

And i tried the native BT4 R1 (boot into ram).

And it worked.

hey i am on 4965
how did u get it to work?
backtrack 4 r1? i am a nubby can you please explain? thank you

comment:54 in reply to: ↑ 42 Changed 3 years ago by vlad

I insist with this solution, zero problems so far with 2.6.34 kernel, also I don't know if it's related but signals are way more stronger than with 2.6.35, also I detect more Wlans with 2.6.34.

Replying to anonymous:

For those on Maverick try this kernel:
kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/

2.6.34-020634-generic #020634 SMP Mon May 17 20:34:55 UTC 2010 i686 GNU/Linux
Worked great for me on an phy0: Atheros AR9285 Rev:2 mem=0xf8e20000, irq=16

comment:55 in reply to: ↑ 48 Changed 3 years ago by ProfesorAlga

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Thank you!
Worked like a charm on my desktop and my eeepc-901, Ubuntu 10.04 2.6.32-21-generic & Ubuntu 10.04 2.6.35.4 respectively, including modifications to recognize Ubiquity WifiStation? Ext ;)

comment:56 Changed 3 years ago by anonymous

It works, thanks the person, who has worked out this problem!!!
I have got only one problem the wirless light on my thinkpad T400 with the wirless card 5100 AGN is flashing on and off. Why is it? (It means it is sending something!!!) So I tried to find out and started to catch the data over wireshark. I find out that i am sending the whole time something about..... from source adresse: Askey... to destination adress buffalo.... what is it?!?!?Does anyone know something about that?!?!

comment:57 in reply to: ↑ 48 ; follow-up: Changed 3 years ago by anonymous

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Works very well! Thank you!

comment:58 Changed 3 years ago by anonymous

The patch don't work for me in Ubuntu 10.10 64 bits, with Atheros Atheros AR928X, and neither with a D-Link DWL-G122 802.11g Wireless USB-Adapter (with aircrack-ng 1:1.1-1 and aircrack-ng_1.0-1_amd64). Perhaps could be an Ubuntu problem? In my laptop, system crash after installing the patch.

comment:59 Changed 3 years ago by Aker666

I've an Intel Wifi Link 5100 AGN in a Ubuntu 10.10 64 bits and it doesn´t works

comment:60 Changed 3 years ago by Hackman

We released a Linux distro where that problem should be fixed ;)

http://www.zevenos.com/neptune

comment:61 in reply to: ↑ 57 Changed 3 years ago by anonymous

Replying to anonymous:

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Works very well! Thank you!

Works perfect for me as well!!! Pal, you're THE BEST, great advice, useful details. A nubby is speaking, but need it for work. Thank's again!!!

comment:62 Changed 3 years ago by hackthis

ya this didnt work for me either as I also am using Ubuntu 10.10 64 bits with Atheros and Broadcom drivers.. Actually now NONE of my wireless cards work.. The Atheros one tries to work sometimes, then when it tries to connect my laptop crashes just like the other dude above me! haha.. maybe its because we both r using 64 bits.. lol.. nice

comment:63 Changed 3 years ago by anonymous

maybe it's due to 64bit?
The patch also didn't work for my 64bit Fedora 14 installation

while a tool like besside-ng does work fine

comment:64 in reply to: ↑ 49 Changed 2 years ago by kate

Didn't work for me either. but I have a 32bit OS, kubuntu 10.04 kernel version
2.6.32-25-generic with the wireless card 3945ABG.

Followed the link from ubuntuforums.org

comment:65 in reply to: ↑ 33 Changed 2 years ago by anonymous

Replying to anonymous:

Replying to laggywizard:

im not understanding this, can some one post a link with the correct kernel or update required? thank you

Installing the 2.6.34 kernel also fixed the issue for me.

So if you are on ubuntu shouldn't booting that ( 2.6.32-24) kernel work then? I tried but saw no results. I have rt73usb will the patch named compat-wireless-2010-10-16.tar.bz2 work on this card ? Thank you very much BTW I am using 2.6.35-23-generic

comment:66 Changed 2 years ago by tgo@…

2.6.36.1 vanilla with the patch mention fixed issue for me. thanks.

comment:67 in reply to: ↑ 48 Changed 2 years ago by pyvlad

Replying to anonymous:
:D Thanks. On an Acer Aspire One here, with a custom 3.6.37rc2 running in Arch. Applied the patches to the corresponding kernel files, recompiled, installed, and aircrack works perfectly. Well, I haven't completely tested it, but airmon no longer jumps to channel -1.

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

comment:68 in reply to: ↑ 48 Changed 2 years ago by anonymous

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Dudeee!!!!!
you are a freaking genious!
ty so much =)

comment:69 Changed 2 years ago by anonymous

Since upgrading to 2.6.36 (from 2.6.35) every time I run airodump-ng the system crashes. Ralink RT73usb is the driver I use.

comment:70 Changed 2 years ago by jsed728307@…

I installed just the channel-negative-one-maxim.patch, not the first wi_frag+ack.patch.. but followed all other instructions. Ubuntu 10.10, kernel 2.6.35-24.42, Acer Aspire AO751h netbook, ath5k module, AR5001. Thank you very much for the instructions, everything seems to work, injection and channel handling. I tried to get the first patch, but received a 404 error so i skipped it. Anyways, seems to work fine without it.

comment:71 Changed 2 years ago by quinametin

I've installed the patches but after that my bcm4322 stopped working :(
"insmod wl
Unknown symbol lib80211_get_crypto_ops (err -22)
FATAL: Error inserting wl (/lib/modules/2.6.35-22-generic/updates/dkms/wl.ko): Invalid argument."

After uninstalling compat-wireless I can use bcm4322 but the problem of -1 channel remains...
Any ideas?
Thanks

comment:72 Changed 2 years ago by XayOn

quinametin, have you tried with older compat-wireless version? I've spotted some problems with recent ones.

comment:73 in reply to: ↑ 48 Changed 2 years ago by anonymous

this worked for me too.
configuration:
Intel 3945ABG chipset with iwl3945 driver
Mint 10, with 2.6.35 kernel

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

comment:74 Changed 2 years ago by anonymous

I too am experiencing the 'fixed channel mon0: -1' problem.

My specs:

Ubuntu 10.10 O/S
RTL8187L chipset


Jay

comment:75 Changed 2 years ago by wujtruj

Hi!

I have tried this solution 2 days ago:

I've got it working! (= Setup. OS: Ubuntu 10.10 Kernal: 2.6.35-22-generic-pae WiFi?? >Card: Intel iwlwifi iwlagn Intel Corporation WiFi?? Link 5100 How? wget
(...)
KLIB=/lib/modules/$(uname -r)/build make sudo make install sudo make unload sudo >reboot Hope it helps someone ~SquirrelScript??

Result: channel is no longer fixed, but instead I get kernel panic :(

I am running Ubuntu 10.10 x86_64, kernel 2.6.35-24-generic, wifi card: Atheros AR928X

comment:76 Changed 2 years ago by jwtjoker1984@…

i cant figure this out im running a 32 bit ubuntu 10.10 (2.6.35-24-generic) netbook remix on a acer aspire one d255 my wlan cards (atheros 9271 & Intel 4965/5xxx) bolth work and inject but bolth get stuck on chan-1 i installed the compat wireless backports (backports-modules-compat-wireless-2.6.36-generic) through the software center using aircranck-ng 1.1 kinda new to linux and aircrack but i would like to know if i could use the patches above and if not what should i do ?any help greatly appreciated

comment:77 Changed 2 years ago by ras82x@…

Same issue, 'fixed channel: -1' on my Lenovo G555 (ath9k), with experimental 2.6.36 and 2.6.37 Debian kernels, iwconfig also fails to change mon0 interface's channel/frequency.
With stable kernel 2.6.32 all works fine.
Going to try suggested patches, will reply afterwards.

comment:78 Changed 2 years ago by fercerpav@…

Attached was an aireplay-ng patch that allows to ignore the mismatch
when kernel is unable to report the used channel.

comment:79 Changed 2 years ago by jwtjoker1984@…

sweet now i just need to figure out how to use it

comment:80 Changed 2 years ago by jwtjoker1984@…

can anyone assist me as to how to install these patches please im new to linux and my specs are above

comment:81 Changed 2 years ago by anonymous

jwtjoker1984, try this:

www.aircrack-ng.org/doku.php?id=install_aircrack#latest_svn_development_sources

comment:82 Changed 2 years ago by Ad Fundum

I would also like to know how to apply the added patch, as I am new to Ubuntu and am using a Live CD for now.

comment:83 in reply to: ↑ 48 Changed 2 years ago by JasonT

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Hello guys, i'm on Intel 4956AGN and Mint 10 at first i got this fixed channel symptom too but after trying the suggestion above it works and now my problem is i could associate with the AP it would just stuck at "Sending Association Request [ACK]" without the :-) face... Is there anything i have missed? Greatly appreciated

Changed 2 years ago by anonymous

Ignore channel -1 error in aireplay-ng-1.1 and emit a warning.

comment:84 in reply to: ↑ 48 Changed 2 years ago by anonymous

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Works great!!! Thanks... But now computer gets a random black screen and I have to reboot. :( What do I do I revert back to it previous state??? Like what ever setting were prior to this.

Thanks.

comment:85 Changed 2 years ago by anonymous

How do I apply the "channel_minus_one_warning_aireplay-ng-1.1.patch"?
Can anybody confirm that this patch is working?

Thanks!

comment:86 Changed 2 years ago by anonymous

yyyup. system crash when running airodump-ng :\

comment:87 Changed 2 years ago by anonymous

yeah same probs here, applyed the "channel_minus_one_warning_aireplay-ng-1.1.patch", system crash when running airodump-ng. debian squeeze 2.6.37 with brcm80122, channelhopping works without patch, -9 also works, -c <channel> gives the "minus one" bug.

comment:88 Changed 2 years ago by anonymous

This hasn't been fixed yet???? Come on it's like a one line fix. Just ignore the error and charge forward.

comment:89 in reply to: ↑ 48 ; follow-up: Changed 2 years ago by anonymous

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Thanks, it worked for me too !
Intel 3945ABG, kernel 2.6.35-25-generic, ubuntu 10.10, aircrack-ng 1.1

comment:90 in reply to: ↑ 89 Changed 2 years ago by anonymous

Replying to anonymous:

Replying to anonymous:

I've got it working! (=
Setup.
OS: Ubuntu 10.10
Kernal: 2.6.35-22-generic-pae
WiFi? Card: Intel iwlwifi iwlagn Intel Corporation WiFi? Link 5100

How?

wget hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget hxxp://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#* FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#
* REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo reboot

Hope it helps someone
~SquirrelScript?

Thanks, it worked for me too !
Intel 3945ABG, kernel 2.6.35-25-generic, ubuntu 10.10, aircrack-ng 1.1

What should i do with theese patch?
Wich file should i patch? Sorry but I'm a noob with linux...

comment:91 follow-up: Changed 2 years ago by kim

is this fixed in backtrack 4 r2?

comment:92 in reply to: ↑ 91 Changed 2 years ago by anonymous

Replying to kim:

is this fixed in backtrack 4 r2?

Not As Far As I've experienced still -1 on bt4 r2!!!!

A New nubi
HElp The Nubis !!

comment:93 follow-up: Changed 2 years ago by anonymous

try: "service network-manager stop" before putting your card into monitor mode

comment:94 Changed 2 years ago by trongduc3707@…

When using fedora 13, i used it normally. But now, i change to fedora 14 (2.6.35), it has some trouble with this error...
My wifi card is Intel 5100 VGN.
I've tried some suggest in this topic but unsucessfull
Anyone can help me?

comment:95 in reply to: ↑ 48 Changed 2 years ago by anonymous

It worked to me :) after 1 month :D

comment:96 Changed 2 years ago by Netmaster <v.plessky@…>

Can someone confirm that this bug has been fixed in BackTrack 4 R2?

I'd like to install working aircrack-enabled distro to HDD.
Slitaz and Pentoo work fine on my test computer/WLAN card.
But Pentoo rejects to install. And Slitaz can't work with my graphics adapter.

comment:97 follow-up: Changed 2 years ago by anonymous

So now that solutions have been proposed, is this bug going to be fixed

  1. In aircrack? If so, which version?
  2. In the main linux kernel? If so, which version?
  3. In distros?
  4. Or will we have to continue to patch things forever?

comment:98 Changed 2 years ago by anonymous

After upgrading to latest Ubuntu 10.10 i got the "channel fixed -1" error.

http://ubuntuforums.org/showpost.php?p=9985581&postcount=1

helped me out and worked on both Intel 4965/5xxx and RTL8187.

Important note:
If i start airplay-ng BEFORE i started airodump-ng, the "channel fixed -1" is still there.

Solution:
First i started "airodmp-ng -c <channel>", now i can use "aireplay-ng"!

comment:99 in reply to: ↑ 97 Changed 2 years ago by anonymous

Replying to anonymous:

So now that solutions have been proposed, is this bug going to be fixed

  1. In aircrack? If so, which version?
  2. In the main linux kernel? If so, which version?
  3. In distros?
  4. Or will we have to continue to patch things forever?

Solutions don't work in some cards/chipsets (e.g., Atheros). Patchs causes system crashed (Ubuntu 10.10 64 bits in my case, but are more reports).

comment:100 Changed 2 years ago by anonymous

im using a white macbook with os ubuntu everything works until the fixed channel airport doesnt work so i bought a usb wifi adapter a tl-wn422g from tp-link and it works but it goes form wlan0 to mon0 and from the channel i choose it goes to fixed channel -1 im sorry to ask ive been looking for 2 days now is this normal? are there any solutions? please help.

comment:101 Changed 2 years ago by anonymous

i'm new to the linux world, and i just can't figure out how to get the channel to change, i read through the whole topic and just lost it, hehe, if someone could actually tell me what i should do specifically, how is something i'll figure out with time, but what is the problem

comment:102 Changed 2 years ago by Tractor

Hi, well i just discovered something with a big help of aircrack-ng community.
If you have got this silly bug with fixed channel -1 u can try maybe subversion of aircrack-ng ?
How to get it ? simple .....
uninstall aircrack-ng from ur system.
You will need such libraries :
subversion
gcc
openssl-devl
(depends which distro are you using the libraries name may vary)
Ok you got all ur libraries ready than type this in terminal :

svn co hxxp://trac.aircrack-ng.org/svn/trunk aircrack-ng
cd aircrack-ng
make
make install

after installation completed you can update airodump-ng, the proper way to do it will be displayed at the end of installation.
And now when you wanna use aireplay-ng just type command as usual and at the end add : --ignore-negative-one

should do the trick.
some info here :
hxxp://trac.aircrack-ng.org/wiki/Sources
hxxp://www.aircrack-ng.org/doku.php#download

TBH i have just checked if aireplay-ng does work, and it does,
I havent checked injections cracking and etc.
I heard there is problem with handshake, but havent tested it yet
Anyway good luck coz u will need it :)) (in links xx change to tt)

comment:103 follow-up: Changed 2 years ago by Tractor

svn co http :trac.aircrack-ng.org/svn/trunk aircrack-ng
cd aircrack-ng
make
make install

comment:104 in reply to: ↑ 103 Changed 2 years ago by ProfesorAlga

Replying to Tractor:

svn co http :trac.aircrack-ng.org/svn/trunk aircrack-ng
cd aircrack-ng
make
make install

Mmmh... sorry, it doesn't worked for me. Your guide is correct, i followed it, but airodump showed the damned -1... I had to patch compat wireless drivers ... Thanx anyway !

comment:105 Changed 2 years ago by Tractor

Hi there,
Yea if you will install latest subversion of aircrack-ng, you will still get "fixed channel: -1" in airodump-ng BUT ignore it. You are still able to catch handshake and etc.
But to check the handshake you will have to type :
aircrack-ng *cap

*.cap = your cap file saved by airodump when tried to catch handshake.

It is 100% working solution :) but you can still patch compat-wireless drivers.
This guid is more for ppl who got proper wireless drivers with they kernel.
Example : OpenSUSE 11.3 & 11.4 with Intel3945.

Best Regards,
Tractor

comment:106 Changed 2 years ago by anonymous

Experiencing the same problem here with RaLink? RT2860 card on Ubuntu 10.10 - airodump seems to set channel and capture fine, but records the "fixed channel -1" error and renders aireplay unusable as described. Airodump in scanning mode triggers no such error but aireplay seems to whether or not the channel has been specified elsewhere (airmon start or airodump)...

comment:107 Changed 2 years ago by leonardo,guilherme@…

From iwconfig manual, section "freq/channel"

" When using Managed mode, most often the Access Point dictates the channel and the driver may refuse the setting of the

frequency. In Ad-Hoc mode, the frequency setting may only be used at initial cell creation, and may be ignored when join‐
ing an existing cell."

Setting the card to monitor mode before starting airmon-ng fixes, at least for intel cards.

comment:108 Changed 2 years ago by Clovis

Anyone can post a complete step how to do this?
I am totally confuse with all these discussions.

  1. Download the compat-wireless source code (hxxp://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2) , and extract it to a cleanly made directory.
  2. Download this patch (hxxp://patches.aircrack-ng.org/channel-negative-one-maxim.patch)

what else should i do?
Please help me by posting the commands I should use.

Thanks a lot.

comment:109 Changed 2 years ago by misterx

Clovis,

  1. This is a bug tracker, please use the forum for such questions
  2. We won't provide a step by step
  3. You can find the explanation in the wiki. Search for compat-wireless tutorial.

comment:110 Changed 2 years ago by anonymous

ubuntu 11.04 64bit kernel 2.6.38-8-generic still has the problem.

comment:111 Changed 2 years ago by anonymous

I tried steps above....no luck on the latest Ubuntu build...

comment:112 Changed 2 years ago by anonymous

Currently running
2.6.39-gentoo i686
Aireplay-ng 1.1

Error still exists, going to try the maxim negative patch with latest compat-wireless-2011-05-16.

Will report progress.

comment:113 Changed 2 years ago by anonymous

Managed to solve the -1 chan issue with the following setup/method.

Gentoo
Kernel 2.6.39
ath9k module

download compat-wireless-2.6.39-rc6-1
patching channel-negative-one-maxim.patch
build compat-wireless and reboot system

I no longer get the -1 channel error or aireplay moaning about the AP using -1

:) Happy days
Dom

comment:114 Changed 23 months ago by Raul

I'm trying to use that at FC14 with kernel (2.6.35.13-92.fc14.x86_64) but doesn't work, I already tested compat-wireless-2.6.39 , but still not work.

comment:115 Changed 23 months ago by SevanEl@…

Having Ubuntu 11.04 32-bit with 2.6.38-8-generic kernel on my SONY VAIO SZ220, which has a Intel Corporation PRO/Wireless 3945ABG network adapter, I experience the same negative one problem.

Using iwl3945 as driver, I did as fallows, to eliminate any possible interference, as suggested by previous posts:

sudo service network-manager stop
sudo service avahi-daemon stop
sudo service upstart-udev-bridge stop
sudo pkill wpa_supplicant
	
sudo ifconfig wlan0 up
sudo iwconfig wlan0 Channel $CHANNEL
sudo ifconfig wlan0 down
sudo iwconfig wlan0 Mode Monitor

sudo airmon-ng start wlan0 $CHANNEL

sudo aireplay-ng --arpreplay -b $AP_BSSID -h $SOURCE_MAC -x 50 mon0

sudo airodump-ng --channel $CHANNEL --write data  mon0

But, I keep getting "mon0 is on channel -1, but the AP uses channel 6" from aireplay-ng and "fixed channel mon0: -1" from airodump-ng. I have to add that just by stopping the network-manager service before calling airmon-ng, and in spite the airodump-ng's negative one fixed channel report, airodump-ng seems to work on my specified channel, since the output for airodump-ng is showing APs on the specified channel only. It even works the same way without specifying the channel on airmon-ng call, but none of the above precautions affect on the aireplay-ng's exit with error.

BTW, I am using aircrack-ng version 1:1.1-1.1.

PS: Going to check other suggestions, and I'll keep you posted.

comment:116 Changed 23 months ago by raubtaube

Same problem here with Ubuntu 11.04 32-bit with 2.6.38-10-generic kernel. Using an atheros chip with ath9k driver. Also tried to install channel-negative-one-maxim.patch but make stopped with errors.

comment:117 Changed 23 months ago by joecoolman

I'm sad. I've updated to compat-wireless-3.0-rc4-1 and htc_9271.fw

Like the previous post, I have errors when patching, i.e.

patching with mac80211.compat08082009.wl_frag+ack_v1.patch provoques:

Hunk #1 FAILED at 677.
1 out of 1 hunk FAILED -- saving rejects to file net/mac80211/tx.c.rej

patching with channel-negative-one-maxim.patch provoques:

patching file ./net/wireless/chan.c
Hunk #1 FAILED at 49.
Hunk #2 FAILED at 76.
2 out of 2 hunks FAILED -- saving rejects to file ./net/wireless/chan.c.rej

Anybody can suggest me any solution ? please.

comment:118 Changed 22 months ago by Preston Lee

Another issue confirmation for Ubuntu 11.04 x64 with a ra73usb. I can't believe this issue has gone unresolved for the so long. Perhaps it would be time to bring up an upstream discussion again? This bug makes a long of core aircrack use cases undoable.

comment:119 Changed 22 months ago by anonymous

Care to update us on this issue misterx?

comment:120 Changed 22 months ago by anonymous

Still unchanged ?

comment:121 Changed 22 months ago by Karit

I had the same problem with the chanel -1, but I followed the instuctions of Tractor and aircrack-ng is working out of the box right now!

I have PCLinuxOS with kernel 2.6.38.8 and my wireless network is an Atheros AR242x / AR542x.

I think that the key for solving this problem is putting the --ignore-negative-one argument every time you use the aireplay-ng command.

PD: I didn't apply any patch!

comment:122 in reply to: ↑ 93 Changed 21 months ago by anonymous

Replying to anonymous:

try: "service network-manager stop" before putting your card into monitor mode

helped me with an Intel 5100, thanks

comment:123 Changed 21 months ago by anonymous

sudo apt-get install libssl-dev
sudo apt-get install subversion
svn co http :trac.aircrack-ng.org/svn/trunk aircrack-ng
cd aircrack-ng
make
make install
airodump-ng-oui-update

comment:124 in reply to: ↑ 5 Changed 21 months ago by anonymous

Replying to anonymous:

I use Ubuntu GNU / Linux 2.6.38-11-generic 64bit and have tried the following:

wget hxxp: / / wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2 jxf tar-compat-wireless-2010-10-cd compat 16.tar.bz2 -wireless-2010-10-16 wget hxxp: / / patches.aircrack-ng.org/mac80211.compat08082009.wl_frag ack_v1.patch + patch-p1 <+ mac80211.compat08082009.wl_frag ack_v1.patch wget hxxp: / / patches. aircrack-ng.org/channel-negative-one-maxim.patch patch. / net / wireless / chan.c channel-negative-one-maxim.patch gedit scripts / update-initramfs FIND LINE * # 13: KLIB = / lib/modules/2.6.31-wl/build # * REPLACE WITH: KLIB = / lib / modules / $ (uname-r) / build make sudo make install sudo make unload sudo reboot

but still the error fixed channel mon0: -1
what else can I try?

comment:125 Changed 21 months ago by anonymous

I use Ubuntu 11.04 64 bits, Atheros ath9k, and aircrack-ng from the Ubuntu repos.
The only that work for me is the next:

  • Install subversion (from Synaptic, for example, or with "sudo apt-get install")
  • Install libssl-dev (and eventually, any package needed)
  • Get aircrack-ng for subversion:

subversion svn co http :trac.aircrack-ng.org/svn/trunk aircrack-ng

  • And compile and install:

cd aircrack-ng
make
make install (or: "sudo make install", if "make install" don't work for you)

  • Use the option '--ignore-neagtive-one', e.g.:

sudo aireplay-ng -3 -b BSSID -h MAC --ignore-negative-one mon0

(of course, you must replace "BSSID", "MAC" and "mon0" for the convenient for you).

This is the only that work for me. (Note: previously, I uninstall aircrack-ng with Synaptic.)

comment:126 follow-ups: Changed 21 months ago by anonymous

I use Ubuntu 11.04 64 bits, Atheros ath9k, and aircrack-ng from the Ubuntu repos. The only that work for me is the next:

  • Install subversion (from Synaptic, for example, or with "sudo apt-get install")
  • Install libssl-dev (and eventually, any package needed)
  • Get aircrack-ng for subversion:

svn co http: trac.aircrack-ng.org/svn/trunk aircrack-ng

  • And compile and install:

cd aircrack-ng

make

make install (or: "sudo make install", if "make install" don't work for you)

  • Use the option '--ignore-neagtive-one', e.g.:

sudo aireplay-ng -3 -b BSSID -h MAC --ignore-negative-one mon0

(of course, you must replace "BSSID", "MAC" and "mon0" for the convenient for you).

This is the only that work for me. (Note: previously, I uninstall aircrack-ng with Synaptic.)

comment:127 Changed 20 months ago by anonymous

Any solutions ?! ubuntu 11.04 64bit

comment:128 in reply to: ↑ 126 Changed 20 months ago by Frankie

Replying to anonymous:

I use Ubuntu 11.04 64 bits, Atheros ath9k, and aircrack-ng from the Ubuntu repos. The only that work for me is the next:

  • Install subversion (from Synaptic, for example, or with "sudo apt-get install")
  • Install libssl-dev (and eventually, any package needed)
  • Get aircrack-ng for subversion:

svn co http: trac.aircrack-ng.org/svn/trunk aircrack-ng

  • And compile and install:

cd aircrack-ng

make

make install (or: "sudo make install", if "make install" don't work for you)

  • Use the option '--ignore-neagtive-one', e.g.:

sudo aireplay-ng -3 -b BSSID -h MAC --ignore-negative-one mon0

(of course, you must replace "BSSID", "MAC" and "mon0" for the convenient for you).

This is the only that work for me. (Note: previously, I uninstall aircrack-ng with Synaptic.)

Thank you, it works ;) Yo can use the new option with airodump-ng also.

comment:129 Changed 20 months ago by Seba-Arg

I have the same problem with

Fedora 14 x64

.
Driver rt73usb

comment:130 Changed 20 months ago by anonymous

Everyone,

Don't keep repeating "I also have this problem with aircrack-ng 1.1". The developers know that, they know the cause and they have a workaround. It will be fixed in the next release.

In the meanwhile, either use trunk or 1.1 with one of the patches attached here. Do not patch compat-wireless. It is not needed or recommended.

comment:131 Changed 20 months ago by misterx

Well, patching compat-wireless makes it easier. Plus you have up to date drivers.

comment:132 Changed 19 months ago by anonymous

i am using ubuntu 11.10 64 bits i will try the patch

comment:133 in reply to: ↑ 126 Changed 19 months ago by anonymous

Replying to anonymous:

I use Ubuntu 11.04 64 bits, Atheros ath9k, and aircrack-ng from the Ubuntu repos. The only that work for me is the next:

  • Install subversion (from Synaptic, for example, or with "sudo apt-get install")
  • Install libssl-dev (and eventually, any package needed)
  • Get aircrack-ng for subversion:

svn co http: trac.aircrack-ng.org/svn/trunk aircrack-ng

  • And compile and install:

cd aircrack-ng

make

make install (or: "sudo make install", if "make install" don't work for you)

  • Use the option '--ignore-neagtive-one', e.g.:

sudo aireplay-ng -3 -b BSSID -h MAC --ignore-negative-one mon0

(of course, you must replace "BSSID", "MAC" and "mon0" for the convenient for you).

This is the only that work for me. (Note: previously, I uninstall aircrack-ng with Synaptic.)

This worked for me.
Now i have to make my brcm 4313 to inject!
Thanks

comment:134 Changed 18 months ago by J4yS33

Same Issue with Ubuntu 11.10 64bit, Intel 4965 AGN.

Compiling latest stable Compat-Wireless w/ patches always yields no connections.

Nuts.

comment:135 in reply to: ↑ 126 Changed 18 months ago by anonymous

Replying to anonymous:

I use Ubuntu 11.04 64 bits, Atheros ath9k, and aircrack-ng from the Ubuntu repos. The only that work for me is the next:

  • Install subversion (from Synaptic, for example, or with "sudo apt-get install")
  • Install libssl-dev (and eventually, any package needed)
  • Get aircrack-ng for subversion:

svn co http: trac.aircrack-ng.org/svn/trunk aircrack-ng

  • And compile and install:

cd aircrack-ng

make

make install (or: "sudo make install", if "make install" don't work for you)

  • Use the option '--ignore-neagtive-one', e.g.:

sudo aireplay-ng -3 -b BSSID -h MAC --ignore-negative-one mon0

(of course, you must replace "BSSID", "MAC" and "mon0" for the convenient for you).

This is the only that work for me. (Note: previously, I uninstall aircrack-ng with Synaptic.)

So this way kind off worked for me. It works with the airolib-ng commands but when im trying the aireplay-ng commands, it always ends up putting the -1 channel anyway.
(i am putting the --ignore-negative-one)
Running Ubuntu 11.10 x64 with ath9k drivers.

comment:136 in reply to: ↑ 126 Changed 17 months ago by anonymous

Replying to anonymous:

I use Ubuntu 11.04 64 bits, Atheros ath9k, and aircrack-ng from the Ubuntu repos. The only that work for me is the next:

  • Install subversion (from Synaptic, for example, or with "sudo apt-get install")
  • Install libssl-dev (and eventually, any package needed)
  • Get aircrack-ng for subversion:

svn co http: trac.aircrack-ng.org/svn/trunk aircrack-ng

  • And compile and install:

cd aircrack-ng

make

make install (or: "sudo make install", if "make install" don't work for you)

  • Use the option '--ignore-neagtive-one', e.g.:

sudo aireplay-ng -3 -b BSSID -h MAC --ignore-negative-one mon0

(of course, you must replace "BSSID", "MAC" and "mon0" for the convenient for you).

This is the only that work for me. (Note: previously, I uninstall aircrack-ng with Synaptic.)

Worked for me, Ubuntu 11.10 ath9k, thx alot!!!

comment:137 Changed 16 months ago by anonymous

I have a workaround. I am using Arch Linux kernel 3.1.9 with ath5k drivers on Atheros AR242x/AR542x wireless network adapter. (Basically I installed Arch on an Acer Aspire One ZG5 and went to town.) I found that after turning of all wireless daemons and applications -

airmon-ng check

I can force the wireless card to the desired channel -

iwconfig wlan0 channel 6

Then run

airmon-ng start wlan0;
airmon-ng stop mon0;
airmon-ng stop wlan0

Thats right. Start and then completely stop monitor mode. From here, follow the normal steps using wlan0 as the interface.

--terminal 1--
airodump-ng -c 6 --bssid <target mac> -w <output file> wlan0
--terminal 2--
aireplay-ng -1 5 -a <target mac> wlan0
aireplay-ng -3 -b <target mac> wlan0
--terminal 3--
aircrack-ng output*.cap

if you check the wireless interface at this point, it will actually be in monitor mode. to put it back in managed, kill it again

airmon-ng stop wlan0

Hope this helps.

comment:138 Changed 16 months ago by misterx

I can't confirm this works but I still think patching is easier (or use the very latest kernel where it should be fixed).

comment:139 Changed 16 months ago by Colombian

Ok, finally, the answer after 21 months is....
I'm sick of this, trying and trying but I wil do it tomorrow, I m tired

Using Linux 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 i686 i386 GNU/Linux
HP Pavilion

comment:140 Changed 16 months ago by XayOn

Shouldn't it be fixed in compat-wireless-3.3 ? (I still have not tested it myself, got it from ZC)

Build lastest compat-wireless and check it out.

comment:141 Changed 13 months ago by anonymous

Arch kernel 3.2.13 iwlwifi 5100 here, still an issue

comment:142 Changed 13 months ago by Leox

In Ubuntu 12.04, can't set the channel.
So also got this problem

Interface Chipset Driver
wlan0 Unknown rtl8192se - [phy0]

comment:143 Changed 13 months ago by wifi007@…

I think that ubuntu 12.04 don't supports "aircrack-ng" ...
I'm beginner in Linux and I use ubuntu 11.10, my PC Dell inspiron 1750 32-bit
I soon installed "aircrack-ng" network chipset-broadcom ; driver-b43 - [phy0]
I have a same problem with "fixed channel mon0: -1" can somebody help me, how to corrects this problem...?? thank you ...

comment:144 Changed 10 months ago by anonymous

in Ubuntu 12.04 with Atheros still an issue.

comment:145 Changed 10 months ago by anonymous

Confirmed that in Ubuntu 12.04 is still a issue. Tried with Atheros, Realtek and Ralink chipsets.

comment:146 in reply to: ↑ 1 Changed 9 months ago by Maurich

I have the atk9h driver on a USB card and my pc wireless is Broadcom

wlan1 Atheros ath9k - [phy1]
wlan0 Unknown brcmsmac - [phy0]

and i have the same problem I've edit the common.mak file in the Aircrack dir and still nothing. Its weird cuz i use the ath9k not the other one and that one is always off so. any suggestions. BTW
Ubuntu 12.04

comment:147 Changed 7 months ago by anonymous

Confirming bug in 12.04 ubuntu.....

comment:148 Changed 7 months ago by anonymous

and linux mint 13

comment:149 Changed 7 months ago by anonymous

Also suffering from this bug on Ubuntu 12.04.1 using the ath9k driver, executing
airodump-ng -c 10 --bssid 00:0E:8E:30:9E:53 -w dump wlanMoni
leads to "fixed channel wlanMoni: -1" in the upper right corner.

However this workaround seems to work to set the channel to 10:
http :blog.macuyiko.com/2012/05/ubuntu-1204-fixed-channel-mon0-1.html (added a space to the URL to circumvent anti-spam rules)

comment:150 Changed 7 months ago by clopez

Please, someone running Ubuntu 12.04 with this bug.

  • Download latest svn version:
    svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng
    cd aircrack-ng
    
  • Install build dependencies
    sudo apt-get install libnl-3-dev zlib1g-dev libpcap0.8-dev libssl-dev libnl-genl-3-dev
    
  • Compile with libnl=true
    make libnl=true
    
  • And test it
    sudo ./src/airodump-ng [...]
    sudo ./src/aireplay-ng [...]
    

And report here if the problem got solved when compiling aircrack with libnl=true from latest SVN

comment:151 Changed 7 months ago by anonymous

checked out latest svn version, compiled with libnl=true, problem persists, tested on Linux Mint 13

Changed 7 months ago by clopez

Don't exit when the AP and our interface are on different channels

comment:152 Changed 7 months ago by clopez

Ok. I think that we should print a warning and continue as if nothing happened. See the above patch.

[PATCH] Don't exit when the AP and our interface are on different channels:

  • This workarounds bug #742
    • At least people can use it as expected. I tested that it works despite aircrack-ng thinking that the interface is on channel -1
  • Its also useful when you want to attack APs that are near to the channel on wich your interface is tunned.
    • Is a fact that if you are in channel, lets say 9, you can also attack clients on channel 8 or 10 (less successfully than if you were on such channels, but works)
    • The use case is: I'm attacking AP on channel 9, but its taking a long time, so in the meanwhile there is another AP on channel 8 that I would wish to attack but I only have one wireless card, So... let the user just try it!! Printing a warning is enough. Not need to force an exit.

comment:153 Changed 7 months ago by misterx

Problem 1: Channel -1

There is an option called --ignore-negative-one which does exactly that thing.

Problem 2: Attack AP from a different channel

Not a good idea, it is much less effective. Plus, it will just bring more people because they can't crack their AP and they're on the wrong channel.

comment:154 Changed 5 months ago by Anon

clopez - I am using ubuntu 12.04 and I wanted to report back here that the problem has somewhat been fixed. I was using the latest version of aircrack-ng from aircrack-ng.org. The svn install with make libnl=true seems to work. I still get the -1 channel error, but --ignore-negative-one is available (it previously was not). I don't know if this is what you mean by problem solved or not.
the-familiar-original@…

comment:155 follow-up: Changed 8 weeks ago by anonymous12312421421

In ubuntu 12.04 you can use the follow script and should fix the problem.

#!/bin/bash
ifconfig wlan0 down
iwconfig wlan0 mode managed
ifconfig wlan0 up
iwconfig wlan0 channel 11
# the "11" should be changed whenever you want to chose other channel. We must to change it everytime we want to use another channel.
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
# iwconfig wlan0 <-- this line is optional, you can erase the "#" if you want to, and it shows the monitor mode

You save it as you want e.g. "script-ng", then give it the exec with

# Chmod 700 ./script-ng

and you can use it as a root to change the channel.

I hope it helps.

comment:156 in reply to: ↑ 155 Changed 8 weeks ago by anonymous

Replying to anonymous12312421421:

Repost the script right.

#!/bin/bash
ifconfig wlan0 down
iwconfig wlan0 mode managed
ifconfig wlan0 up
iwconfig wlan0 channel 11
# the "11" should be changed whenever you want to chose other channel. We must to change it everytime we want to use another channel.
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
# iwconfig wlan0 <-- this line is optional, you can erase the "#" if you want to, and it shows the monitor mode

You save it as you want e.g. "script-ng", then give it the exec with

#Chmod 700 ./script-ng

and you can use it as a root to change the channel.

comment:157 Changed 6 weeks ago by egarim

Hi, I try the script previously posted but I alway get -1 running 'airodump-ng -c 6 -w psk mon0' and before 'airmon-ng start wlan0 6'. I correctly see the AP/clients on channel 6 but I can't get no wpa handshakes all client are not associated (but that is not true because I do that with my clients/AP). Any suggests? Regards.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.