Вы находитесь на странице: 1из 7

Search

Home

Posted on August 22, 2011

Previous Next

Aircrack-ng fixed channel mon0: -1


Aircrack would not play nice on Ubuntu with a Intel Wireless iwl3945 wifi adapter
It would always say mon0 is on channel -1, but the AP uses channel x

Solution:
You need to patch the compact-wireless package and rebuild
Copy and paste the below commands into a terminal
Install your kernel headers if you dont already have them, if you do skip the first command

Code:
sudo apt-get install linux-headers-$(uname -r)
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.2-1.tar.bz2
tar -jxf compat-wireless-3.6.2-1.tar.bz2
cd compat-wireless-3.6.2-1
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

This entry was posted in Linux, Security by Sillychicken. Bookmark the permalink.
25 THOUGHTS ON AIRCRACK-NG FIXED CHANNEL MON0: -1

ousmane mbow on November 28, 2011 at 10:39 am said:

thanx much
Reply

converted by W eb2PDFConvert.com

gloin on December 19, 2011 at 11:21 pm said:

http://aircrack-ng.org/doku.php?id=compat-wireless
Reply

yoyoma on January 8, 2012 at 2:29 pm said:

how do you do apply this patch for a package such as firmware-b43-installer??


Reply

Sillychicken
on January 8, 2012 at 10:14 pm said:

Give this ago http://forum.aircrack-ng.org/index.php?topic=8999.0


Reply

bigme on January 9, 2012 at 12:53 pm said:

thanks a bunch!
Reply

Dimon on February 22, 2012 at 9:13 am said:

I had the same problem with ath5k driver for Atheros card which supposed to replace mad-wifi. I fixed it by rolling back to old good
mad-wifi and deleting ath5k .
ath5k sucks totally and with mad-wifi I get much better range
Reply

George
on March 1, 2012 at 12:54 am said:

Could you please explain how did you replace your ath5k driver with mad-wifi?
Reply

converted by W eb2PDFConvert.com

mhk on March 5, 2012 at 10:03 pm said:

after this command (sudo apt-get install patch


) i give this error :
Error! Bad return status for module build on kernel: 2.6.39.4 (i686)
Consult the make.log in the build directory
/var/lib/dkms/bcmwl/5.60.48.36+bdcom/build/ for more information.
dpkg: error processing bcmwl-kernel-source (configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
bcmwl-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)
thank you for site
Reply

Sebastian on May 21, 2012 at 4:11 pm said:

So I am a total been when it comes to Linux.. But I am using a burned to disc 12.04 for aircrack as backtrack on VMware didnt
work with my adapter, or burn to disk correctly. So now I am using my atheros card within my laptop regularly. All works well
besides the mon0 error. I tried ALL of the patch fixes but whenever I try to make or sudo make install on the compat-wireless
updated versions, I get multiple make errors.. Is it because aircrack-ng is read only? Please help.. Note that all patches (maxim
and the like) will not successfully install..
Reply

Sebastian on May 21, 2012 at 4:12 pm said:

It gives me make errors when I try to finish the maxim patch install.. Why?
Reply

Gillian on November 3, 2012 at 1:32 am said:

Same, i get errors when I make :


