In message <CAECmPwuPkYQbHxNC8DKnntjGMndnvqbgfqRy1oSyCx6px9zdcw_at_mail.gmail.c om> , Johannes Lundberg writes: > --0000000000000875960592f275a3 > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > Tested today with bgscan added. Didn=E2=80=99t connect to home network unti= > l I > manually run ifconfig wlan0 scan. > Again, this is with failover lagg. I use failover lagg too. I'm still at $JOB so no ethernet for my personal FreeBSD laptop here, but that works as well, at home. > > It did however realize I wasn't at the office anymore and the ssid = > field > was empty in ifconfig output. Sometimes it stays the same long after I > leave the network. Do you suspend/resume your laptop? -- Cheers, Cy Schubert <Cy.Schubert_at_cschubert.com> FreeBSD UNIX: <cy_at_FreeBSD.org> Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. > > > On Thu, Sep 19, 2019 at 18:25 Cy Schubert <Cy.Schubert_at_cschubert.com> wrote= > : > > > In message <7938e5fa-67da-35fa-10d0-ee3004438df7_at_FreeBSD.org>, Johannes > > Lundber > > g writes: > > > > > > On 9/19/19 3:06 PM, Adrian Chadd wrote: > > > > So roaming in ifconfig/net80211 is what's set to manual. > > > > > > > > wpa_supplicant right now does RSSI threshold based roaming. All of th= > e > > > > roaming and network preferences when wpa_supplicant is running is don= > e > > > > in wpa_supplicant. That's where you have to look. Ideally > > > > wpa_supplicant would be triggering bgscan too periodically rather tha= > n > > > > only when the RSSI is low. > > > > > > > > > > > > > > > > -adrian > > > > > > > > > > > > On Thu, 19 Sep 2019 at 15:04, Cy Schubert <cy.schubert_at_gmail.com > > > > <mailto:cy.schubert_at_gmail.com>> wrote: > > > > > > > > On September 19, 2019 8:20:07 AM PDT, Adrian Chadd > > > > <adrian.chadd_at_gmail.com <mailto:adrian.chadd_at_gmail.com>> wrote: > > > > >Roaming is done in wpa_supplicant when it's running.That's where > > the > > > > >smarts > > > > >need to be. :( > > > > > > > > > > > > > > > > > > > >-adrian > > > > > > > > > > > > > > >On Thu, 19 Sep 2019 at 05:44, Bjoern A. Zeeb > > > > ><bzeeb-lists_at_lists.zabbadoz.net > > > > <mailto:bzeeb-lists_at_lists.zabbadoz.net>> > > > > >wrote: > > > > > > > > > >> 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_at_FreeBSD.or= > g > > >, > > > > >> >> 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=3D0" when I move inside m= > y > > > > 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. > > > > >> >> > > > > >> >> 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:d= > 4 > > > > >[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:e= > 9 > > > > >[GTK=3DCCMP] > > > > >> >> > > > > >> >> And yes, working roaming would be nice too... > > > > >> > > > > > >> > I have the problem that when roaming networks become disable= > d > > > > >> > > > > > >> > $ 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 a= > ll > > > > >comes > > > > >> > back. I asked Adrian about this in the past, but it needs so= > me > > > > >> > debugging > > > > >> > to pin down. > > > > >> > > > > >> > > > > >> Is this iwm(4) as well in your case or another card? > > > > >> > > > > >> /bz > > > > >> _______________________________________________ > > > > >> freebsd-wireless_at_freebsd.org > > > > <mailto:freebsd-wireless_at_freebsd.org> mailing list > > > > >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > > > >> To unsubscribe, send any mail to > > > > >"freebsd-wireless-unsubscribe_at_freebsd.org > > > > <mailto:freebsd-wireless-unsubscribe_at_freebsd.org> > > > > >> " > > > > >> > > > > >_______________________________________________ > > > > >freebsd-current_at_freebsd.org <mailto:freebsd-current_at_freebsd.org> > > > > mailing list > > > > >https://lists.freebsd.org/mailman/listinfo/freebsd-current > > > > >To unsubscribe, send any mail to > > > > >"freebsd-current-unsubscribe_at_freebsd.org > > > > <mailto:freebsd-current-unsubscribe_at_freebsd.org>" > > > > > > > > With wpa_supplicant running roaming is set to manual. Bgscan > > > > should be enabled. > > > > > > > > At home we have two n (and 2 g) wifi networks. When powering off > > > > one ap it connects to the other (in addition to using lagg to > > > > failover from ethernet to wifi and back). > > > > > > > > Your wpa_supplicant should contain each ssid you intend to use. A > > > > wildcard can be used for open networks. > > > > > > > > It's a while since I've tested this functionality but I can test > > > > again when I get home tonight. > > > > > > > > > > > > -- > > > > Pardon the typos and autocorrect, small keyboard in use. > > > > Cheers, > > > > Cy Schubert <Cy.Schubert_at_cschubert.com > > > > <mailto:Cy.Schubert_at_cschubert.com>> > > > > FreeBSD UNIX: <cy_at_FreeBSD.org> Web: http://www.FreeBSD.org > > > > > > > > The need of the many outweighs the greed of the few. > > > > > > > > > > Hmm so in other words, you have to set bgscan for each network entry yo= > u > > > want roaming? What are some good values for this? > > > > Just tested here. It worked after a short delay, with a not-so-young > > laptop > > with iwn. > > > > wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = > 1500 > > ether 20:NN:NN:NN:NN:NN > > groups: wlan > > ssid "BBBBBBBB" channel 1 (2412 MHz 11g ht/20) bssid > > 78:BB:BB:BB:BB:BB > > regdomain FCC country US authmode WPA2/802.11i privacy ON > > deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 > > bmiss 120 scanvalid 16959 protmode CTS ampdulimit 64k -amsdutx > > amsdurx > > shortgi -stbc -ldpc wme roaming MANUAL > > media: IEEE 802.11 Wireless Ethernet MCS mode 11ng > > status: associated > > nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > > > > And the gory details: > > > > Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-DISCONNECTE= > D > > bssid=3Da6:NN:NN:NN:NN:NN reason=3D0 > > Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: Trying to associate > > with > > a6:NN:NN:NN:NN:NN (SSID=3D'AAA' freq=3D2462 MHz) > > Sep 19 17:21:35 slippy wpa_supplicant[381]: Failed to add supported > > operating classes IE > > Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: Associated with > > a6:NN:NN:NN:NN:NN > > Sep 19 17:21:45 slippy wpa_supplicant[381]: wlan0: Authentication with > > a6:08:ea:9c:a0:84 timed out. > > Sep 19 17:21:45 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-DISCONNECTE= > D > > bssid=3Da6:NN:NN:NN:NN:NN reason=3D3 locally_generated=3D1 > > Sep 19 17:21:47 slippy wpa_supplicant[381]: wlan0: Trying to associate > > with > > 78:NN:NN:NN:NN:NN (SSID=3D'BBBBBBBBB' freq=3D2412 MHz) > > Sep 19 17:21:47 slippy wpa_supplicant[381]: Failed to add supported > > operating classes IE > > Sep 19 17:21:47 slippy wpa_supplicant[381]: wlan0: Associated with > > 78:NN:NN:NN:NN:NN > > Sep 19 17:21:48 slippy wpa_supplicant[381]: wlan0: WPA: Key negotiation > > completed with 78:NN:NN:NN:NN:NN [PTK=3DCCMP GTK=3DCCMP] > > Sep 19 17:21:48 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-CONNECTED - > > Connection to 78:NN:NN:NN:NN:NN completed [id=3D7 id_str=3D] > > > > AAA is my cell phone. the B's are $JOB. > > > > The relevant parts of my wpa_supplicant.conf: > > > > network=3D{ > > ssid=3D"AAA" > > priority=3D6 > > proto=3DRSN WPA > > key_mgmt=3DWPA-PSK > > pairwise=3DCCMP > > group=3DCCMP > > psk=3D"x" > > } > > > > network=3D{ > > ssid=3D"BBBBBBBBB" > > scan_ssid=3D1 > > priority=3D5 > > proto=3DRSN WPA > > key_mgmt=3DWPA-PSK > > pairwise=3DCCMP TKIP > > group=3DCCMP TKIP > > psk=3D"y" > > } > > > > #Wildcard match for SSID (plaintext APs only). This example select any > > #open AP regardless of its SSID. > > network=3D{ > > priority=3D0 > > disabled=3D1 > > key_mgmt=3DNONE > > } > > > > Hope this helps. > > > > > > -- > > Cheers, > > Cy Schubert <Cy.Schubert_at_cschubert.com> > > FreeBSD UNIX: <cy_at_FreeBSD.org> Web: http://www.FreeBSD.org > > > > The need of the many outweighs the greed of the few. > > > > > > > > --0000000000000875960592f275a3 > Content-Type: text/html; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > <div><div dir=3D"auto">Tested today with bgscan added. Didn=E2=80=99t conne= > ct to home network until I manually run ifconfig wlan0 scan.=C2=A0</div></d= > iv><div dir=3D"auto">Again, this is with failover lagg.=C2=A0</div><div dir= > =3D"auto"><br></div><div dir=3D"auto">It did however realize I wasn=E2=80= > =99t at the office anymore and the ssid field was empty in ifconfig output.= > Sometimes it stays the same long after I leave the network.=C2=A0</div><di= > v dir=3D"auto"><br></div><div><br><div class=3D"gmail_quote"><div dir=3D"lt= > r" class=3D"gmail_attr">On Thu, Sep 19, 2019 at 18:25 Cy Schubert <<a hr= > ef=3D"mailto:Cy.Schubert_at_cschubert.com">Cy.Schubert_at_cschubert.com</a>> w= > rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex= > ;border-left:1px #ccc solid;padding-left:1ex">In message <7938e5fa-67da-= > 35fa-10d0-ee3004438df7_at_FreeBSD.org>, Johannes <br> > Lundber<br> > g writes:<br> > > <br> > > On 9/19/19 3:06 PM, Adrian Chadd wrote:<br> > > > So roaming in ifconfig/net80211 is what's set to manual.<br> > > ><br> > > > wpa_supplicant right now does RSSI threshold based roaming. All o= > f the<br> > > > roaming and network preferences when wpa_supplicant is running is= > done<br> > > > in wpa_supplicant. That's where you have to look. Ideally<br> > > > wpa_supplicant would be triggering bgscan too periodically rather= > than<br> > > > only when the RSSI is low.<br> > > ><br> > > ><br> > > ><br> > > > -adrian<br> > > ><br> > > ><br> > > > On Thu, 19 Sep 2019 at 15:04, Cy Schubert <<a href=3D"mailto:c= > y.schubert_at_gmail.com" target=3D"_blank">cy.schubert_at_gmail.com</a><br> > > > <mailto:<a href=3D"mailto:cy.schubert_at_gmail.com" target=3D"_bl= > ank">cy.schubert_at_gmail.com</a>>> wrote:<br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0On September 19, 2019 8:20:07 AM PDT, Adrian C= > hadd<br> > > >=C2=A0 =C2=A0 =C2=A0<<a href=3D"mailto:adrian.chadd_at_gmail.com" = > target=3D"_blank">adrian.chadd_at_gmail.com</a> <mailto:<a href=3D"mailto:a= > drian.chadd_at_gmail.com" target=3D"_blank">adrian.chadd_at_gmail.com</a>>>= > wrote:<br> > > >=C2=A0 =C2=A0 =C2=A0>Roaming is done in wpa_supplicant when it&= > #39;s running.That's where the<br> > > >=C2=A0 =C2=A0 =C2=A0>smarts<br> > > >=C2=A0 =C2=A0 =C2=A0>need to be. :(<br> > > >=C2=A0 =C2=A0 =C2=A0><br> > > >=C2=A0 =C2=A0 =C2=A0><br> > > >=C2=A0 =C2=A0 =C2=A0><br> > > >=C2=A0 =C2=A0 =C2=A0>-adrian<br> > > >=C2=A0 =C2=A0 =C2=A0><br> > > >=C2=A0 =C2=A0 =C2=A0><br> > > >=C2=A0 =C2=A0 =C2=A0>On Thu, 19 Sep 2019 at 05:44, Bjoern A. Ze= > eb<br> > > >=C2=A0 =C2=A0 =C2=A0><<a href=3D"mailto:bzeeb-lists_at_lists.za= > bbadoz.net" target=3D"_blank">bzeeb-lists_at_lists.zabbadoz.net</a><br> > > >=C2=A0 =C2=A0 =C2=A0<mailto:<a href=3D"mailto:bzeeb-lists_at_lists= > .zabbadoz.net" target=3D"_blank">bzeeb-lists_at_lists.zabbadoz.net</a>>>= > <br> > > >=C2=A0 =C2=A0 =C2=A0>wrote:<br> > > >=C2=A0 =C2=A0 =C2=A0><br> > > >=C2=A0 =C2=A0 =C2=A0>> On 19 Sep 2019, at 12:28, Tom Jones w= > rote:<br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>> Hi,<br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>> freebsd-wireless might be a better li= > st for all this ..<br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>> > On Tue, Sep 17, 2019 at 04:36:28= > PM +0000, Poul-Henning Kamp<br> > > >=C2=A0 =C2=A0 =C2=A0wrote:<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> --------<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> In message <707bcd3f-fa6b= > -82eb-fa8f-09c4b800f477_at_FreeBSD.org>,<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> Johannes Lundber<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> g writes:<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >>> For a long time now I ha= > ve had this problem with iwm and wlan0.<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>> Whenever<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>> I move between work and = > home it won't reconnect<br> > > >=C2=A0 =C2=A0 =C2=A0automatically and<br> > > >=C2=A0 =C2=A0 =C2=A0>I<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>> have<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>> to do wlan0 scan manuall= > y for it to pick up the different<br> > > >=C2=A0 =C2=A0 =C2=A0>network.<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >> I suffer from the dreaded &q= > uot;reason=3D0" when I move inside my<br> > > >=C2=A0 =C2=A0 =C2=A0house:<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 > sca= > n<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 OK<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-SCAN-RESULTS<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Trying to associate with 6c:3b:6b:3d:a2:e9<br> > > >=C2=A0 =C2=A0 =C2=A0>(SSID=3D'Palombia'<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> freq=3D2452 MHz)<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-DISCONNECTED bssid=3D6c:3b:6b:3d:a2:e9 reason<br> > > =3D0<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-SCAN-RESULTS<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Trying to associate with 6c:3b:6b:ab:ce:d4<br> > > >=C2=A0 =C2=A0 =C2=A0>(SSID=3D'Palombia'<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> freq=3D2412 MHz)<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Associated with 6c:3b:6b:ab:ce:d4<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >> a2:e9 is the loudest AP here= > in my office, but my I have been in<br> > > >=C2=A0 =C2=A0 =C2=A0>the<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> other end of the house iwn c= > onsistently fails to associate<br> > > >=C2=A0 =C2=A0 =C2=A0with it<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> and<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> and keeps picking the weaker= > AP in the far end.<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >> Eventually (hours!) it disco= > nnects from the weaker ap, also with<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> "reason=3D0" and g= > ets it right:<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;WPA: Group rekeying completed with 6c:3b:6b:ab:ce:d4<br> > > >=C2=A0 =C2=A0 =C2=A0>[GTK=3DCCMP]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-DISCONNECTED bssid=3D6c:3b:6b:ab:ce:d4 reason<br> > > =3D0<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-SCAN-RESULTS<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Trying to associate with 6c:3b:6b:3d:a2:e9<br> > > >=C2=A0 =C2=A0 =C2=A0>(SSID=3D'Palombia'<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> freq=3D2452 MHz)<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Associated with 6c:3b:6b:3d:a2:e9<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;WPA: Key negotiation completed with 6c:3b:6b:3d:a2:e9<br> > > >=C2=A0 =C2=A0 =C2=A0>[PTK=3DCCMP<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> GTK=3DCCMP]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-CONNECTED - Connection to 6c:3b:6b:3d:a2:e9<br> > > >=C2=A0 =C2=A0 =C2=A0>> completed<br> > > >=C2=A0 =C2=A0 =C2=A0>> >> [id=3D3 id_str=3D]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;WPA: Group rekeying completed with 6c:3b:6b:3d:a2:e9<br> > > >=C2=A0 =C2=A0 =C2=A0>[GTK=3DCCMP]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >><br> > > >=C2=A0 =C2=A0 =C2=A0>> >> And yes, working roaming wou= > ld be nice too...<br> > > >=C2=A0 =C2=A0 =C2=A0>> ><br> > > >=C2=A0 =C2=A0 =C2=A0>> > I have the problem that when roa= > ming networks become disabled<br> > > >=C2=A0 =C2=A0 =C2=A0>> ><br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0$ wpa_= > cli<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Select= > ed interface 'wlan0'<br> > > >=C2=A0 =C2=A0 =C2=A0>> ><br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Intera= > ctive mode<br> > > >=C2=A0 =C2=A0 =C2=A0>> ><br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0> l= > ist_networks<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0networ= > k id / ssid / bssid / flags<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A00=C2= > =A0 =C2=A0 =C2=A0 =C2=A0network1=C2=A0 =C2=A0 =C2=A0 =C2=A0 any=C2=A0 =C2= > =A0 =C2=A0[CURRENT]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A01=C2= > =A0 =C2=A0 =C2=A0 =C2=A0network2 any=C2=A0 =C2=A0 [DISABLED]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A02=C2= > =A0 =C2=A0 =C2=A0 =C2=A0network3 any=C2=A0 =C2=A0 [DISABLED]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A03=C2= > =A0 =C2=A0 =C2=A0 =C2=A0network4 any=C2=A0 =C2=A0 [DISABLED]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A04=C2= > =A0 =C2=A0 =C2=A0 =C2=A0network5 any=C2=A0 =C2=A0 [DISABLED]<br> > > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Select= > ed interface 'wlan0'<br> > > >=C2=A0 =C2=A0 =C2=A0>> ><br> > > >=C2=A0 =C2=A0 =C2=A0>> ><br> > > >=C2=A0 =C2=A0 =C2=A0>> > I address this by doing network_= > enable x in wpa_cli and it all<br> > > >=C2=A0 =C2=A0 =C2=A0>comes<br> > > >=C2=A0 =C2=A0 =C2=A0>> > back. I asked Adrian about this = > in the past, but it needs some<br> > > >=C2=A0 =C2=A0 =C2=A0>> > debugging<br> > > >=C2=A0 =C2=A0 =C2=A0>> > to pin down.<br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>> Is this iwm(4) as well in your case o= > r another card?<br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>> /bz<br> > > >=C2=A0 =C2=A0 =C2=A0>> _____________________________________= > __________<br> > > >=C2=A0 =C2=A0 =C2=A0>> <a href=3D"mailto:freebsd-wireless_at_fr= > eebsd.org" target=3D"_blank">freebsd-wireless_at_freebsd.org</a><br> > > >=C2=A0 =C2=A0 =C2=A0<mailto:<a href=3D"mailto:freebsd-wireless_at_= > freebsd.org" target=3D"_blank">freebsd-wireless_at_freebsd.org</a>> mailing= > list<br> > > >=C2=A0 =C2=A0 =C2=A0>> <a href=3D"https://lists.freebsd.org/= > mailman/listinfo/freebsd-wireless" rel=3D"noreferrer" target=3D"_blank">htt= > ps://lists.freebsd.org/mailman/listinfo/freebsd-wireless</a><br> > > >=C2=A0 =C2=A0 =C2=A0>> To unsubscribe, send any mail to<br> > > >=C2=A0 =C2=A0 =C2=A0>"<a href=3D"mailto:freebsd-wireless-u= > nsubscribe_at_freebsd.org" target=3D"_blank">freebsd-wireless-unsubscribe_at_free= > bsd.org</a><br> > > >=C2=A0 =C2=A0 =C2=A0<mailto:<a href=3D"mailto:freebsd-wireless-= > unsubscribe_at_freebsd.org" target=3D"_blank">freebsd-wireless-unsubscribe_at_fre= > ebsd.org</a>><br> > > >=C2=A0 =C2=A0 =C2=A0>> "<br> > > >=C2=A0 =C2=A0 =C2=A0>><br> > > >=C2=A0 =C2=A0 =C2=A0>__________________________________________= > _____<br> > > >=C2=A0 =C2=A0 =C2=A0><a href=3D"mailto:freebsd-current_at_freebsd.= > org" target=3D"_blank">freebsd-current_at_freebsd.org</a> <mailto:<a href= > =3D"mailto:freebsd-current_at_freebsd.org" target=3D"_blank">freebsd-current_at_f= > reebsd.org</a>><br> > > >=C2=A0 =C2=A0 =C2=A0mailing list<br> > > >=C2=A0 =C2=A0 =C2=A0><a href=3D"https://lists.freebsd.org/mailm= > an/listinfo/freebsd-current" rel=3D"noreferrer" target=3D"_blank">https://l= > ists.freebsd.org/mailman/listinfo/freebsd-current</a><br> > > >=C2=A0 =C2=A0 =C2=A0>To unsubscribe, send any mail to<br> > > >=C2=A0 =C2=A0 =C2=A0>"<a href=3D"mailto:freebsd-current-un= > subscribe_at_freebsd.org" target=3D"_blank">freebsd-current-unsubscribe_at_freebs= > d.org</a><br> > > >=C2=A0 =C2=A0 =C2=A0<mailto:<a href=3D"mailto:freebsd-current-u= > nsubscribe_at_freebsd.org" target=3D"_blank">freebsd-current-unsubscribe_at_freeb= > sd.org</a>>"<br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0With wpa_supplicant running roaming is set to = > manual. Bgscan<br> > > >=C2=A0 =C2=A0 =C2=A0should be enabled.=C2=A0<br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0At home we have two n (and 2 g) wifi networks.= > When powering off<br> > > >=C2=A0 =C2=A0 =C2=A0one ap it connects to the other (in addition t= > o using lagg to<br> > > >=C2=A0 =C2=A0 =C2=A0failover from ethernet to wifi and back).<br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0Your wpa_supplicant should contain each ssid y= > ou intend to use. A<br> > > >=C2=A0 =C2=A0 =C2=A0wildcard can be used for open networks.<br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0It's a while since I've tested this fu= > nctionality but I can test<br> > > >=C2=A0 =C2=A0 =C2=A0again when I get home tonight.<br> > > ><br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0-- <br> > > >=C2=A0 =C2=A0 =C2=A0Pardon the typos and autocorrect, small keyboa= > rd in use.<br> > > >=C2=A0 =C2=A0 =C2=A0Cheers,<br> > > >=C2=A0 =C2=A0 =C2=A0Cy Schubert <<a href=3D"mailto:Cy.Schubert_at_= > cschubert.com" target=3D"_blank">Cy.Schubert_at_cschubert.com</a><br> > > >=C2=A0 =C2=A0 =C2=A0<mailto:<a href=3D"mailto:Cy.Schubert_at_cschu= > bert.com" target=3D"_blank">Cy.Schubert_at_cschubert.com</a>>><br> > > >=C2=A0 =C2=A0 =C2=A0FreeBSD UNIX: <cy_at_FreeBSD.org> Web: <a h= > ref=3D"http://www.FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">http://= > www.FreeBSD.org</a><br> > > ><br> > > >=C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 The need of the ma= > ny outweighs the greed of the few.<br> > > ><br> > ><br> > > Hmm so in other words, you have to set bgscan for each network entry y= > ou<br> > > want roaming? What are some good values for this?<br> > <br> > Just tested here. It worked after a short delay, with a not-so-young laptop= > <br> > with iwn.<br> > <br> > wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 = > mtu 1500<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 20:NN:NN:NN:NN:NN<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid "BBBBBBBB" channel 1 (2412 MHz 1= > 1g ht/20) bssid 78:BB:BB:BB:BB:BB<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 regdomain FCC country US authmode WPA2/802.11i = > privacy ON<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-= > bit txpower 30<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 bmiss 120 scanvalid 16959 protmode CTS ampdulim= > it 64k -amsdutx amsdurx<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 shortgi -stbc -ldpc wme roaming MANUAL<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 media: IEEE 802.11 Wireless Ethernet MCS mode 1= > 1ng<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 status: associated<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_= > LINKLOCAL><br> > <br> > And the gory details:<br> > <br> > Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-DISCONNECTED = > <br> > bssid=3Da6:NN:NN:NN:NN:NN reason=3D0<br> > Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: Trying to associate with= > <br> > a6:NN:NN:NN:NN:NN (SSID=3D'AAA' freq=3D2462 MHz)<br> > Sep 19 17:21:35 slippy wpa_supplicant[381]: Failed to add supported <br> > operating classes IE<br> > Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: Associated with <br> > a6:NN:NN:NN:NN:NN<br> > Sep 19 17:21:45 slippy wpa_supplicant[381]: wlan0: Authentication with <br> > a6:08:ea:9c:a0:84 timed out.<br> > Sep 19 17:21:45 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-DISCONNECTED = > <br> > bssid=3Da6:NN:NN:NN:NN:NN reason=3D3 locally_generated=3D1<br> > Sep 19 17:21:47 slippy wpa_supplicant[381]: wlan0: Trying to associate with= > <br> > 78:NN:NN:NN:NN:NN (SSID=3D'BBBBBBBBB' freq=3D2412 MHz)<br> > Sep 19 17:21:47 slippy wpa_supplicant[381]: Failed to add supported <br> > operating classes IE<br> > Sep 19 17:21:47 slippy wpa_supplicant[381]: wlan0: Associated with <br> > 78:NN:NN:NN:NN:NN<br> > Sep 19 17:21:48 slippy wpa_supplicant[381]: wlan0: WPA: Key negotiation <br= > > > completed with 78:NN:NN:NN:NN:NN [PTK=3DCCMP GTK=3DCCMP]<br> > Sep 19 17:21:48 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-CONNECTED - <= > br> > Connection to 78:NN:NN:NN:NN:NN completed [id=3D7 id_str=3D]<br> > <br> > AAA is my cell phone. the B's are $JOB.<br> > <br> > The relevant parts of my wpa_supplicant.conf:<br> > <br> > network=3D{<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid=3D"AAA"<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 priority=3D6<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 proto=3DRSN WPA<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt=3DWPA-PSK<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 pairwise=3DCCMP<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 group=3DCCMP<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 psk=3D"x"<br> > }<br> > <br> > network=3D{<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid=3D"BBBBBBBBB"<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 scan_ssid=3D1<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 priority=3D5<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 proto=3DRSN WPA<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt=3DWPA-PSK<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 pairwise=3DCCMP TKIP<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 group=3DCCMP TKIP<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 psk=3D"y"<br> > }<br> > <br> > #Wildcard match for SSID (plaintext APs only). This example select any<br> > #open AP regardless of its SSID.<br> > network=3D{<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 priority=3D0<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 disabled=3D1<br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt=3DNONE<br> > }<br> > <br> > Hope this helps.<br> > <br> > <br> > -- <br> > Cheers,<br> > Cy Schubert <<a href=3D"mailto:Cy.Schubert_at_cschubert.com" target=3D"_bla= > nk">Cy.Schubert_at_cschubert.com</a>><br> > FreeBSD UNIX:=C2=A0 <cy_at_FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 <a href= > =3D"http://www.FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">http://www= > .FreeBSD.org</a><br> > <br> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 The need of the many outweighs the greed of the= > few.<br> > <br> > <br> > </blockquote></div></div> > > --0000000000000875960592f275a3--Received on Fri Sep 20 2019 - 00:30:11 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC