From owner-freebsd-current@freebsd.org Fri Sep 20 02:30:11 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 C504FEDECD; Fri, 20 Sep 2019 02:30:11 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46ZHkB0qXLz4YkN; Fri, 20 Sep 2019 02:30:09 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id B8gQix0CGIhW9B8gRibiLE; Thu, 19 Sep 2019 20:30:08 -0600 X-Authority-Analysis: v=2.3 cv=FcFJO626 c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=pGLkceISAAAA:8 a=9bHR7MVLAAAA:8 a=o4W7w11LAAAA:8 a=kUCByv9wAAAA:8 a=IIX2BFdiAAAA:8 a=NMM7OKYrAAAA:8 a=0VOg8hKvAAAA:8 a=vUPWEWiMAAAA:8 a=SLG1KRGDAAAA:8 a=xdb5K4IfAAAA:8 a=dliLc1HNdIQPMY3R8XkA:9 a=-4mYsfVcJZb0LWw9:21 a=SqWaXOqbkYc2v_37:21 a=ifW8yVZGP7kgUp4i:21 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=I7KxNEAtLM9g1UmuDjRu:22 a=PaFTRifc8KBnsvTAljXf:22 a=bu_5hG6eGWxBxPYBRUjp:22 a=rHg00LAlvzXsuODty-Nv:22 a=isrg6BwTYk6I_F0B0DtW:22 a=I-efbNKAaAt4Mg394dr-:22 a=s3Yi14Of9AgBIP63TAoC:22 a=-TBaU1e9WpdkKBzYXnwo:22 a=AuRjBy9VhmoZW1Pfxjoc:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id A8BFCD5; Thu, 19 Sep 2019 19:30:05 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x8K2U5uA074059; Thu, 19 Sep 2019 19:30:05 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x8K2U4DS074056; Thu, 19 Sep 2019 19:30:04 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909200230.x8K2U4DS074056@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Johannes Lundberg cc: Cy Schubert , Adrian Chadd , Cy Schubert , Johannes Lundberg , Poul-Henning Kamp , Tom Jones , freebsd-current , "freebsd-wireless@freebsd.org" Subject: Re: wlan can't discover known networks after relocating In-reply-to: References: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> <6985.1568738188@critter.freebsd.dk> <20190919122804.GA80037@tom-desk.erg.abdn.ac.uk> <7938e5fa-67da-35fa-10d0-ee3004438df7@FreeBSD.org> <201909200125.x8K1Pfhd085841@slippy.cwsent.com> Comments: In-reply-to Johannes Lundberg message dated "Thu, 19 Sep 2019 19:01:55 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 19 Sep 2019 19:30:04 -0700 X-CMAE-Envelope: MS4wfKjwzbhwGK7BKtKIJgBKb/6GU6P6ZaUxpQVa8isNDoIPLqLsdUwNTBLriCPLhbFiNnJ+Znleic2vxo9d/IaSIdmjBjMRuJ/kE57uljvgjVCEm85aAzd4 PJWt8NSu6UbUrJhL7olP/uNkuAxrLYjQbEou2okpnKICY76EFIJwrA0/ik4kaaqrYc1liNM4idW+0YzZqJklHBjfbr7b1peKLZpR31+z3oYCCzdQQQ4D7FiL 8I9omKy60D1Nkw4qDTYSTkeGMd1gRmfh/C9ROvJQzbCYeoI2+9u93b+YBQ0QSfof8hHwDgFP/oHdK3WHqtqPHA== X-Rspamd-Queue-Id: 46ZHkB0qXLz4YkN X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.137) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-2.38 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-2.28)[ip: (-5.86), ipnet: 64.59.128.0/20(-3.08), asn: 6327(-2.39), country: CA(-0.09)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[137.136.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] 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: Fri, 20 Sep 2019 02:30:11 -0000 In message , 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 FreeBSD UNIX: 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 wrote= > : > > > In message <7938e5fa-67da-35fa-10d0-ee3004438df7@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 > > > > wrote: > > > > > > > > On September 19, 2019 8:20:07 AM PDT, Adrian Chadd > > > > > 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 > > > > > > > > > > > > > >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@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@freebsd.org > > > > mailing list > > > > >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > > > >> To unsubscribe, send any mail to > > > > >"freebsd-wireless-unsubscribe@freebsd.org > > > > > > > > >> " > > > > >> > > > > >_______________________________________________ > > > > >freebsd-current@freebsd.org > > > > mailing list > > > > >https://lists.freebsd.org/mailman/listinfo/freebsd-current > > > > >To unsubscribe, send any mail to > > > > >"freebsd-current-unsubscribe@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 > > > > > > > > FreeBSD UNIX: 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 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 > > > > 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 > > FreeBSD UNIX: 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 > >
Tested today with bgscan added. Didn=E2=80=99t conne= > ct to home network until I manually run ifconfig wlan0 scan.=C2=A0
iv>
Again, this is with failover lagg.=C2=A0
=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
v dir=3D"auto">

r" class=3D"gmail_attr">On Thu, Sep 19, 2019 at 18:25 Cy Schubert < ef=3D"mailto:Cy.Schubert@cschubert.com">Cy.Schubert@cschubert.com> w= > rote:
;border-left:1px #ccc solid;padding-left:1ex">In message <7938e5fa-67da-= > 35fa-10d0-ee3004438df7@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 o= > f the
> > > roaming and network preferences when wpa_supplicant is running is= > done
> > > in wpa_supplicant. That's where you have to look. Ideally
> > > wpa_supplicant would be triggering bgscan too periodically rather= > than
> > > only when the RSSI is low.
> > >
> > >
> > >
> > > -adrian
> > >
> > >
> > > On Thu, 19 Sep 2019 at 15:04, Cy Schubert < y.schubert@gmail.com" target=3D"_blank">cy.schubert@gmail.com
> > > <mailto: ank">cy.schubert@gmail.com>> wrote:
> > >
> > >=C2=A0 =C2=A0 =C2=A0On September 19, 2019 8:20:07 AM PDT, Adrian C= > hadd
> > >=C2=A0 =C2=A0 =C2=A0< target=3D"_blank">adrian.chadd@gmail.com <mailto: drian.chadd@gmail.com" target=3D"_blank">adrian.chadd@gmail.com>>= > wrote:
> > >=C2=A0 =C2=A0 =C2=A0>Roaming is done in wpa_supplicant when it&= > #39;s running.That's where the
> > >=C2=A0 =C2=A0 =C2=A0>smarts
> > >=C2=A0 =C2=A0 =C2=A0>need to be. :(
> > >=C2=A0 =C2=A0 =C2=A0>
> > >=C2=A0 =C2=A0 =C2=A0>
> > >=C2=A0 =C2=A0 =C2=A0>
> > >=C2=A0 =C2=A0 =C2=A0>-adrian
> > >=C2=A0 =C2=A0 =C2=A0>
> > >=C2=A0 =C2=A0 =C2=A0>
> > >=C2=A0 =C2=A0 =C2=A0>On Thu, 19 Sep 2019 at 05:44, Bjoern A. Ze= > eb
> > >=C2=A0 =C2=A0 =C2=A0>< bbadoz.net" target=3D"_blank">bzeeb-lists@lists.zabbadoz.net
> > >=C2=A0 =C2=A0 =C2=A0<mailto: .zabbadoz.net" target=3D"_blank">bzeeb-lists@lists.zabbadoz.net>>= >
> > >=C2=A0 =C2=A0 =C2=A0>wrote:
> > >=C2=A0 =C2=A0 =C2=A0>
> > >=C2=A0 =C2=A0 =C2=A0>> On 19 Sep 2019, at 12:28, Tom Jones w= > rote:
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>> Hi,
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>> freebsd-wireless might be a better li= > st for all this ..
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>> > On Tue, Sep 17, 2019 at 04:36:28= > PM +0000, Poul-Henning Kamp
> > >=C2=A0 =C2=A0 =C2=A0wrote:
> > >=C2=A0 =C2=A0 =C2=A0>> >> --------
> > >=C2=A0 =C2=A0 =C2=A0>> >> In message <707bcd3f-fa6b= > -82eb-fa8f-09c4b800f477@FreeBSD.org>,
> > >=C2=A0 =C2=A0 =C2=A0>> >> Johannes Lundber
> > >=C2=A0 =C2=A0 =C2=A0>> >> g writes:
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >>> For a long time now I ha= > ve had this problem with iwm and wlan0.
> > >=C2=A0 =C2=A0 =C2=A0>> >>> Whenever
> > >=C2=A0 =C2=A0 =C2=A0>> >>> I move between work and = > home it won't reconnect
> > >=C2=A0 =C2=A0 =C2=A0automatically and
> > >=C2=A0 =C2=A0 =C2=A0>I
> > >=C2=A0 =C2=A0 =C2=A0>> >>> have
> > >=C2=A0 =C2=A0 =C2=A0>> >>> to do wlan0 scan manuall= > y for it to pick up the different
> > >=C2=A0 =C2=A0 =C2=A0>network.
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >> I suffer from the dreaded &q= > uot;reason=3D0" when I move inside my
> > >=C2=A0 =C2=A0 =C2=A0house:
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 > sca= > n
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 OK
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-SCAN-RESULTS
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Trying to associate with 6c:3b:6b:3d:a2:e9
> > >=C2=A0 =C2=A0 =C2=A0>(SSID=3D'Palombia'
> > >=C2=A0 =C2=A0 =C2=A0>> >> freq=3D2452 MHz)
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-DISCONNECTED bssid=3D6c:3b:6b:3d:a2:e9 reason
> > =3D0
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-SCAN-RESULTS
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Trying to associate with 6c:3b:6b:ab:ce:d4
> > >=C2=A0 =C2=A0 =C2=A0>(SSID=3D'Palombia'
> > >=C2=A0 =C2=A0 =C2=A0>> >> freq=3D2412 MHz)
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Associated with 6c:3b:6b:ab:ce:d4
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >> a2:e9 is the loudest AP here= > in my office, but my I have been in
> > >=C2=A0 =C2=A0 =C2=A0>the
> > >=C2=A0 =C2=A0 =C2=A0>> >> other end of the house iwn c= > onsistently fails to associate
> > >=C2=A0 =C2=A0 =C2=A0with it
> > >=C2=A0 =C2=A0 =C2=A0>> >> and
> > >=C2=A0 =C2=A0 =C2=A0>> >> and keeps picking the weaker= > AP in the far end.
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >> Eventually (hours!) it disco= > nnects from the weaker ap, also with
> > >=C2=A0 =C2=A0 =C2=A0>> >> "reason=3D0" and g= > ets it right:
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;WPA: Group rekeying completed with 6c:3b:6b:ab:ce:d4
> > >=C2=A0 =C2=A0 =C2=A0>[GTK=3DCCMP]
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-DISCONNECTED bssid=3D6c:3b:6b:ab:ce:d4 reason
> > =3D0
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-SCAN-RESULTS
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Trying to associate with 6c:3b:6b:3d:a2:e9
> > >=C2=A0 =C2=A0 =C2=A0>(SSID=3D'Palombia'
> > >=C2=A0 =C2=A0 =C2=A0>> >> freq=3D2452 MHz)
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;Associated with 6c:3b:6b:3d:a2:e9
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;WPA: Key negotiation completed with 6c:3b:6b:3d:a2:e9
> > >=C2=A0 =C2=A0 =C2=A0>[PTK=3DCCMP
> > >=C2=A0 =C2=A0 =C2=A0>> >> GTK=3DCCMP]
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;CTRL-EVENT-CONNECTED - Connection to 6c:3b:6b:3d:a2:e9
> > >=C2=A0 =C2=A0 =C2=A0>> completed
> > >=C2=A0 =C2=A0 =C2=A0>> >> [id=3D3 id_str=3D]
> > >=C2=A0 =C2=A0 =C2=A0>> >>=C2=A0 =C2=A0 =C2=A0 <3>= > ;WPA: Group rekeying completed with 6c:3b:6b:3d:a2:e9
> > >=C2=A0 =C2=A0 =C2=A0>[GTK=3DCCMP]
> > >=C2=A0 =C2=A0 =C2=A0>> >>
> > >=C2=A0 =C2=A0 =C2=A0>> >> And yes, working roaming wou= > ld be nice too...
> > >=C2=A0 =C2=A0 =C2=A0>> >
> > >=C2=A0 =C2=A0 =C2=A0>> > I have the problem that when roa= > ming networks become disabled
> > >=C2=A0 =C2=A0 =C2=A0>> >
> > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0$ wpa_= > cli
> > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Select= > ed interface 'wlan0'
> > >=C2=A0 =C2=A0 =C2=A0>> >
> > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Intera= > ctive mode
> > >=C2=A0 =C2=A0 =C2=A0>> >
> > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0> l= > ist_networks
> > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0networ= > k id / ssid / bssid / flags
> > >=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]
> > >=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]
> > >=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]
> > >=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]
> > >=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]
> > >=C2=A0 =C2=A0 =C2=A0>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0Select= > ed interface 'wlan0'
> > >=C2=A0 =C2=A0 =C2=A0>> >
> > >=C2=A0 =C2=A0 =C2=A0>> >
> > >=C2=A0 =C2=A0 =C2=A0>> > I address this by doing network_= > enable x in wpa_cli and it all
> > >=C2=A0 =C2=A0 =C2=A0>comes
> > >=C2=A0 =C2=A0 =C2=A0>> > back. I asked Adrian about this = > in the past, but it needs some
> > >=C2=A0 =C2=A0 =C2=A0>> > debugging
> > >=C2=A0 =C2=A0 =C2=A0>> > to pin down.
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>> Is this iwm(4) as well in your case o= > r another card?
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>> /bz
> > >=C2=A0 =C2=A0 =C2=A0>> _____________________________________= > __________
> > >=C2=A0 =C2=A0 =C2=A0>> eebsd.org" target=3D"_blank">freebsd-wireless@freebsd.org
> > >=C2=A0 =C2=A0 =C2=A0<mailto: freebsd.org" target=3D"_blank">freebsd-wireless@freebsd.org> mailing= > list
> > >=C2=A0 =C2=A0 =C2=A0>> mailman/listinfo/freebsd-wireless" rel=3D"noreferrer" target=3D"_blank">htt= > ps://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> > >=C2=A0 =C2=A0 =C2=A0>> To unsubscribe, send any mail to
> > >=C2=A0 =C2=A0 =C2=A0>" nsubscribe@freebsd.org" target=3D"_blank">freebsd-wireless-unsubscribe@free= > bsd.org
> > >=C2=A0 =C2=A0 =C2=A0<mailto: unsubscribe@freebsd.org" target=3D"_blank">freebsd-wireless-unsubscribe@fre= > ebsd.org>
> > >=C2=A0 =C2=A0 =C2=A0>> "
> > >=C2=A0 =C2=A0 =C2=A0>>
> > >=C2=A0 =C2=A0 =C2=A0>__________________________________________= > _____
> > >=C2=A0 =C2=A0 =C2=A0> org" target=3D"_blank">freebsd-current@freebsd.org <mailto: =3D"mailto:freebsd-current@freebsd.org" target=3D"_blank">freebsd-current@f= > reebsd.org>
> > >=C2=A0 =C2=A0 =C2=A0mailing list
> > >=C2=A0 =C2=A0 =C2=A0> an/listinfo/freebsd-current" rel=3D"noreferrer" target=3D"_blank">https://l= > ists.freebsd.org/mailman/listinfo/freebsd-current
> > >=C2=A0 =C2=A0 =C2=A0>To unsubscribe, send any mail to
> > >=C2=A0 =C2=A0 =C2=A0>" subscribe@freebsd.org" target=3D"_blank">freebsd-current-unsubscribe@freebs= > d.org
> > >=C2=A0 =C2=A0 =C2=A0<mailto: nsubscribe@freebsd.org" target=3D"_blank">freebsd-current-unsubscribe@freeb= > sd.org>"
> > >
> > >=C2=A0 =C2=A0 =C2=A0With wpa_supplicant running roaming is set to = > manual. Bgscan
> > >=C2=A0 =C2=A0 =C2=A0should be enabled.=C2=A0
> > >
> > >=C2=A0 =C2=A0 =C2=A0At home we have two n (and 2 g) wifi networks.= > When powering off
> > >=C2=A0 =C2=A0 =C2=A0one ap it connects to the other (in addition t= > o using lagg to
> > >=C2=A0 =C2=A0 =C2=A0failover from ethernet to wifi and back).
> > >
> > >=C2=A0 =C2=A0 =C2=A0Your wpa_supplicant should contain each ssid y= > ou intend to use. A
> > >=C2=A0 =C2=A0 =C2=A0wildcard can be used for open networks.
> > >
> > >=C2=A0 =C2=A0 =C2=A0It's a while since I've tested this fu= > nctionality but I can test
> > >=C2=A0 =C2=A0 =C2=A0again when I get home tonight.
> > >
> > >
> > >=C2=A0 =C2=A0 =C2=A0--
> > >=C2=A0 =C2=A0 =C2=A0Pardon the typos and autocorrect, small keyboa= > rd in use.
> > >=C2=A0 =C2=A0 =C2=A0Cheers,
> > >=C2=A0 =C2=A0 =C2=A0Cy Schubert < cschubert.com" target=3D"_blank">Cy.Schubert@cschubert.com
> > >=C2=A0 =C2=A0 =C2=A0<mailto: bert.com" target=3D"_blank">Cy.Schubert@cschubert.com>>
> > >=C2=A0 =C2=A0 =C2=A0FreeBSD UNIX: <cy@FreeBSD.org> Web: ref=3D"http://www.FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">http://= > www.FreeBSD.org
> > >
> > >=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.
> > >
> >
> > Hmm so in other words, you have to set bgscan for each network entry y= > ou
> > 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
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 20:NN:NN:NN:NN:NN
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan
> =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
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 regdomain FCC country US authmode WPA2/802.11i = > privacy ON
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-= > bit txpower 30
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 bmiss 120 scanvalid 16959 protmode CTS ampdulim= > it 64k -amsdutx amsdurx
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 shortgi -stbc -ldpc wme roaming MANUAL
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 media: IEEE 802.11 Wireless Ethernet MCS mode 1= > 1ng
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 status: associated
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_= > LINKLOCAL>
>
> And the gory details:
>
> Sep 19 17:21:35 slippy wpa_supplicant[381]: wlan0: CTRL-EVENT-DISCONNECTED = >
> 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-DISCONNECTED = >
> 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 - <= > br> > 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{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid=3D"AAA"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 priority=3D6
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 proto=3DRSN WPA
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt=3DWPA-PSK
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 pairwise=3DCCMP
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 group=3DCCMP
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 psk=3D"x"
> }
>
> network=3D{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid=3D"BBBBBBBBB"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 scan_ssid=3D1
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 priority=3D5
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 proto=3DRSN WPA
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt=3DWPA-PSK
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 pairwise=3DCCMP TKIP
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 group=3DCCMP TKIP
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 psk=3D"y"
> }
>
> #Wildcard match for SSID (plaintext APs only). This example select any
> #open AP regardless of its SSID.
> network=3D{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 priority=3D0
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 disabled=3D1
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 key_mgmt=3DNONE
> }
>
> Hope this helps.
>
>
> --
> Cheers,
> Cy Schubert < nk">Cy.Schubert@cschubert.com>
> FreeBSD UNIX:=C2=A0 <cy@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 =3D"http://www.FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">http://www= > .FreeBSD.org
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 The need of the many outweighs the greed of the= > few.
>
>
>
> > --0000000000000875960592f275a3--