got any idea ?
include/linux/netdevice.h:1150:5: warning: IS_ENABLED is not defined [-Wundef]
include/linux/netdevice.h:1150:15: error: missing binary operator before token (
include/linux/netdevice.h: In function netdev_uses_dsa_tags:
include/linux/netdevice.h:1418:9: error: struct net_device has no member named dsa_ptr
include/linux/netdevice.h:1419:31: error: struct net_device has no member named dsa_ptr
include/linux/netdevice.h: In function netdev_uses_trailer_tags:
include/linux/netdevice.h:1428:9: error: struct net_device has no member named dsa_ptr
include/linux/netdevice.h:1429:35: error: struct net_device has no member named dsa_ptr

converted by W eb2PDFConvert.com

make[3]: *** [/home/gillian/compat-wireless-3.0-2/compat/main.o] Error 1


make[2]: *** [/home/gillian/compat-wireless-3.0-2/compat] Error 2
make[1]: *** [_module_/home/gillian/compat-wireless-3.0-2] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-32-generic
make: *** [modules] Error 2
Reply

skaly
on November 7, 2012 at 9:18 pm said:

you all should download LATEST VERSION of compat-wireless


from: http://wireless.kernel.org/en/users/Download/stable/
sudo apt-get install linux-headers-$(uname -r)
wget
http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.2-1.tar.bz2
tar -jxf compat-wireless-3.6.2-1.tar.bz2
cd compat-wireless-3.6.2-1
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
Reply

Sillychicken
on November 12, 2012 at 9:28 pm said:

Try downloading the latest version, I have updated the post. Thanks
Reply

gladoscc
on November 25, 2012 at 12:24 am said:

Hi, I get 2 out of 2 hunks FAILED saving rejects to file net/wireless/chanc.rej


Reply

psyren
on November 25, 2012 at 4:13 am said:

me too give hunks failed but i have continued the operations


Reply

psyren on November 25, 2012 at 4:15 am said:

is that hunks a dangerous problem or its very necessary??


converted by W eb2PDFConvert.com

Reply

Glenn Gawron
on March 22, 2013 at 10:22 am said:

I would like to know as well. Doesnt look like the author is going to answer any more questions though so were on our
own! Im going to try it and see how it goes with fingers crossed!
Reply

Glenn Gawron
on March 22, 2013 at 12:24 pm said:

Follow up, did not fix channel -1 issue. However, my Intel 3945 card is not a problem if using BackTrack Linux
according to one forum poster. Will boot from USB flash drive and see how things go.
Reply

Sillychicken
on March 22, 2013 at 8:50 pm said:

I am always watching can be difficult to render support for specific people. Backtrack will greatly help resolve
potential issues as they have already solve common problems.
Thanks
Reply

n1t3
on July 25, 2013 at 7:21 am said:

Hey there, Im sorry but i am still haveing this problem here:


make[4]: *** [/home/live/compat-drivers-3.7.1-3/compat-drivers-3.7.1-3/drivers/gpu/drm/i915/i915_drv.o] Error
1
make[3]: *** [/home/live/compat-drivers-3.7.1-3/compat-drivers-3.7.1-3/drivers/gpu/drm/i915] Error 2
make[2]: *** [/home/live/compat-drivers-3.7.1-3/compat-drivers-3.7.1-3/drivers/gpu/drm] Error 2
make[1]: *** [_module_/home/live/compat-drivers-3.7.1-3/compat-drivers-3.7.1-3] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.9-1-ARCH
make: *** [modules] Error 2
Even with all installed (Kernel Headers, The Right driver selected, etc. What could really be the problem
here ?
Greetings
Reply

psyren on November 25, 2012 at 6:03 am said:

hey i have made all the operations even if hunks errors and now my wlan1 channel keeps on changing everytime is it ok??and if
it isnt what can i do??? answer please

converted by W eb2PDFConvert.com

Reply

Tam on February 25, 2013 at 12:12 am said:

I have a huge problem. I had backtrack 5 installed as a partition a side to windows xp after copy pasting the command from
above. my windows doesnt detect wi-fi any more wi-fi works perfectly with ubuntu but there is no wi-fi on my windows any
more. i thought a HDD format would fix the problem so i formated everything, removed ubuntu completely from my HDD and
installed new windows 7.. but my windows still doesnt connect to wi-fi. I need help cause Im stuck and clueless . thank
you a head
Reply

Sillychicken
on March 22, 2013 at 8:54 pm said:

Interesting, what does rfkill list all show?


Try disable in Ubuntu and reboot into windows, also check your hardware settings in bios, reset to defaults. I have seen
the bios setting no longer reflect the correct state
Reply

akrit on July 9, 2013 at 6:19 am said:

sir pls help me iam also getting same error


sudo aireplay-ng fakeauth 0 -a 81:A1:D5:BA:F5:80 -e suman mon0
No source MAC (-h) specified. Using the device MAC (88:53:2E:0A:7C:FB)
22:47:53 Waiting for beacon frame (BSSID: 81:A1:D5:BA:F5:80) on channel -1
22:47:53 mon0 is on channel -1, but the AP uses channel 1
Reply

akrit on July 9, 2013 at 9:29 pm said:

??
Reply

Leave a Reply
Your email address will not be published. Required fields are marked *

Name

*
converted by W eb2PDFConvert.com

Email

Website

Comment

Post Comment

Proudly powered by WordPress

converted by W eb2PDFConvert.com

Вам также может понравиться