Re: Atheros 9280 Issues
Rui Paulo <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <[email protected]> |
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: <Atheros 9280> 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 _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "[email protected]"
worldb.diff
(application/octet-stream, 1.7 KB)
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,
}