Re: Monitor mode in intel 4965

Dani Camps <[email protected]> Wed, 17 Feb 2010 07:57:20 +0000 (GMT)
Newsgroups gmane.linux.drivers.ipw2100.devel
Message-ID <[email protected]>
Dear Reinette and Daniele,

First let me apologize in case I am doing some very basic mistake, I am qui=
te new at this. This is what I see:

1- If the RF killswitch is ON (no wireless), then I can still do "sudo iwco=
nfig wlan0 mode monitor" and it works, here is the output:

$sudo iwconfig wlan0
wlan0     IEEE 802.11abgn  Mode:Monitor  Frequency:2.412 GHz  ...

However, I can not use the interface because it is down. What I want to do =
is to use wireshark to capture WLAN frames. I used to do this in the past w=
ith other intel drivers, by disassociating from any WLAN network, then sett=
ing the card in monitor mode, and then launching wireshark.

2- When I switch OFF the RF killswitch (enable wireless), and without being=
 associated to any WLAN network, the wlan0 interface automatically switches=
 to mode managed, and when I try to set it back to monitor mode it fails:

$ sudo iwconfig wlan0
wlan0     IEEE 802.11abgn  ESSID:""  =

          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated =


$ sudo iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Device or resource busy.

How can I set the card to monitor mode when the interface is enabled but no=
t associated to any network?

Many thanks!

Daniel


--- El mar, 16/2/10, reinette chatre <[email protected]> escribi=F3:

> De: reinette chatre <[email protected]>
> Asunto: Re: [Ipw2100-devel] Monitor mode in intel 4965
> Para: "Dani Camps" <[email protected]>
> CC: "Daniele C." <[email protected]>, "ipw2100-devel@lists=
.sourceforge.net" <[email protected]>
> Fecha: martes, 16 de febrero, 2010 12:10
> Daniel,
> =

> On Tue, 2010-02-16 at 00:33 -0800, Dani Camps wrote:
> > $ dmesg | grep iwl
> > [=A0=A0=A079.894178] iwlagn: Intel(R)
> Wireless WiFi Link AGN driver for Linux, 1.3.27k
> > [=A0=A0=A079.894180] iwlagn: Copyright(c)
> 2003-2009 Intel Corporation
> > [=A0=A0=A079.894283] iwlagn 0000:03:00.0: PCI
> INT A -> GSI 17 (level, low) -> IRQ 17
> > [=A0=A0=A079.894298] iwlagn 0000:03:00.0:
> setting latency timer to 64
> > [=A0=A0=A079.894353] iwlagn 0000:03:00.0:
> Detected Intel Wireless WiFi Link 4965AGN REV=3D0x4
> > [=A0=A0=A079.947732] iwlagn 0000:03:00.0:
> Tunable channels: 13 802.11bg, 19 802.11a channels
> > [=A0=A0=A079.947843] iwlagn 0000:03:00.0: irq
> 32 for MSI/MSI-X
> > [=A0=A0=A080.151672] phy0: Selected rate
> control algorithm 'iwl-agn-rs'
> > [=A0=A0=A080.208005] iwlagn 0000:03:00.0:
> firmware: requesting iwlwifi-4965-2.ucode
> > [=A0=A0=A080.375869] iwlagn 0000:03:00.0:
> loaded firmware version 228.61.2.24
> > [=A0=A0=A080.590246] Registered led device:
> iwl-phy0::radio
> > [=A0=A0=A080.590263] Registered led device:
> iwl-phy0::assoc
> > [=A0=A0=A080.590278] Registered led device:
> iwl-phy0::RX
> > [=A0=A0=A080.590292] Registered led device:
> iwl-phy0::TX
> > [=A0 661.371758] Registered led device:
> iwl-phy0::radio
> > [=A0 661.371805] Registered led device:
> iwl-phy0::assoc
> > [=A0 661.371847] Registered led device:
> iwl-phy0::RX
> > [=A0 661.371887] Registered led device:
> iwl-phy0::TX
> > =

> =

> The logs above show that the firmware is loaded, which is
> done when you
> bring the interface up. You need to set interface in
> monitor mode prior
> to bringing the interface up.
> =

> Reinette
> =

> =

> =



      =


---------------------------------------------------------------------------=
---
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev