Date: Thu, 19 Sep 2019 15:03:35 -0700 From: Cy Schubert <Cy.Schubert@cschubert.com> To: freebsd-current@freebsd.org, Adrian Chadd <adrian.chadd@gmail.com>, "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Cc: Tom Jones <thj@freebsd.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>, FreeBSD Current <freebsd-current@freebsd.org>, Johannes Lundberg <johalun@freebsd.org> Subject: Re: wlan can't discover known networks after relocating Message-ID: <E5DF6C2E-F71E-4F66-B92E-56897ED91AA2@cschubert.com> In-Reply-To: <CAJ-Vmon0-3xjNZvwNkPk5yTrrA8o8ZWxG2SesCFB9fkAnn=%2BmA@mail.gmail.com> References: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> <6985.1568738188@critter.freebsd.dk> <20190919122804.GA80037@tom-desk.erg.abdn.ac.uk> <D1396AF2-AA20-4B59-A3E7-B27E4A670A14@lists.zabbadoz.net> <CAJ-Vmon0-3xjNZvwNkPk5yTrrA8o8ZWxG2SesCFB9fkAnn=%2BmA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On September 19, 2019 8:20:07 AM PDT, Adrian Chadd <adrian=2Echadd@gmail=2E= com> wrote: >Roaming is done in wpa_supplicant when it's running=2EThat's where the >smarts >need to be=2E :( > > > >-adrian > > >On Thu, 19 Sep 2019 at 05:44, Bjoern A=2E Zeeb ><bzeeb-lists@lists=2Ezabbadoz=2Enet> >wrote: > >> On 19 Sep 2019, at 12:28, Tom Jones wrote: >> >> Hi, >> >> freebsd-wireless might be a better list for all this =2E=2E >> >> >> > On Tue, Sep 17, 2019 at 04:36:28PM +0000, Poul-Henning Kamp wrote: >> >> -------- >> >> In message <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD=2Eorg>, >> >> Johannes Lundber >> >> g writes: >> >> >> >>> For a long time now I have had this problem with iwm and wlan0=2E >> >>> 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=2E >> >> >> >> 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=3D2452 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=3D2412 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=2E >> >> >> >> 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=3D2452 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=3DCCMP] >> >> <3>CTRL-EVENT-CONNECTED - Connection to 6c:3b:6b:3d:a2:e9 >> completed >> >> [id=3D3 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=2E=2E=2E >> > >> > 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=2E I asked Adrian about this in the past, but it needs some >> > debugging >> > to pin down=2E >> >> >> Is this iwm(4) as well in your case or another card? >> >> /bz >> _______________________________________________ >> freebsd-wireless@freebsd=2Eorg mailing list >> https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >"freebsd-wireless-unsubscribe@freebsd=2Eorg >> " >> >_______________________________________________ >freebsd-current@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to >"freebsd-current-unsubscribe@freebsd=2Eorg" With wpa_supplicant running roaming is set to manual=2E Bgscan should be e= nabled=2E =20 At home we have two n (and 2 g) wifi networks=2E When powering off one ap = it connects to the other (in addition to using lagg to failover from ethern= et to wifi and back)=2E Your wpa_supplicant should contain each ssid you intend to use=2E A wildca= rd can be used for open networks=2E It's a while since I've tested this functionality but I can test again whe= n I get home tonight=2E=20 --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert <Cy=2ESchubert@cschubert=2Ecom> FreeBSD UNIX: <cy@FreeBSD=2Eorg> Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E5DF6C2E-F71E-4F66-B92E-56897ED91AA2>