Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Oct 2010 06:02:39 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Bernhard Schmidt <bschmidt@techwires.net>
Cc:        Paul B Mahol <onemda@gmail.com>, net@freebsd.org
Subject:   Re: Monitor mode not working for iwi(4) on 7.X
Message-ID:  <20101009060239.GA88618@FreeBSD.org>
In-Reply-To: <201010081944.50287.bschmidt@techwires.net>
References:  <4763016D.7060100@janh.de> <AANLkTikopXOR8aT1=T=Tz5D=Fb_OJh7wk-W2SsvhnMtO@mail.gmail.com> <201010081936.14269.bschmidt@techwires.net> <201010081944.50287.bschmidt@techwires.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 08, 2010 at 07:44:50PM +0200, Bernhard Schmidt wrote:
> On Friday 08 October 2010 19:36:13 Bernhard Schmidt wrote:
> > After having another cup of coffee it's pretty obvious what's wrong.
> > The only difference between what I did and your scenario is, that I
> > didn't use
> > ifconfig iwi0 mediaopt monitor
> > but
> > ifconfig iwi0 monitor

I haven't look in the source yet, but what is the difference between
"mediaopt monitor" and "monitor"?

> > instead.. anyways..
> > 
> > Attached patched should behave better now.
> 
> Sorry.. correct one this time.

Much better!  "airodump-ng iwi0" now sees stations in addition to APs,
which means it can utilize monitor mode.  "ifconfig iwi0 scan" however
does not work after that (and "list scan" returns no results) even if I
put adapter back to normal (from promisc and monitor modes) with
ifconfig(8).  kldunloading and loading module again fixes the issue.

Injection test "aireplay-ng -9 iwi0" still fails, but as I've been told
this is firmware issue (i.e. not possible with iwi(4)), which is also
inline with dmesg:

  <kern.crit> kernel: iwi0: firmware error
  <kern.crit> kernel: iwi0: iwi_cmd: cmd 6 not sent, busy
  <kern.crit> kernel: iwi0: device configuration failed

Googling shows that people patch Linux drivers to support injection, but
I do not know if any of that information is applicable to FreeBSD.

Apart from that, machine seems stable, and monitor mode is fixed.  Thanks
a lot!

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101009060239.GA88618>