From owner-freebsd-wireless@freebsd.org Thu Jul 18 11:07:27 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 0BE88A596D for ; Thu, 18 Jul 2019 11:07:27 +0000 (UTC) (envelope-from serge.a1@gmail.com) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ABC6584663 for ; Thu, 18 Jul 2019 11:07:25 +0000 (UTC) (envelope-from serge.a1@gmail.com) Received: by mail-io1-xd32.google.com with SMTP id o9so50830324iom.3 for ; Thu, 18 Jul 2019 04:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hxyQ5d3xVzibkQUdsN1iUN5f2ANXptOTo+qXrgm+vtE=; b=c+dGIP7oTtv1HGmDHO8so6UrbrQr2rIdaZ0qsc5j0I03+3k2yvd0JQyzdvQaAROS4m bKgaxLixGq1HO/wkHY5rrJABNqhLuprOFc1ezRvN5vlHagw4fUZYAvnDzAkilA239/HE hq+ZsWUf8L/buVQGYjAIKVZvRmoGLF/FukeJGsBJfuRDBqv+r+Bn8UgeYENvqwbULkR+ CFQsUzbo284rCrYZPqlScTd4npSPwMDNp9iuG8BI+nmVmj4QMqwhhU3cEDngObR+3C3y Fo4bEIXcdSdD7WDxtK+1FBPLnzDi2fU5HoA857xaS3T8d6JDTTz9lXNdyqjhddk49jRh 726A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hxyQ5d3xVzibkQUdsN1iUN5f2ANXptOTo+qXrgm+vtE=; b=P213xbtRqZwIfOZVUF26h5638umzWT4FFJBrstpicO3PohH0WRBjm+/4bDBKcRUNJ1 06uijysB5V05YzyLgdzO9Oa51HIpqcsrDzUgQ6aAClwEVPApwqd6YGx3HDPrwdsr7rYY gmd+CoSe0pZ8JQZ+JWhjVHmexmIOZGYOuD0z6VWzvImoU5iOU2s6+tPyWbnwo8tk4ded sf7ioY2UUUUluwwxNkJbgDmul1EZI+I0ghYYOJxWDanEkgklqFNbJNQ+vNKbrbAog83i eFQ5wELhzZEseKI5Uw/54PVD05uITX88GslO4QHst1Y/MdQd4Fw28+S9UyA4jRWrbhjF fLSA== X-Gm-Message-State: APjAAAV3Z8tBQe02UF03ntiqF9wTMBi5RwL8H5udMIAExXXs4XYxV31t he+sjm6LATPHJ5ccb8CykXPtZ679Hm5xsl73QA== X-Google-Smtp-Source: APXvYqw0OmzBEAWVYnhht1j6N/jXQwQSvS2qTVVPoxdCDcmUa7qo+BmG6DCA8I8g+a/xlLiMTwBhSx5ZrNw4LfX3sV0= X-Received: by 2002:a02:bca:: with SMTP id 193mr8068798jad.46.1563448044847; Thu, 18 Jul 2019 04:07:24 -0700 (PDT) MIME-Version: 1.0 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> <20190718104142.GA2575@c720-r342378> In-Reply-To: <20190718104142.GA2575@c720-r342378> From: Serge Semenenko Date: Thu, 18 Jul 2019 14:07:02 +0300 Message-ID: Subject: Re: debugging a Wifi association problem To: Matthias Apitz Cc: Adrian Chadd , "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: ABC6584663 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=c+dGIP7o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sergea1@gmail.com designates 2607:f8b0:4864:20::d32 as permitted sender) smtp.mailfrom=sergea1@gmail.com X-Spamd-Result: default: False [-6.50 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.69)[-0.690,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.80)[ip: (-8.36), ipnet: 2607:f8b0::/32(-3.15), asn: 15169(-2.44), country: US(-0.05)]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 11:07:27 -0000 -L List the known data link types for the interface and exit. # tcpdump -ni wlan0 -L Data link types for wlan0 (use option -y to set): EN10MB (Ethernet) IEEE802_11_RADIO (802.11 plus radiotap header) =D1=87=D1=82, 18 =D0=B8=D1=8E=D0=BB. 2019 =D0=B3. =D0=B2 13:41, Matthias Ap= itz : > El d=C3=ADa jueves, julio 18, 2019 a las 12:04:27p. m. +0200, Matthias Ap= itz > escribi=C3=B3: > > > El d=C3=ADa mi=C3=A9rcoles, julio 17, 2019 a las 11:45:49p. m. -0700, A= drian Chadd > escribi=C3=B3: > > > > > 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 promiscuou= s > > > 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, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g > " >