From owner-freebsd-wireless@freebsd.org Wed Jul 17 18:26:07 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 B2981B2C7B for ; Wed, 17 Jul 2019 18:26:07 +0000 (UTC) (envelope-from vbotka@gmail.com) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 E81458E1F6 for ; Wed, 17 Jul 2019 18:26:06 +0000 (UTC) (envelope-from vbotka@gmail.com) Received: by mail-wr1-x42b.google.com with SMTP id x1so10875119wrr.9 for ; Wed, 17 Jul 2019 11:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version; bh=+QZvCRINvPePBfco0luq1eCkFFbsI2IcVIPi4GmOJis=; b=vRzpImBBnAlz1G3UIuLYtABKdMvmGLTwYiSwzcxBu6w9LFCrLvvHGCl8HHLqT8Hl03 QpAawVSCT0+i7GOlxnRBmMCA730kFn/Bi22qWAz0EWJocGx0T+W9t8yQD/hnQ0QYcAG5 AZi/iKKvoWSVkouUCy2BjJsdVLQn8F1/OJGsXlr12pRg0rs+wqu+sJkf4dqOSamHn1Iw kXBkkP9yl+1pa2WZTDrvcVuYh1G94JX/F6ThIeSYETSPsmyxjrD7rwWDiE2DUKYC5llo MlNcfGHLu05YRo82c8GAXaFgG7pPQEoZl446xO+sBR+VefWOcsOX80YEmIA+A4C5H9Ss bTSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version; bh=+QZvCRINvPePBfco0luq1eCkFFbsI2IcVIPi4GmOJis=; b=gw4vnHfQK5LcswbbMehkVDvmYk4DmLl2grIxmcvUaNgIlTqexps3WWci/VLnM6+wkh 2vb/0k/B5STdOEFwISNgaBnCw4krPs/3ZH/yzU3hgb9euVT12Gn0xmAy6hkAFZRKSjAA 4saxgAKxIni4k0FIyg2afsPLESz/v96bndirjO64Spq0F34QOHCpVrMyGIw39xduNl6h l2G3W1R8rBLXJ1bhlhxW79BKryMc95n+0geTjy8DKJJreomBKLkurGYbUpfM5ElvtHsr EVYFQlnNrrLA90oxGFQ+D/IacWkp+eocGp2ZsQRvdQRuaIBo2M//cWZzWaLKDjyqpkGW 2Hnw== X-Gm-Message-State: APjAAAVWSamX8Co8QobI7ILZOaShjgaK+GVhZCJ2pulMWkcHHcDaCwBY zLyi1I+AXVs6mIVmlevA4qY= X-Google-Smtp-Source: APXvYqy6Ii/uc1TsJYIMi3MvR21W/N4pka8a7dBgTGEz1WLj6eTMt/cj16/oswYLpdTY/ufZnzSYuQ== X-Received: by 2002:adf:f883:: with SMTP id u3mr43995672wrp.0.1563387965677; Wed, 17 Jul 2019 11:26:05 -0700 (PDT) Received: from localhost (92-245-202-144.satronet.sk. [92.245.202.144]) by smtp.gmail.com with ESMTPSA id c65sm22127066wma.44.2019.07.17.11.26.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jul 2019 11:26:04 -0700 (PDT) Date: Wed, 17 Jul 2019 20:26:02 +0200 From: Vladimir Botka To: Matthias Apitz Cc: freebsd-wireless@freebsd.org Subject: Re: debugging a Wifi association problem Message-ID: <20190717202602.397ca542@gmail.com> In-Reply-To: <20190717173532.GA3766@c720-r342378> References: <20190717053826.GA3090@c720-r342378> <20190717090543.4e0ac69f@gmail.com> <20190717173532.GA3766@c720-r342378> Organization: na X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/=lTYYQ2jg2Rp/XzGKC9cLWF"; protocol="application/pgp-signature" X-Rspamd-Queue-Id: E81458E1F6 X-Spamd-Bar: --------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=vRzpImBB; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of vbotka@gmail.com designates 2a00:1450:4864:20::42b as permitted sender) smtp.mailfrom=vbotka@gmail.com X-Spamd-Result: default: False [-9.06 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_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)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.97)[ip: (-9.41), ipnet: 2a00:1450::/32(-2.93), asn: 15169(-2.44), country: US(-0.05)] 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: Wed, 17 Jul 2019 18:26:07 -0000 --Sig_/=lTYYQ2jg2Rp/XzGKC9cLWF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 17 Jul 2019 19:35:32 +0200 Matthias Apitz wrote: > El d=C3=ADa mi=C3=A9rcoles, julio 17, 2019 a las 09:05:43a. m. +0200, Vla= dimir Botka escribi=C3=B3: > > On Wed, 17 Jul 2019 07:38:26 +0200 > > Matthias Apitz wrote: > > =20 > > > ... The association requests are always rejected with a package > > > CTRL-EVENT-ASSOC-REJECT with 'status_code=3D1'... > > > Do we have any tool in FreeBSD to monitor/debug this problem between = the > > > device in question and the AP? Any other ideas? =20 > >=20 > > Best practice is to sniff packets and see what's going on. > > http://www.wireless-nets.com/resources/tutorials/sniff_packets_wireshar= k.html >=20 > I installed wireshark-2.6.5_2 in my FreeBSD (CURRENT from December last > year). I tried to enable from > View --> [x] Wireless Toolbar > but this gives an error about "Failed to initialize ws80211" in the GUI > and I can not set the channel or Frequency. Is this not possible with > FreeBSD? FreeBSD is not needed to analyse the the problem. Use whatever system is ab= le to set wifi card into the "monitor" mode and sniff the packets first. The link below is complete how to do it https://wiki.wireshark.org/CaptureSetup/WLAN When you got the data analyse it with wireshark. The captured data might gr= ow fast. Cheers, -vlado --Sig_/=lTYYQ2jg2Rp/XzGKC9cLWF Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEbaThuYKQgbbmDrVkkNGZEo7UTwEFAl0vaDoACgkQkNGZEo7U TwEnwgf/TyzZPyMF9CraI/Vhz7bZ6snHc5JADr2F3HfbSuUjUHXdxXBASjoK8+Dn /69UbDS7vQnqdUZP4s2KWTyMEGPyJe63KjneCcSWnyy2KHYL3E19zM8G6C8hmWnN 59KYh2Jjyw97Za+h7zD+kXHP5EiMxuSXYwFWcNdniqW74QxvF6jTrg2gQ3NNtHlA /SkGP6zF3e/Q6rj+28MHqyAuuf8i1izGpxapGlQoGnFHfwQzBpV4SuwqR9TWrceS UIfMC8pHXli2DNGKdDJqeVSr0oCk111Gfy1xitZrnJrntw9YTGCG7pldjynfLNlA pKVUogJJqgYLlgi3BR4uGOsGb1Phkw== =Y2y4 -----END PGP SIGNATURE----- --Sig_/=lTYYQ2jg2Rp/XzGKC9cLWF--