On Sun, Oct 10, 2010 at 07:27:30AM +0000, Alexey Dokuchaev wrote:
> On Sat, Oct 09, 2010 at 08:46:41PM +0200, Bernhard Schmidt wrote:
> > On Saturday 09 October 2010 08:02:39 Alexey Dokuchaev wrote:
> > > 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.
> > 
> > Due to enqueueing the scan command in an infinite loop (yeah.. scanning
> > returns every frame, that's monitor mode for that device.. *sigh*) we
> > might increment a queue index but never actually dequeueing the command.
> > On 'down' we clear the command queue but not the indices resulting in
> > the cur index not pointing to a filled entry. Attached patch should fix
> > that.
> 
> It does, thanks!  "list scan" gets populated after I -mediaopt monitor
> after scan; module reload is not required anymore.

Not sure if this is a driver or ifconfig(8) problem, but after I -mediaopt
monitor, ifconfig(8) still reports it in media line:

        media: IEEE 802.11 Wireless Ethernet autoselect <monitor>

However, as I said, scan list gets populated, which suggests ifconfig(8)
is getting something wrong.  Doing -mediaopt monitor the second time
"knocks" ifconfig(8) though.

./danfe
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to