Re: Atheros AR9300 unable to collect channel data status 12, error 22

2014-10-13 Thread Adrian Chadd
Ok, please file a FreeBSD problem report with the EEPROM code and
details you put in your previous email.

I'll go look at the reference source later today and figure out what
the regulatory domain is.

https://bugs.freebsd.org/submit/


-a


On 12 October 2014 19:24, Adrian Chadd adr...@freebsd.org wrote:
 Hi,

 Yes, you have to recompile the whole kernel. Sorry, GENERIC ships with
 both modules _and_ everything in-kernel. :(


 -a


 On 12 October 2014 19:21, Luke lu...@fastmail.fm wrote:
 Thanks for the quick reply Adrian. I have hacked the if_ath_pci.ko
 module but am unable to load it for testing since it is already present
 in the kernel. Is there a simple way around this or do I have to rebuild
 the whole kernel?
 Thanks for the help.

 Luke

 --
   l k
   lu...@fastmail.fm

 On Sun, Oct 12, 2014, at 03:00 PM, Adrian Chadd wrote:
 Hi!

 I bet it is. Can you patch ath_hal_getchannels() to print out the
 regulatory EEPROM code?


 -a

 On 12 October 2014 14:45, Luke lu...@fastmail.fm wrote:
  Hi there, I am running PCBSD on my desktop and am unable to connect to
  wireless with my Atheros AR9300 PCI-E card. During boot I get the
  following messages:
  ath0: ath_getchannels: unable to collect channel list from hal,
  status 12
  device_attach: ath0 attach returned 22
  Some research suggests that this may be due to an unrecognized country
  code or something? Can anyone advise a fix to get me up and running
  online or erhaps point me in the right direction? I think I have to
  start in /sys/dev/ath/if_ath.c.
  Below I have pasted some relevant info. Thanks for reading this.
 
  -uname -a
  --
  FreeBSD 10.1-RELEASE-p2 #12 02b9957(stable/10)
  root@bellicose:/usr/obj/root/pcbsd-build-10-STABLE/git/freebsd/sys/GENERIC
  amd64
 
  -pciconf
  none2@pci0:4:0:0:   class=0x028000 card=0x3a7e1186 chip=0x0030168c
  rev=0x01 hdr=0x00
  vendor = 'Atheros Communications Inc.'
  device = 'AR9300 Wireless LAN adaptor'
  class  = network
  -dmesg-
  hdac1: ATI (0x9902) HDA Controller mem 0xfeb44000-0xfeb47fff irq 18 at
  device 1.1 on pci0
  hdac1: hdac_get_capabilities: Invalid corb size (0)
  device_attach: hdac1 attach returned 6
  ath0: Atheros AR938x mem 0xfea0-0xfea1 irq 16 at device 0.0 on
  pci4
  ar9300_set_stub_functions: setting stub functions
  ar9300_set_stub_functions: setting stub functions
  ar9300_attach: calling ar9300_hw_attach
  ar9300_hw_attach: calling ar9300_eeprom_attach
  ar9300_flash_map: unimplemented for now
  Restoring Cal data from DRAM
  Restoring Cal data from EEPROM
  ar9300_hw_attach: ar9300_eeprom_attach returned 0
  ath0: RX status length: 48
  ath0: RX buffer size: 4096
  ath0: TX descriptor length: 128
  ath0: TX status length: 36
  ath0: TX buffers per descriptor: 4
  ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
  ath0: ath_getchannels: unable to collect channel list from hal, status
  12
  device_attach: ath0 attach returned 22
  hdac1: ATI (0x9902) HDA Controller mem 0xfeb44000-0xfeb47fff irq 18 at
  device 1.1 on pci0
  hdac1: hdac_get_capabilities: Invalid corb size (0)
  device_attach: hdac1 attach returned 6
  ath0: Atheros AR938x mem 0xfea0-0xfea1 irq 16 at device 0.0 on
  pci4
  ar9300_set_stub_functions: setting stub functions
  ar9300_set_stub_functions: setting stub functions
  ar9300_attach: calling ar9300_hw_attach
  ar9300_hw_attach: calling ar9300_eeprom_attach
  ar9300_flash_map: unimplemented for now
  Restoring Cal data from DRAM
  Restoring Cal data from EEPROM
  ar9300_hw_attach: ar9300_eeprom_attach returned 0
  ath0: RX status length: 48
  ath0: RX buffer size: 4096
  ath0: TX descriptor length: 128
  ath0: TX status length: 36
  ath0: TX buffers per descriptor: 4
  ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
  ath0: ath_getchannels: unable to collect channel list from hal, status
  12
  device_attach: ath0 attach returned 22
 
  -kldstat-
  Id Refs AddressSize Name
   1  163 0x8020 14e9000  kernel
   24 0x81994000 337c9crypto.ko
   32 0x819c8000 4f19 aesni.ko
   41 0x819cd000 1f636geom_eli.ko
   52 0x819ed000 5a9d opensolaris.ko
   61 0x819f3000 24e431   zfs.ko
   71 0x81c42000 106adtmpfs.ko
   83 0x81c53000 a8678linux.ko
   91 0x81cfc000 22969geom_journal.ko
  101 0x81d1f000 22c02geom_mirror.ko
  111 0x81d42000 63aa ums.ko
  121 0x81e11000 9cf1 linprocfs.ko
  135 0x81e1b000 42a1 libiconv.ko
  143 0x81e2 1566 libmchain.ko
  151 0x81e22000 7dd  msdosfs_iconv.ko
  161 0x81e23000 

Re: Atheros AR9300 unable to collect channel data status 12, error 22

2014-10-12 Thread Adrian Chadd
Hi!

I bet it is. Can you patch ath_hal_getchannels() to print out the
regulatory EEPROM code?


-a

On 12 October 2014 14:45, Luke lu...@fastmail.fm wrote:
 Hi there, I am running PCBSD on my desktop and am unable to connect to
 wireless with my Atheros AR9300 PCI-E card. During boot I get the
 following messages:
 ath0: ath_getchannels: unable to collect channel list from hal,
 status 12
 device_attach: ath0 attach returned 22
 Some research suggests that this may be due to an unrecognized country
 code or something? Can anyone advise a fix to get me up and running
 online or erhaps point me in the right direction? I think I have to
 start in /sys/dev/ath/if_ath.c.
 Below I have pasted some relevant info. Thanks for reading this.

 -uname -a
 --
 FreeBSD 10.1-RELEASE-p2 #12 02b9957(stable/10)
 root@bellicose:/usr/obj/root/pcbsd-build-10-STABLE/git/freebsd/sys/GENERIC
 amd64

 -pciconf
 none2@pci0:4:0:0:   class=0x028000 card=0x3a7e1186 chip=0x0030168c
 rev=0x01 hdr=0x00
 vendor = 'Atheros Communications Inc.'
 device = 'AR9300 Wireless LAN adaptor'
 class  = network
 -dmesg-
 hdac1: ATI (0x9902) HDA Controller mem 0xfeb44000-0xfeb47fff irq 18 at
 device 1.1 on pci0
 hdac1: hdac_get_capabilities: Invalid corb size (0)
 device_attach: hdac1 attach returned 6
 ath0: Atheros AR938x mem 0xfea0-0xfea1 irq 16 at device 0.0 on
 pci4
 ar9300_set_stub_functions: setting stub functions
 ar9300_set_stub_functions: setting stub functions
 ar9300_attach: calling ar9300_hw_attach
 ar9300_hw_attach: calling ar9300_eeprom_attach
 ar9300_flash_map: unimplemented for now
 Restoring Cal data from DRAM
 Restoring Cal data from EEPROM
 ar9300_hw_attach: ar9300_eeprom_attach returned 0
 ath0: RX status length: 48
 ath0: RX buffer size: 4096
 ath0: TX descriptor length: 128
 ath0: TX status length: 36
 ath0: TX buffers per descriptor: 4
 ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
 ath0: ath_getchannels: unable to collect channel list from hal, status
 12
 device_attach: ath0 attach returned 22
 hdac1: ATI (0x9902) HDA Controller mem 0xfeb44000-0xfeb47fff irq 18 at
 device 1.1 on pci0
 hdac1: hdac_get_capabilities: Invalid corb size (0)
 device_attach: hdac1 attach returned 6
 ath0: Atheros AR938x mem 0xfea0-0xfea1 irq 16 at device 0.0 on
 pci4
 ar9300_set_stub_functions: setting stub functions
 ar9300_set_stub_functions: setting stub functions
 ar9300_attach: calling ar9300_hw_attach
 ar9300_hw_attach: calling ar9300_eeprom_attach
 ar9300_flash_map: unimplemented for now
 Restoring Cal data from DRAM
 Restoring Cal data from EEPROM
 ar9300_hw_attach: ar9300_eeprom_attach returned 0
 ath0: RX status length: 48
 ath0: RX buffer size: 4096
 ath0: TX descriptor length: 128
 ath0: TX status length: 36
 ath0: TX buffers per descriptor: 4
 ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
 ath0: ath_getchannels: unable to collect channel list from hal, status
 12
 device_attach: ath0 attach returned 22

 -kldstat-
 Id Refs AddressSize Name
  1  163 0x8020 14e9000  kernel
  24 0x81994000 337c9crypto.ko
  32 0x819c8000 4f19 aesni.ko
  41 0x819cd000 1f636geom_eli.ko
  52 0x819ed000 5a9d opensolaris.ko
  61 0x819f3000 24e431   zfs.ko
  71 0x81c42000 106adtmpfs.ko
  83 0x81c53000 a8678linux.ko
  91 0x81cfc000 22969geom_journal.ko
 101 0x81d1f000 22c02geom_mirror.ko
 111 0x81d42000 63aa ums.ko
 121 0x81e11000 9cf1 linprocfs.ko
 135 0x81e1b000 42a1 libiconv.ko
 143 0x81e2 1566 libmchain.ko
 151 0x81e22000 7dd  msdosfs_iconv.ko
 161 0x81e23000 3098eif_bwn.ko
 171 0x81e54000 6ed1 siba_bwn.ko
 181 0x81e5b000 1fa30if_bwi.ko
 191 0x81e7b000 273d runfw.ko
 201 0x81e7e000 4eee ng_ubt.ko
 213 0x81e83000 b9ba netgraph.ko
 221 0x81e8f000 9398 ng_hci.ko
 232 0x81e99000 1078 ng_bluetooth.ko
 241 0x81e9b000 4680 cuse4bsd.ko
 251 0x81ea 661c sem.ko
 262 0x81ea7000 8ed2 udf.ko
 271 0x81eb 7d1  udf_iconv.ko
 281 0x81eb1000 13c3cext2fs.ko
 291 0x81ec5000 232d geom_uzip.ko
 301 0x81ec8000 11ba7pefs.ko
 311 0x81eda000 a81b reiserfs.ko
 321 0x81ee5000 1d0b1smbfs.ko
 331 0x81f03000 52f5 fdescfs.ko
 341 0x81f09000 5513 linsysfs.ko
 351 0x81f0f000 2e58ciwn4965fw.ko
 361 

Re: Atheros AR9300 unable to collect channel data status 12, error 22

2014-10-12 Thread Luke
Thanks for the quick reply Adrian. I have hacked the if_ath_pci.ko
module but am unable to load it for testing since it is already present
in the kernel. Is there a simple way around this or do I have to rebuild
the whole kernel?
Thanks for the help.

Luke

-- 
  l k
  lu...@fastmail.fm

On Sun, Oct 12, 2014, at 03:00 PM, Adrian Chadd wrote:
 Hi!
 
 I bet it is. Can you patch ath_hal_getchannels() to print out the
 regulatory EEPROM code?
 
 
 -a
 
 On 12 October 2014 14:45, Luke lu...@fastmail.fm wrote:
  Hi there, I am running PCBSD on my desktop and am unable to connect to
  wireless with my Atheros AR9300 PCI-E card. During boot I get the
  following messages:
  ath0: ath_getchannels: unable to collect channel list from hal,
  status 12
  device_attach: ath0 attach returned 22
  Some research suggests that this may be due to an unrecognized country
  code or something? Can anyone advise a fix to get me up and running
  online or erhaps point me in the right direction? I think I have to
  start in /sys/dev/ath/if_ath.c.
  Below I have pasted some relevant info. Thanks for reading this.
 
  -uname -a
  --
  FreeBSD 10.1-RELEASE-p2 #12 02b9957(stable/10)
  root@bellicose:/usr/obj/root/pcbsd-build-10-STABLE/git/freebsd/sys/GENERIC
  amd64
 
  -pciconf
  none2@pci0:4:0:0:   class=0x028000 card=0x3a7e1186 chip=0x0030168c
  rev=0x01 hdr=0x00
  vendor = 'Atheros Communications Inc.'
  device = 'AR9300 Wireless LAN adaptor'
  class  = network
  -dmesg-
  hdac1: ATI (0x9902) HDA Controller mem 0xfeb44000-0xfeb47fff irq 18 at
  device 1.1 on pci0
  hdac1: hdac_get_capabilities: Invalid corb size (0)
  device_attach: hdac1 attach returned 6
  ath0: Atheros AR938x mem 0xfea0-0xfea1 irq 16 at device 0.0 on
  pci4
  ar9300_set_stub_functions: setting stub functions
  ar9300_set_stub_functions: setting stub functions
  ar9300_attach: calling ar9300_hw_attach
  ar9300_hw_attach: calling ar9300_eeprom_attach
  ar9300_flash_map: unimplemented for now
  Restoring Cal data from DRAM
  Restoring Cal data from EEPROM
  ar9300_hw_attach: ar9300_eeprom_attach returned 0
  ath0: RX status length: 48
  ath0: RX buffer size: 4096
  ath0: TX descriptor length: 128
  ath0: TX status length: 36
  ath0: TX buffers per descriptor: 4
  ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
  ath0: ath_getchannels: unable to collect channel list from hal, status
  12
  device_attach: ath0 attach returned 22
  hdac1: ATI (0x9902) HDA Controller mem 0xfeb44000-0xfeb47fff irq 18 at
  device 1.1 on pci0
  hdac1: hdac_get_capabilities: Invalid corb size (0)
  device_attach: hdac1 attach returned 6
  ath0: Atheros AR938x mem 0xfea0-0xfea1 irq 16 at device 0.0 on
  pci4
  ar9300_set_stub_functions: setting stub functions
  ar9300_set_stub_functions: setting stub functions
  ar9300_attach: calling ar9300_hw_attach
  ar9300_hw_attach: calling ar9300_eeprom_attach
  ar9300_flash_map: unimplemented for now
  Restoring Cal data from DRAM
  Restoring Cal data from EEPROM
  ar9300_hw_attach: ar9300_eeprom_attach returned 0
  ath0: RX status length: 48
  ath0: RX buffer size: 4096
  ath0: TX descriptor length: 128
  ath0: TX status length: 36
  ath0: TX buffers per descriptor: 4
  ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
  ath0: ath_getchannels: unable to collect channel list from hal, status
  12
  device_attach: ath0 attach returned 22
 
  -kldstat-
  Id Refs AddressSize Name
   1  163 0x8020 14e9000  kernel
   24 0x81994000 337c9crypto.ko
   32 0x819c8000 4f19 aesni.ko
   41 0x819cd000 1f636geom_eli.ko
   52 0x819ed000 5a9d opensolaris.ko
   61 0x819f3000 24e431   zfs.ko
   71 0x81c42000 106adtmpfs.ko
   83 0x81c53000 a8678linux.ko
   91 0x81cfc000 22969geom_journal.ko
  101 0x81d1f000 22c02geom_mirror.ko
  111 0x81d42000 63aa ums.ko
  121 0x81e11000 9cf1 linprocfs.ko
  135 0x81e1b000 42a1 libiconv.ko
  143 0x81e2 1566 libmchain.ko
  151 0x81e22000 7dd  msdosfs_iconv.ko
  161 0x81e23000 3098eif_bwn.ko
  171 0x81e54000 6ed1 siba_bwn.ko
  181 0x81e5b000 1fa30if_bwi.ko
  191 0x81e7b000 273d runfw.ko
  201 0x81e7e000 4eee ng_ubt.ko
  213 0x81e83000 b9ba netgraph.ko
  221 0x81e8f000 9398 ng_hci.ko
  232 0x81e99000 1078 ng_bluetooth.ko
  241 0x81e9b000 4680 cuse4bsd.ko
  251 0x81ea 661c sem.ko
  262 0x81ea7000 8ed2 udf.ko