From owner-freebsd-stable@FreeBSD.ORG Fri Jul 17 06:57:41 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43F43106564A for ; Fri, 17 Jul 2009 06:57:41 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by mx1.freebsd.org (Postfix) with ESMTP id BBF0F8FC18 for ; Fri, 17 Jul 2009 06:57:40 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from maxwell.mencon.com.au (c220-239-199-115.chirn1.vic.optusnet.com.au [220.239.199.115]) by mail09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n6H6vbhU029437 for ; Fri, 17 Jul 2009 16:57:38 +1000 Received: from [203.2.73.73] (chief.mencon.com.au [203.2.73.73]) by maxwell.mencon.com.au (Postfix) with ESMTP id CF54A5C58 for ; Fri, 17 Jul 2009 16:57:37 +1000 (EST) Message-ID: <4A6020E1.9010600@menhennitt.com.au> Date: Fri, 17 Jul 2009 16:57:37 +1000 From: Graham Menhennitt User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: FreeBSD stable Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: ath0: stuck beacon; resetting (bmiss count 4) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 06:57:41 -0000 I'me getting the message "ath0: stuck beacon; resetting (bmiss count 4)" logged to syslog every so often. I have a Soekris net5501 with a Wistron CM9 mini-PCI wireless card. I'm running FreeBSD 7.2-stable and "dmesg | grep ath0" gives: ath0: mem 0xa0010000-0xa001ffff irq 15 at device 17.0 on pci0 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: Ethernet address: 00:0b:6b:36:99:93 ath0: mac 5.9 phy 4.3 radio 3.6 ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 I've seen Sam Leffler's reply to a previous question about the same log message at http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004196.html. Looking at the source code of if_ath.c in stable: if (sc->sc_bmisscount > 3) /* NB: 3 is a guess */ taskqueue_enqueue(sc->sc_tq, &sc->sc_bstucktask);\ Now, in head the 3 has been made a variable but it doesn't seem to be able to be tuned in any reasonable way. I've tied increasing it to 20 and it doesn't seem to have any obvious bad effects. So, my questions: - is 3 really a good guess? - can it be increased safely? - what sort of values should I try? - are there any consequences of increasing it? - could it be made a sysctl tunable? Thanks for any help, Graham