For those plagued with an ill-regioned wifi card such as mine (was in 0x3A, for the US):
0c:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
Subsystem: Fujitsu Limited. Device 139c
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at fc200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath_pci
Kernel modules: ath_pci
Running the following works nicely. I finally have channel 13...."welcome to jolly ol' england lappy":
ath_info -v -g 3:0 -w fc200000 regdomain 0x00
Some possible interesting spiel:
berk:/home/alex# ath_info -v fc200000
#DBG main: sleep_ctl reg 00000000 reset_ctl reg 00000000
-==Device Information==-
MAC Revision: 5414 (0xa3)
Warning: Invalid EEPROM Magic number!
Device type: 3
5GHz PHY Revision: 5424 (0xa2)
2GHz PHY Revision: 5424 (0xa2)
/============== EEPROM Information =============\
| EEPROM Version: 5.3 | EEPROM Size: 4 kbit |
| EEMAP: 2 | Reg. Domain: 0x00 |
|================= Capabilities ================|
| 802.11a Support: yes | Turbo-A disabled: yes |
| 802.11b Support: yes | Turbo-G disabled: yes |
| 802.11g Support: yes | 2GHz XR disabled: no |
| RFKill Support: yes | 5GHz XR disabled: no |
| 32kHz Crystal: no | |
\===============================================/
[snipped]
GPIO registers: CR 0x00000303, DO 0x00000000, DI 0x00000008
STA_ID0: 00:1b:9e:6b:f6:df
STA_ID1: 0x1a80dff6, AP: 0, IBSS: 0, KeyCache Disable: 0
TIMER0: 0x00002834, TBTT: 10292, TU: 0x00012834
TIMER1: 0x000141df, DMAb: 10299, TU: 0x0001283b (+7)
TIMER2: 0x01ffffff, SWBA: 65535, TU: 0x003fffff (+4118475)
TIMER3: 0x0000286d, ATIM: 10349, TU: 0x0001286d (+57)
TSF: 0x0000000004a05a48, TSFTU: 10262, TU: 0x00012816
BEACON: 0x00000064
LAST_TSTP: 0x049ed18d
Thanks for the great work folks.
Cheers
Alex