From phk@critter.freebsd.dk  Mon Oct  4 10:58:58 2010
Return-Path: <phk@critter.freebsd.dk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BEB161065672
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Oct 2010 10:58:58 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222])
	by mx1.freebsd.org (Postfix) with ESMTP id 358B48FC19
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Oct 2010 10:58:57 +0000 (UTC)
Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3])
	by phk.freebsd.dk (Postfix) with ESMTP id ED8793F631
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Oct 2010 10:42:53 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.14.4/8.14.4) with ESMTP id o94AgrZ1024024
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 4 Oct 2010 10:42:53 GMT
	(envelope-from phk@critter.freebsd.dk)
Received: (from phk@localhost)
	by critter.freebsd.dk (8.14.4/8.14.4/Submit) id o94AgriZ024023;
	Mon, 4 Oct 2010 10:42:53 GMT
	(envelope-from phk)
Message-Id: <201010041042.o94AgriZ024023@critter.freebsd.dk>
Date: Mon, 4 Oct 2010 10:42:53 GMT
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Reply-To: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ath/5416 fails bgscan with "ath0: ath_chan_set: unable to reset channel 11 (2462 MHz, flags 0x480), hal status 14"
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         151198
>Category:       kern
>Synopsis:       [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: unable to reset channel 11 (2462 MHz, flags 0x480), hal status 14"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 11:00:14 UTC 2010
>Closed-Date:    
>Last-Modified:  Sat Apr 09 03:12:36 UTC 2011
>Originator:     Poul-Henning Kamp
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD critter.freebsd.dk 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r213377M: Mon Oct 4 10:07:59 UTC 2010 root@critter.freebsd.dk:/sys/amd64/compile/CRITTER amd64


>Description:

	ath0: <Atheros 5416> mem 0xf2500000-0xf250ffff irq 16 at device 0.0 on pci2
	ath0: [ITHREAD]
	ath0: AR5418 mac 12.10 RF5133 phy 8.1

	if bgscan is enabled, connectivity will die when messages like

	ath0: ath_chan_set: unable to reset channel 11 (2462 MHz, flags 0x480), hal status 14
	ath0: ath_chan_set: unable to reset channel 13 (2472 MHz, flags 0x680), hal status 14
	ath0: ath_chan_set: unable to reset channel 10 (2457 MHz, flags 0x480), hal status 14
	ath0: ath_chan_set: unable to reset channel 12 (2467 MHz, flags 0x680), hal status 14
	ath0: ath_chan_set: unable to reset channel 11 (2462 MHz, flags 0x480), hal status 14
	ath0: ath_chan_set: unable to reset channel 13 (2472 MHz, flags 0x680), hal status 14
	ath0: ath_chan_set: unable to reset channel 10 (2457 MHz, flags 0x480), hal status 14

	appear in syslog.

	Disabling bgscan (ifconfig wlan0 -bgscan) removes symptoms.

>How-To-Repeat:
	
>Fix:

	tried, this to no avail:

Index: dev/ath/ath_hal/ar5416/ar5416_cal.c
===================================================================
--- dev/ath/ath_hal/ar5416/ar5416_cal.c (revision 213377)
+++ dev/ath/ath_hal/ar5416/ar5416_cal.c (working copy)
@@ -227,7 +227,7 @@
         * Try to make sure the above NF cal completes, just so
         * it doesn't clash with subsequent percals -adrian
         */
-       if (! ar5212WaitNFCalComplete(ah, 10000)) {
+       if (! ar5212WaitNFCalComplete(ah, 100000)) {
                HALDEBUG(ah, HAL_DEBUG_ANY, "%s: initial NF calibration did "
                    "not complete in time; noisy environment?\n", __func__);
                return AH_FALSE;



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Oct 6 19:40:06 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151198 
Responsible-Changed-From-To: freebsd-net->adrian 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Thu Oct 7 14:25:42 UTC 2010 
Responsible-Changed-Why:  
my turn! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=151198 
Responsible-Changed-From-To: adrian->freebsd-wireless 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Sat Apr 9 03:12:21 UTC 2011 
Responsible-Changed-Why:  
bump to freebsd-wireless 


http://www.freebsd.org/cgi/query-pr.cgi?pr=151198 
>Unformatted:
