From nobody@FreeBSD.org  Sat Jun 22 17:57:08 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 9E28E441
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jun 2013 17:57:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 8EC7A1788
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jun 2013 17:57:08 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5MHv7Kd083856
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jun 2013 17:57:07 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5MHv7lS083841;
	Sat, 22 Jun 2013 17:57:07 GMT
	(envelope-from nobody)
Message-Id: <201306221757.r5MHv7lS083841@oldred.freebsd.org>
Date: Sat, 22 Jun 2013 17:57:07 GMT
From: josias <josiaslg@bsd.com.br>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update regdomain in ath drivers including 0x165
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179847
>Category:       kern
>Synopsis:       [ath] [patch] Update regdomain in ath drivers including 0x165
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 22 18:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Jun 22 20:20:32 UTC 2013
>Originator:     josias
>Release:        FreeBSD 10 Current (20130616-r251797) arch i386
>Organization:
independent
>Environment:
>Description:
The Atheros Card from Maomifadacai Commodity Co., Ltd is a AR9220 + AR9223. (reference: http://www.wholesale-in-china.org/sell/tradelead-85438.html) not work on FreeBSD 10 Current. 

Debug:

ath0: <Atheros 9280> mem 0xe00c0000-0xe00cffff irq 9 at device 12.0 on pci0
ath0: [ITHREAD]
ar9280Attach: sc 0xc2178000 st 0x1 sh 0xcc7c6000
ar5416SetPowerMode: AWAKE -> AWAKE (set chip )
ar9280Attach: ID 0x832ff VERSION 0x2 TYPE 0x3 REVISION 0x2
ath_hal_v14EepromAttach Eeprom Magic = 0xa55a
ath_hal_v14EepromAttach Eeprom Version 14.19
v14EepromReadCTLInfo Numctls = 18
ar5416SetPowerMode: AWAKE -> AWAKE (set chip )
ar9280RfAttach: attach AR9280 radio
enableAniMIBCounters: Enable mib counters: OfdmPhyErrBase 0xbffe0c cckPhyErrBase 0xbfff38
ar9280Attach: return
getchannels: cc 0 regDmn 0xf0 mode 0xffffff ecm
isEepromValid: invalid regulatory domain/country code 0x165
getregstate: invalid EEPROM contents
ath0: ath_getchannels: unable to collect channel list from hal, status 12
ar5416Detach:
ar5416SetPowerMode: AWAKE -> AWAKE (set chip )
Detaching Ani
Disable MIB counters
ar5212SetPowerMode: AWAKE -> AWAKE (set chip )
ar5416SetPowerMode: AWAKE -> FULL-SLEEP (set chip )
device_attach: ath0 attach returned 22

Apparently is a problem with regdomain 0x165.
>How-To-Repeat:
Just insert the card in mini-pci slot and power on freebsd.
The error "device_attach: ath0 attach returned 22" will be displayed.
Turn on ath debug to show the complete information.
 

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 22 20:20:18 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

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