From owner-freebsd-stable@FreeBSD.ORG Sat Sep 26 21:57:43 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 74A131065672 for ; Sat, 26 Sep 2009 21:57:43 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from mail08.syd.optusnet.com.au (mail08.syd.optusnet.com.au [211.29.132.189]) by mx1.freebsd.org (Postfix) with ESMTP id 12DA28FC0A for ; Sat, 26 Sep 2009 21:57:42 +0000 (UTC) Received: from maxwell.mencon.com.au (c220-239-199-115.chirn1.vic.optusnet.com.au [220.239.199.115]) by mail08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n8QLve0V022306 for ; Sun, 27 Sep 2009 07:57:41 +1000 Received: from [203.2.73.73] (unknown [203.2.73.73]) by maxwell.mencon.com.au (Postfix) with ESMTP id 679D35C45 for ; Sun, 27 Sep 2009 07:57:40 +1000 (EST) Message-ID: <4ABE8E53.1050107@menhennitt.com.au> Date: Sun, 27 Sep 2009 07:57:39 +1000 From: Graham Menhennitt User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: FreeBSD stable References: <4A6020E1.9010600@menhennitt.com.au> In-Reply-To: <4A6020E1.9010600@menhennitt.com.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: 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: Sat, 26 Sep 2009 21:57:43 -0000 Back in July, I asked the following on this list. I didn't get any replies. I was running 7.2 at the time and the messages were coming up every couple of minutes. Now I've upgraded to 8-RC1 and the same message is coming out on the console every few seconds. The miss count limit is now a sysctl tunable. I've increased it to 20 which slows the messages down but they still happen. I then increased it to 2000 which has stopped them completely. Although I did get a few "ath0: device timeout" messages. It seems to work correctly as a WPA2 AP. Below is the contents of my hostapd.conf and the relevant lines from rc.conf. Is this something to worry about? Can I improve it any way? Thanks for any help, Graham hostapd.conf: interface=wlan0 debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=Menhennitt wpa=2 wpa_passphrase=xxxxx wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP rc.conf: ifconfig_wlan0="inet xx.xx.xx.xx/25" wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap mode 11g" hostapd_enable="YES" Graham Menhennitt wrote: > 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? >