Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Ubuntu 12.10 in my computer with an Atheros AR5007 wireless card.

I want to use Kismet but when I run it it starts displaying the message:

ERROR: Packet source 'wlan0' failed to set channel X: mac80211_setchannel()

It keeps displaying the same for every channel except channel 1. I have installed the compat-wireless-3.6.6-1 drivers and patched them with the following patch in order to use them with aircrack-ng.

I have installed the latest version of Kismet in the git repository and I even tried with the svn but it keeps displaying the same error. I also have set the kismet.conf file with the nsource=wlan0 as it is the name of my wireless interface according to iwconfig :

lo        no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"XXXX"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: XX:XX:XX:XX:XX:XX   
          Bit Rate=18 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=28/70  Signal level=-82 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:282   Missed beacon:0

I haven't found any answer since similar errors are supposed to be fixed with the latest Kismet release but this isn't my case. Any help will be appreciated.

Thank you!

share|improve this question
    
Is that your entire "source=" line? I'd suggest source=ath5k,wlan0,Atheros. I'm not actually sure the name part makes any difference. –  chili555 Nov 28 '12 at 1:50
    
@chili555 Thank you, but after changing the kismet.conf file to 'ncsource=ath5k,wlan0,Atheros' and running kismet it displays the following error: Al packet sources are in error state... –  M. Cunille Nov 28 '12 at 2:06
    
It says source=ath5k,wlan0,Atheros and not nsource= , Right? –  chili555 Nov 28 '12 at 3:15
    
@chili555 I first tried with ncsource=ath5k,wlan0,Atheros and kismet displayed the error: Al packet sources are in error state. Now I tried with source=ath5k,wlan0,Atheros and kismet displayed the error: Kismet started with no packet sources defined. –  M. Cunille Nov 28 '12 at 3:47
    
I believe ncsource=wlan0 is correct. Some cards have trouble switching to monitor mode seamlessly at the command of Kismet. I have to do: sudo ifconfig wlan0 down; sudo iwconfig wlan0 mode monitor; sudo kismet. I also notice the channel lists include 802.11a channels; if you know your card doesn't do 802.11a, you might comment out those lines in kismet.conf. –  chili555 Nov 28 '12 at 12:29
show 2 more comments

2 Answers

up vote 2 down vote accepted

I believe ncsource=wlan0 is correct.

Some cards have trouble switching to monitor mode seamlessly at the command of Kismet.

I have to do:

sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo kismet

I also notice the channel lists include 802.11a channels; if you know your card doesn't do 802.11a, you might comment out those lines in kismet.conf.

share|improve this answer
add comment

This worked for me:

sudo apt-get install iw

(if you don't have it)

iw dev wlan0 interface add wlan0mon type monitor
iw dev wlan0 del

then adding this to the conf file

ncsource=wlan0mon
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.