Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2019 12:41:42 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Adrian Chadd <adrian.chadd@gmail.com>, "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>
Subject:   Re: debugging a Wifi association problem
Message-ID:  <20190718104142.GA2575@c720-r342378>
In-Reply-To: <20190718100427.GA2436@c720-r342378>
References:  <20190717053826.GA3090@c720-r342378> <20190717090543.4e0ac69f@gmail.com> <20190717173532.GA3766@c720-r342378> <20190717202602.397ca542@gmail.com> <20190717185324.GB2379@c720-r342378> <20190717231314.188da633@gmail.com> <20190718062033.GA4802@c720-r342378> <CAJ-Vmom-14SoMBH7xD0y=wZCAYqA3GWzOD=1ziGYRq7WsJtZfg@mail.gmail.com> <20190718100427.GA2436@c720-r342378>

next in thread | previous in thread | raw e-mail | index | archive | help
El día jueves, julio 18, 2019 a las 12:04:27p. m. +0200, Matthias Apitz escribió:

> El día miércoles, julio 17, 2019 a las 11:45:49p. m. -0700, Adrian Chadd escribió:
> 
> > Hi!
> > 
> > So, you don't set the monitor flag like you do on linux. you create a
> > monitor VAP instead or you just use tcpdump with the right flags.
> > 
> > Try:
> > 
> > tcpdump -ni wlan0 -y IEEE802_11_PROTO
> > 
> > That'll put the NIC into monitor mode on the current channel, even in
> > station mode, and let you do normalt raffic as well as get promiscuous
> > traffic into tcpdump.
> 
> Thanks, but:
> 
> root@c720-r342378:~ # uname -a
> FreeBSD c720-r342378 13.0-CURRENT FreeBSD 13.0-CURRENT GENERIC  amd64
> root@c720-r342378:~ # tcpdump -ni wlan0 -y IEEE802_11_PROTO
> tcpdump: invalid data link type IEEE802_11_PROTO

I compiled net/tcpdump to look into that and it supports:

# /usr/local/sbin/tcpdump -ni wlan0 -y IEEE802_11_RADIO

and the OpenBSD man page explains what IEEE802_11_RADIO is. I think,
Adrian, this was what you have in mind, correct?

	matthias


-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



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