From owner-freebsd-wireless@freebsd.org Thu Jul 18 10:41:46 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EAF34A52C5 for ; Thu, 18 Jul 2019 10:41:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2CC783BCD for ; Thu, 18 Jul 2019 10:41:45 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [132.174.172.2] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1ho3r5-0004ST-Fh; Thu, 18 Jul 2019 12:41:43 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id x6IAfg3J088224 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 18 Jul 2019 12:41:42 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id x6IAfgql088223; Thu, 18 Jul 2019 12:41:42 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 18 Jul 2019 12:41:42 +0200 From: Matthias Apitz To: Adrian Chadd , "freebsd-wireless@freebsd.org" Subject: Re: debugging a Wifi association problem Message-ID: <20190718104142.GA2575@c720-r342378> Reply-To: Matthias Apitz 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> <20190718100427.GA2436@c720-r342378> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190718100427.GA2436@c720-r342378> X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 132.174.172.2 X-Rspamd-Queue-Id: F2CC783BCD X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.53 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; HAS_XAW(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mail.unixarea.de]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[101.4.254.178.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; DMARC_NA(0.00)[unixarea.de]; AUTH_NA(1.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; IP_SCORE(-2.85)[ip: (-8.36), ipnet: 178.254.0.0/19(-3.35), asn: 42730(-2.52), country: DE(-0.01)] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2019 10:41:47 -0000 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