From owner-freebsd-mobile@FreeBSD.ORG Mon Oct 22 15:19:31 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0D5B16A418 for ; Mon, 22 Oct 2007 15:19:30 +0000 (UTC) (envelope-from SRS0=f2a818dc674f57de6ce9455cebc964d24fec7f74=496=es.net=oberman@es.net) Received: from postal1.es.net (postal4.es.net [IPv6:2001:400:6000:1::66]) by mx1.freebsd.org (Postfix) with ESMTP id 0781E13C4A3 for ; Mon, 22 Oct 2007 15:19:29 +0000 (UTC) (envelope-from SRS0=f2a818dc674f57de6ce9455cebc964d24fec7f74=496=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id BZP28628; Mon, 22 Oct 2007 08:19:28 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 5BCC54500E; Mon, 22 Oct 2007 08:19:27 -0700 (PDT) To: Sam Leffler In-Reply-To: Your message of "Sun, 21 Oct 2007 19:38:56 PDT." <471C0D40.7050303@errno.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1193066367_38958P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 22 Oct 2007 08:19:27 -0700 From: "Kevin Oberman" Message-Id: <20071022151927.5BCC54500E@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ; ; ; X-Sender: X-To_Name: Sam Leffler X-To_Domain: errno.com X-To: Sam Leffler X-To_Email: sam@errno.com X-To_Alias: sam Cc: AT Matik , freebsd-mobile@freebsd.org Subject: Re: Problems running ath with bgscan enabled X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 15:19:31 -0000 --==_Exmh_1193066367_38958P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Sun, 21 Oct 2007 19:38:56 -0700 > From: Sam Leffler > Sender: owner-freebsd-mobile@freebsd.org > > AT Matik wrote: > > On Saturday 20 October 2007 22:30:32 Kevin Oberman wrote: > > > >> My bgscan interval was the default 300 and almost every 5 minutes I > >> would lose connectivity, often for over a minute. When I made the > >> association between the bgscan interval and the drop-outs, I did an > >> "ifconfig ath0 -bgscan" and things stabilized immediately. No further > >> problems. > >> > >> ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > >> ath0: mem 0xb4000000-0xb400ffff irq 11 at device 2.0 on > >> pci11 ath0: mac 5.9 phy 4.3 radio 3.6 > >> > >> This is really not acceptable for default behavior as it won't be clear > >> to many how to fix it. Is it expected or is something wrong? > >> > >> > > > > I believe it is so but as you already did, when you like to associate only to > > the AP of your wpa config you should set -bgscan and eventually 'roaming > > manual' also, if I am not wrong this is described in ifconfig's manpage > > > > > > wpa_supplicant works fine w/ bgscan. When the bgscan's complete > wpa_supplicant receives an event and retrieves the scan results. It > then decides whether or not to roam. There is no need to manually > configure the device. > > OTOH the scanning+roaming code in wpa_supplicant is very simplistic and > I don't have a lot of experience with how well it does roaming. I > believe it will only join ap's that are listed in the config file so it > shouldn't roam arbitrarily. Without a log it's virtually impossible to > comment on reports/complaints. And even w/ a wpa_supplicant log it's > also useful to understand if there are other events that trigger > scanning and/or roaming--like beacon miss events. Hence the need for > logs and statistics. Exactly what statistics should I be collecting? I am assuming scan, but is there anything else? assoc? Or is there some other statistic you need? -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1193066367_38958P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFHHL9/kn3rs5h7N1ERAmAoAKC4LjOp8jCRcY3OifGnVkkRtfpU4wCggEZS I1aLEnWFsELqw49fONLLSv8= =jNlq -----END PGP SIGNATURE----- --==_Exmh_1193066367_38958P--