Re: wlan can't discover known networks after relocating

From: Tom Jones <thj_at_freebsd.org>
Date: Thu, 19 Sep 2019 13:28:04 +0100
On Tue, Sep 17, 2019 at 04:36:28PM +0000, Poul-Henning Kamp wrote:
> --------
> In message <707bcd3f-fa6b-82eb-fa8f-09c4b800f477_at_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]
Received on Thu Sep 19 2019 - 10:30:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC