From owner-freebsd-current@freebsd.org Tue Sep 17 16:36:41 2019 Return-Path: Delivered-To: freebsd-current@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 1951C128E3C for ; Tue, 17 Sep 2019 16:36:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46XpfH1994z4Ddg; Tue, 17 Sep 2019 16:36:38 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 0F6AB1AF3C5; Tue, 17 Sep 2019 16:36:29 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id x8HGaSiJ006987 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 17 Sep 2019 16:36:28 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id x8HGaSw6006986; Tue, 17 Sep 2019 16:36:28 GMT (envelope-from phk) To: Johannes Lundberg cc: FreeBSD Current Subject: Re: wlan can't discover known networks after relocating In-reply-to: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> From: "Poul-Henning Kamp" References: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6984.1568738188.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Sep 2019 16:36:28 +0000 Message-ID: <6985.1568738188@critter.freebsd.dk> X-Rspamd-Queue-Id: 46XpfH1994z4Ddg X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk X-Spamd-Result: default: False [-1.88 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.955,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.dk]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(0.07)[ip: (0.08), ipnet: 130.225.0.0/16(0.13), asn: 1835(0.13), country: EU(-0.01)]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2019 16:36:41 -0000 -------- In message <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org>, Johannes Lu= ndber 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=3D0" 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=3D'Palombia' freq=3D2= 452 MHz) <3>CTRL-EVENT-DISCONNECTED bssid=3D6c:3b:6b:3d:a2:e9 reason=3D0 <3>CTRL-EVENT-SCAN-RESULTS = <3>Trying to associate with 6c:3b:6b:ab:ce:d4 (SSID=3D'Palombia' freq=3D2= 412 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=3D0" and gets it right: <3>WPA: Group rekeying completed with 6c:3b:6b:ab:ce:d4 [GTK=3DCCMP] <3>CTRL-EVENT-DISCONNECTED bssid=3D6c:3b:6b:ab:ce:d4 reason=3D0 <3>CTRL-EVENT-SCAN-RESULTS = <3>Trying to associate with 6c:3b:6b:3d:a2:e9 (SSID=3D'Palombia' freq=3D2= 452 MHz) <3>Associated with 6c:3b:6b:3d:a2:e9 <3>WPA: Key negotiation completed with 6c:3b:6b:3d:a2:e9 [PTK=3DCCMP GTK=3D= CCMP] <3>CTRL-EVENT-CONNECTED - Connection to 6c:3b:6b:3d:a2:e9 completed [id=3D= 3 id_str=3D] <3>WPA: Group rekeying completed with 6c:3b:6b:3d:a2:e9 [GTK=3DCCMP] And yes, working roaming would be nice too... -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .