From owner-freebsd-mobile@FreeBSD.ORG Sat Aug 22 18:29:15 2009 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 C0AFE106568F for ; Sat, 22 Aug 2009 18:29:15 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail3.es.net [IPv6:2001:400:4c01::2]) by mx1.freebsd.org (Postfix) with ESMTP id 948598FC1B for ; Sat, 22 Aug 2009 18:29:15 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n7MITERd030562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 22 Aug 2009 11:29:14 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id DE2781CC09; Sat, 22 Aug 2009 11:29:13 -0700 (PDT) To: Dan Langille In-reply-to: Your message of "Sat, 22 Aug 2009 13:08:58 EDT." <4A90262A.5060103@langille.org> Date: Sat, 22 Aug 2009 11:29:13 -0700 From: "Kevin Oberman" Message-Id: <20090822182913.DE2781CC09@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-08-21_10:2009-08-11, 2009-08-21, 2009-08-21 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0907200000 definitions=main-0908220043 Cc: freebsd-mobile@freebsd.org Subject: Re: ath0 link up/down frequent 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: Sat, 22 Aug 2009 18:29:15 -0000 > Date: Sat, 22 Aug 2009 13:08:58 -0400 > From: Dan Langille > Sender: owner-freebsd-mobile@freebsd.org > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I get this a lot: > > Aug 22 12:18:40 laptop kernel: ath0: link state changed to DOWN > Aug 22 12:18:48 laptop kernel: ath0: link state changed to UP > Aug 22 12:49:49 laptop kernel: ath0: link state changed to DOWN > Aug 22 12:49:56 laptop kernel: ath0: link state changed to UP > > > FreeBSD laptop.example.org 7.2-STABLE FreeBSD 7.2-STABLE #0: Mon May 25 > 20:35:50 EDT 2009 dan@laptop.example.org:/usr/obj/usr/src/sys/LAPTOP > amd64 > > > ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR5212 Atheros AR5212 802.11abg wireless' > class = network > subclass = ethernet > > Looking into /var/log/messages: > > > Aug 22 10:09:24 laptop kernel: ath0: link state changed to DOWN > Aug 22 10:09:50 laptop kernel: ath0: link state changed to UP > Aug 22 10:09:53 laptop dhclient: New IP Address (ath0): 10.0.0.101 > Aug 22 10:09:53 laptop dhclient: New Subnet Mask (ath0): 255.255.255.0 > Aug 22 10:09:53 laptop dhclient: New Broadcast Address (ath0): 10.0.0.255 > Aug 22 10:09:53 laptop dhclient: New Routers (ath0): 10.0.0.1 > Aug 22 10:35:31 laptop kernel: ath0: link state changed to DOWN > Aug 22 10:35:31 laptop kernel: ath0: link state changed to UP > > > FWIW, I'm running wpa as well. > > Anything I should look into? My standard suggestion, which works for me, is to issue an 'ifconfig ath0 -bgscan'. Background scanning is not supposed to effect the association, but it seems to, at least on my system. The clue was the intervals between the losses were always a bit over to 5 minutes and that is the default bgscan interval. Looks like a bit over 25 minutes between events in your case. -- 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