From nobody@FreeBSD.org  Mon May  2 14:03:08 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 87E27106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 May 2011 14:03:08 +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 774DB8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 May 2011 14:03:08 +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 p42E38fu026336
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 2 May 2011 14:03:08 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p42E386p026327;
	Mon, 2 May 2011 14:03:08 GMT
	(envelope-from nobody)
Message-Id: <201105021403.p42E386p026327@red.freebsd.org>
Date: Mon, 2 May 2011 14:03:08 GMT
From: Adrian Chadd <adrian@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ath] Merlin fast-clock check isn't correct
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156765
>Category:       kern
>Synopsis:       [ath] Merlin fast-clock check isn't correct
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 02 14:10:10 UTC 2011
>Closed-Date:    Tue May 10 10:07:45 UTC 2011
>Last-Modified:  Tue May 10 10:07:45 UTC 2011
>Originator:     Adrian Chadd
>Release:        -HEAD
>Organization:
>Environment:
n/a
>Description:
The HAL Merlin fast clock check simply checks the EEPROM flag.

The ath9k check is (hw.c):

               if (AR_SREV_9280_20(ah) &&
                    ((ah->eep_ops->get_eeprom(ah, EEP_MINOR_REV) <=
                      AR5416_EEP_MINOR_VER_16) ||
                     ah->eep_ops->get_eeprom(ah, EEP_FSTCLK_5G)))
                        pCap->hw_caps |= ATH9K_HW_CAP_FASTCLOCK;

Go through the code, add a capability flag for fastclock, use that instead of the #define, and make sure that capability is properly set at Merlin probe/attach time.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Tue May 3 04:03:10 UTC 2011 
Responsible-Changed-Why:  
Punt to wireless list 


http://www.freebsd.org/cgi/query-pr.cgi?pr=156765 
State-Changed-From-To: open->closed 
State-Changed-By: adrian 
State-Changed-When: Tue May 10 10:06:57 UTC 2011 
State-Changed-Why:  
Fixed in r221667. This now only applies to chips which have 
set the relevant capability and are in 5ghz mode. 


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