From owner-freebsd-current@freebsd.org Thu Sep 19 22:06:16 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 B1B0512FC3D; Thu, 19 Sep 2019 22:06:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Z9sg72Dkz4LbB; Thu, 19 Sep 2019 22:06:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yb1-xb29.google.com with SMTP id t15so1926001ybg.7; Thu, 19 Sep 2019 15:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3g8Gg/HJeCzMJUy2vIcp0E6F6jUmAdtDFu9grw/iaOA=; b=dyWbNw5jhDixmva7pZ5/B89glMl1jFDAt+1qaKFPxKTfT5jcBQ1fyniMtXfO1JrsAZ lz4mrgu8LMvyzSD6jtNvBaFaoMNZQ+PredcXr3E6fs/M1kE1DebkPXKjJQgk26EusAX2 OYrRFlrh5kl2v/KluO9V01JbobGyl5Tj09E7waX3MrhWoTapsDPKyEAw/OzuqTrZ+O0h GySz79JPB9ag+MUu+44nmXYzrXWI+U5K1ZMlnomZz7GB7KB8VZJlRYO/e38o2vgXVI7C icootRHlB2u5GLwHtBw7HP9/Kqi7jOWhfeTlhFjqsOy8m04dtrlttHLV0lLYpuk8KF99 3dXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3g8Gg/HJeCzMJUy2vIcp0E6F6jUmAdtDFu9grw/iaOA=; b=NTxy+CWBMXrAlkjSyZwtAYbBmuCAH5MpyRRrChkSSsCBqzrx+pg+XQ6ISnSdhwjb1K 4DWoTfuh6bVCOrZbeIFrCP4B5Wi/X6VfqinqeL6dkl8lwO2roDup7ku+xxfolPRHs3Nn s2EvI2IkDrQ9lY6WtJZMEQzNrAws6bTP3kmCczX2dD4kWo5q8MREu3IVLRgNF9Tytqj+ pghktJF/UKgDrncTXRKqC7hvaJy/iLekCKm4ArBBQF+rMWBY/H0F2+7qBfrajk5K3fhV IUKttEohWE3DPuB1wSR3aSkoNPQgXN39pp1ZWGWyeNZXO+vey7hZT342nAVp6ORo+cdz I/MQ== X-Gm-Message-State: APjAAAVLPMDS/pkp8o5bfaLU7ggGukc7EJqUNEywBIrghjIPG4WfbSpf j/MCZMOtMsekohfeVSVS3ZIMroZT3Wz3bYw6FB8wGg== X-Google-Smtp-Source: APXvYqxoFKbxNd6/EW/F1Gg/BOYNDUbWDow0sKQpSsuopKDL2EK3Dcsd7lLmUYH5mLTt9PS8GjEw4YZYbbLod/Jhgp8= X-Received: by 2002:a25:25ca:: with SMTP id l193mr8518569ybl.193.1568930774463; Thu, 19 Sep 2019 15:06:14 -0700 (PDT) MIME-Version: 1.0 References: <707bcd3f-fa6b-82eb-fa8f-09c4b800f477@FreeBSD.org> <6985.1568738188@critter.freebsd.dk> <20190919122804.GA80037@tom-desk.erg.abdn.ac.uk> In-Reply-To: From: Adrian Chadd Date: Thu, 19 Sep 2019 15:06:00 -0700 Message-ID: Subject: Re: wlan can't discover known networks after relocating To: Cy Schubert Cc: freebsd-current , "freebsd-wireless@freebsd.org" , Tom Jones , Poul-Henning Kamp , Johannes Lundberg X-Rspamd-Queue-Id: 46Z9sg72Dkz4LbB X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dyWbNw5j; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::b29 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-0.50 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; URI_COUNT_ODD(1.00)[9]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[9.2.b.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.16), ipnet: 2607:f8b0::/32(-2.66), asn: 15169(-2.22), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 22:06:16 -0000 So roaming in ifconfig/net80211 is what's set to manual. wpa_supplicant right now does RSSI threshold based roaming. All of 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 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.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. > >> > >> > >> 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. >