From owner-freebsd-mobile@FreeBSD.ORG Sun Nov 15 12:00:16 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F5EB106574A for ; Sun, 15 Nov 2009 12:00:16 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9D3EC8FC18 for ; Sun, 15 Nov 2009 12:00:14 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 25so853947eya.3 for ; Sun, 15 Nov 2009 04:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=Ep8eHmH+E+HdGyWA3oeLIhbG+vwnKHQcInlanMVd/gs=; b=D9xqjlffjEuDl1DgfGEYqra8OpEReNb/4QddtGntaXHx53EF45/ODP6WnCKsqnSOnr 2WVDSh3CT256LyaQMytbEh82Th6SjQ0mmAuf1PaKwzZ2GiPggi7dekt2BXUxKF0VU0te Fqcbp/yHHX50TudU9djH+QiMf/wfyS6d0HYYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type:mime-version :subject:date:references:x-mailer; b=PrA5LCUoNOAWe4MQasbdUBhckts6V5edmRhJsa/MvVdM2eTltd3hK0UoUYZMBSLnmD h8wBBL2Pff2jnbhUmqgSi7rPNocXEhN83K5vJSpQvhvtFzIQRTJAeEMTbbIvaAJgi9pq k0JpQwyoExqvzb4k9y1z5MD5PEbkenFrKIPR4= Received: by 10.213.110.14 with SMTP id l14mr1179593ebp.82.1258286413818; Sun, 15 Nov 2009 04:00:13 -0800 (PST) Received: from rui-macbook.lan ([83.144.140.46]) by mx.google.com with ESMTPS id 5sm3639521eyh.18.2009.11.15.04.00.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 15 Nov 2009 04:00:12 -0800 (PST) Sender: Rui Paulo Message-Id: <3B334B9B-54CE-4DB1-A010-9477A75D7BE1@freebsd.org> From: Rui Paulo To: Joe Holden In-Reply-To: Content-Type: multipart/mixed; boundary=Apple-Mail-2-806336713 Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 15 Nov 2009 12:00:10 +0000 References: <5F4CC8D8-3FAB-405C-A94D-4950D13F7E98@freebsd.org> X-Mailer: Apple Mail (2.936) Cc: freebsd-mobile@freebsd.org Subject: Re: Atheros 9280 Issues X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 12:00:16 -0000 --Apple-Mail-2-806336713 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 15 Nov 2009, at 02:52, Joe Holden wrote: > Hi thanks for the response. > > I have recompiled kernel and attached the dmesg, the errors it gives > seem to relate to having no/invalid regdomain in the eeprom: > > ath0: mem 0xdc000000-0xdc00ffff irq 17 at device 0.0 > on pci6 > ath0: [ITHREAD] > ar9280Attach: sc 0xc2d8d000 st 0x1 sh 0xc2be9000 > ar5416SetPowerMode: AWAKE -> AWAKE (set chip ) > ar9280Attach: ID 0x852ff VERSION 0x2 TYPE 0x5 REVISION 0x2 > ath_hal_v14EepromAttach Eeprom Magic = 0xa55a > ath_hal_v14EepromAttach Eeprom Version 14.16 > v14EepromReadCTLInfo Numctls = 21 > ar5416SetPowerMode: AWAKE -> AWAKE (set chip ) > ar9280RfAttach: attach AR9280 radio > enableAniMIBCounters: Enable mib counters: OfdmPhyErrBase 0x0 > cckPhyErrBase 0x0 > ar9280Attach: return > getchannels: cc 0 regDmn 0xf0 mode 0xffffff ecm > isEepromValid: invalid regulatory domain/country code 0x6b > getregstate: invalid EEPROM contents > ath0: ath_getchannels: unable to collect channel list from hal, > status 12 > ar5416Detach: > Detaching Ani > Disable MIB counters > ar5212SetPowerMode: AWAKE -> AWAKE (set chip ) > ar5416SetPowerMode: AWAKE -> FULL-SLEEP (set chip ) > device_attach: ath0 attach returned 22 Try the attached patch please. -- Rui Paulo --Apple-Mail-2-806336713 Content-Disposition: attachment; filename=worldb.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="worldb.diff" Content-Transfer-Encoding: 7bit Index: ah_regdomain.c =================================================================== --- ah_regdomain.c (revision 198439) +++ ah_regdomain.c (working copy) @@ -170,6 +170,7 @@ WOR9_WORLD = 0x69, /* World9 (WO9 SKU) */ WORA_WORLD = 0x6A, /* WorldA (WOA SKU) */ + WORB_WORLD = 0x6B, /* WorldB (WOB SKU) */ MKK3_MKKB = 0x80, /* Japan UNI-1 even + MKKB */ MKK3_MKKA2 = 0x81, /* Japan UNI-1 even + MKKA2 */ @@ -432,6 +433,7 @@ {EU1_WORLD, EU1_WORLD, EU1_WORLD, NO_REQ, NO_REQ, PSCAN_DEFER, CTRY_DEFAULT }, {WOR9_WORLD, WOR9_WORLD, WOR9_WORLD, DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB, NO_REQ, PSCAN_DEFER, CTRY_DEFAULT }, {WORA_WORLD, WORA_WORLD, WORA_WORLD, DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB, NO_REQ, PSCAN_DEFER, CTRY_DEFAULT }, + {WORB_WORLD, WORB_WORLD, WORB_WORLD, DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB, NO_REQ, PSCAN_DEFER, CTRY_DEFAULT }, }; /* @@ -1681,6 +1683,31 @@ WG1_2467_2467), .chan11g_turbo = BM1(T3_2437_2437)}, + {.regDmnEnum = WORB_WORLD, + .conformanceTestLimit = NO_CTL, + .dfsMask = DFS_FCC3 | DFS_ETSI, + .pscan = PSCAN_WWR, + .flags = DISALLOW_ADHOC_11A, + .chan11a = BM4(W1_5260_5320, + W1_5180_5240, + W1_5745_5825, + W1_5500_5700), + .chan11b = BM7(W1_2412_2412, + W1_2437_2442, + W1_2462_2462, + W1_2472_2472, + W1_2417_2432, + W1_2447_2457, + W1_2467_2467), + .chan11g = BM7(WG1_2412_2412, + WG1_2437_2442, + WG1_2462_2462, + WG1_2472_2472, + WG1_2417_2432, + WG1_2447_2457, + WG1_2467_2467), + .chan11g_turbo = BM1(T3_2437_2437)}, + {.regDmnEnum = NULL1, .conformanceTestLimit = NO_CTL, } --Apple-Mail-2-806336713--