From owner-freebsd-wireless@freebsd.org Thu Sep 19 12:44:17 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 C01B7122294; Thu, 19 Sep 2019 12:44:17 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46YxPD6Pybz3C1Q; Thu, 19 Sep 2019 12:44:16 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 166E88D4A157; Thu, 19 Sep 2019 12:38:41 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 81EC7C24B96; Thu, 19 Sep 2019 12:38:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id BzdmCNNerqUF; Thu, 19 Sep 2019 12:38:38 +0000 (UTC) Received: from [192.168.2.110] (unknown [IPv6:fde9:577b:c1a9:31:5caf:95d2:ddd1:d63e]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id D95E3C24A04; Thu, 19 Sep 2019 12:38:37 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Tom Jones" , freebsd-wireless@freebsd.org Cc: "Poul-Henning Kamp" , "Johannes Lundberg" , "FreeBSD Current" Subject: Re: wlan can't discover known networks after relocating Date: Thu, 19 Sep 2019 12:38:36 +0000 Reply-To: freebsd-wireless@freebsd.org X-Mailer: MailMate (2.0BETAr6137) Message-ID: In-Reply-To: <20190919122804.GA80037@tom-desk.erg.abdn.ac.uk> References: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> <6985.1568738188@critter.freebsd.dk> <20190919122804.GA80037@tom-desk.erg.abdn.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Rspamd-Queue-Id: 46YxPD6Pybz3C1Q X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-4.73 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[freebsd-wireless@freebsd.org]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-2.43)[ip: (-8.33), ipnet: 2a01:4f8::/29(-2.02), asn: 24940(-1.79), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[] 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, 19 Sep 2019 12:44:17 -0000 On 19 Sep 2019, at 12:28, Tom Jones wrote: Hi, freebsd-wireless might be a better list for all this .. > On Tue, Sep 17, 2019 at 04:36:28PM +0000, Poul-Henning Kamp wrote: >> -------- >> In message <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org>, >> Johannes Lundber >> g writes: >> >>> For a long time now I have had this problem with iwm and wlan0. >>> Whenever >>> I move between work and home it won't reconnect automatically and I >>> have >>> to do wlan0 scan manually for it to pick up the different network. >> >> I suffer from the dreaded "reason=0" when I move inside my house: >> >> > scan >> OK >> <3>CTRL-EVENT-SCAN-RESULTS >> <3>Trying to associate with 6c:3b:6b:3d:a2:e9 (SSID='Palombia' >> freq=2452 MHz) >> <3>CTRL-EVENT-DISCONNECTED bssid=6c:3b:6b:3d:a2:e9 reason=0 >> <3>CTRL-EVENT-SCAN-RESULTS >> <3>Trying to associate with 6c:3b:6b:ab:ce:d4 (SSID='Palombia' >> freq=2412 MHz) >> <3>Associated with 6c:3b:6b:ab:ce:d4 >> >> a2:e9 is the loudest AP here in my office, but my I have been in the >> other end of the house iwn consistently fails to associate with it >> and >> and keeps picking the weaker AP in the far end. >> >> Eventually (hours!) it disconnects from the weaker ap, also with >> "reason=0" and gets it right: >> >> <3>WPA: Group rekeying completed with 6c:3b:6b:ab:ce:d4 [GTK=CCMP] >> <3>CTRL-EVENT-DISCONNECTED bssid=6c:3b:6b:ab:ce:d4 reason=0 >> <3>CTRL-EVENT-SCAN-RESULTS >> <3>Trying to associate with 6c:3b:6b:3d:a2:e9 (SSID='Palombia' >> freq=2452 MHz) >> <3>Associated with 6c:3b:6b:3d:a2:e9 >> <3>WPA: Key negotiation completed with 6c:3b:6b:3d:a2:e9 [PTK=CCMP >> GTK=CCMP] >> <3>CTRL-EVENT-CONNECTED - Connection to 6c:3b:6b:3d:a2:e9 completed >> [id=3 id_str=] >> <3>WPA: Group rekeying completed with 6c:3b:6b:3d:a2:e9 [GTK=CCMP] >> >> And yes, working roaming would be nice too... > > I have the problem that when roaming networks become disabled > > $ wpa_cli > Selected interface 'wlan0' > > Interactive mode > > > list_networks > network id / ssid / bssid / flags > 0 network1 any [CURRENT] > 1 network2 any [DISABLED] > 2 network3 any [DISABLED] > 3 network4 any [DISABLED] > 4 network5 any [DISABLED] > Selected interface 'wlan0' > > > I address this by doing network_enable x in wpa_cli and it all comes > back. I asked Adrian about this in the past, but it needs some > debugging > to pin down. Is this iwm(4) as well in your case or another card? /bz