From owner-freebsd-bugs@FreeBSD.ORG Sat Jun 23 00:50:08 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05B201065672 for ; Sat, 23 Jun 2012 00:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B3AC98FC0C for ; Sat, 23 Jun 2012 00:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5N0o7gW008748 for ; Sat, 23 Jun 2012 00:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5N0o7ZY008746; Sat, 23 Jun 2012 00:50:07 GMT (envelope-from gnats) Resent-Date: Sat, 23 Jun 2012 00:50:07 GMT Resent-Message-Id: <201206230050.q5N0o7ZY008746@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Adrian Chadd Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FE0F106566C for ; Sat, 23 Jun 2012 00:41:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 3A9ED8FC0A for ; Sat, 23 Jun 2012 00:41:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5N0fHhQ011543 for ; Sat, 23 Jun 2012 00:41:17 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q5N0fGlU011542; Sat, 23 Jun 2012 00:41:16 GMT (envelope-from nobody) Message-Id: <201206230041.q5N0fGlU011542@red.freebsd.org> Date: Sat, 23 Jun 2012 00:41:16 GMT From: Adrian Chadd To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/169336: [ath] ANI isn't triggering in a busy/noisy environment X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 00:50:08 -0000 >Number: 169336 >Category: misc >Synopsis: [ath] ANI isn't triggering in a busy/noisy environment >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 23 00:50:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Adrian Chadd >Release: 9.0-STABLE i386, with -HEAD net80211/ath >Organization: >Environment: >Description: I've noticed that ANI isn't triggering when in a noisy environment. * The ANI poll is called every 1/10th of a second, which updates listenTime; * However, since we're still doing things via the MIB interrupt (grr), it's triggering frequently upon a hardware counter (in this case, CCK) * .. so I see upwards of 1600 CCK errors a second; * .. but ar5416ProcessMibIntr() calculates cckPhyErrCount based on how many just overflowed, so it's seeing the 200 CCK errors that just occured, and that's not greater than cckTrigHigh; * .. so it's never calling ar5416AniCckTrigger(). * Then, ar5416AniRestart() is called, which sets ofdm/cck error count and listentime to 0. Now, because of all of this, the ANI code never seems to trigger on _enough_ of any kind of CCK errors. It's also unclear how the math in ar5416AniPoll() should work. From what I can gather, listenTime is likely supposed to be a value out of 1000. listenTime just never gets that high at the moment, as it keeps being cleared by ar5416AniRestart() whenever the MIB event fires. >How-To-Repeat: >Fix: Not sure. >Release-Note: >Audit-Trail: >Unformatted: