From owner-freebsd-current@freebsd.org Thu Sep 19 12:30:33 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 E1A15121C7F for ; Thu, 19 Sep 2019 12:30:33 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Yx5P4n7Kz4fN0; Thu, 19 Sep 2019 12:30:33 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id DFE10823; Thu, 19 Sep 2019 08:30:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 19 Sep 2019 08:30:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=kIjXZ8 +z+CEEOdaRI1IOgIPAlr2rN9nV86c6977xdjY=; b=lDQkakjPymrlhDz+7xXnxm 8/XpFNkcr8zm5O2RVISr+Oej7g78/01qa90u/gebf5AJy6AZlahZ/emIehZiI5nS nluMoc7qGfiQz0IpykHTbKOk7DbvwDSG4RC+bPWZHOLH4q/TJ92DEiFpYl/XiMNX 6NaQJgXCJeL0YXZTXdpbt+o6X37Z2KqRC1Ms9E+mPzFQCIqPU0YQkq1h2X02OHP3 PYUyrI5RfxLYxVNxM7fGwV9Vmkp4Nk4OePWYaX2b8hirb4Vg1lMcS6bHPIAcHklr z4N9lgdaaMRjac0JTBb7thBPy3LOcEE7Lrkzn38TOUufDvU+HzFyGKlE3tQLsjTg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujggfsehttdertddtredvnecuhfhrohhmpefvohhmucfl ohhnvghsuceothhhjhesfhhrvggvsghsugdrohhrgheqnecukfhppedufeejrdehtddrud ejrdduvdenucfrrghrrghmpehmrghilhhfrhhomhepthhhjhesfhhrvggvsghsugdrohhr ghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from tom-desk.erg.abdn.ac.uk (tom-desk.erg.abdn.ac.uk [137.50.17.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 8B61480069; Thu, 19 Sep 2019 08:30:30 -0400 (EDT) Date: Thu, 19 Sep 2019 13:28:04 +0100 From: Tom Jones To: Poul-Henning Kamp Cc: Johannes Lundberg , FreeBSD Current Subject: Re: wlan can't discover known networks after relocating Message-ID: <20190919122804.GA80037@tom-desk.erg.abdn.ac.uk> References: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> <6985.1568738188@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6985.1568738188@critter.freebsd.dk> User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: 46Yx5P4n7Kz4fN0 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Thu, 19 Sep 2019 12:30:33 -0000 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. - [tj]