From owner-freebsd-wireless@FreeBSD.ORG Mon Oct 13 02:24:12 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B793DAA5 for ; Mon, 13 Oct 2014 02:24:12 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5027FA53 for ; Mon, 13 Oct 2014 02:24:12 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id em10so6180978wid.16 for ; Sun, 12 Oct 2014 19:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=yJBcBaHBprEb17MsIuNJE+62Tr6UpJ979zAMOnWLMMk=; b=WrJq9Dn6rm9XZKLAfx4xIQAMj5gRQTl778n6TPmzc+cD6O4OyA5V9WQ5eeKY28A4VU lcXRXf6oi+fezc1HPUZiK6Bo+0yIU60uneyO00AuVIRlACAViJ5cn5IiqIrX4OF7VosH FhP3zthg2n/eOxKzWzSPVJ5tXNl1KgJBLPb9jK5+7rx+oCaoHYeNwUdD98vDwZOR3svM g0B5fUiJJwR5mn2s6Kw5rNn94YHp62wivtibgLpmzYlAgn8FRzQnddrM7qQszBulO41u 4UtBEpRtqnBq+RVQtBzzLEuTpwQYjUHyjagSWGZLLOLMiT+y8ZUiXLOm30UH9zwXxZ1M WEKA== MIME-Version: 1.0 X-Received: by 10.194.237.164 with SMTP id vd4mr17531140wjc.46.1413167050468; Sun, 12 Oct 2014 19:24:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Sun, 12 Oct 2014 19:24:10 -0700 (PDT) In-Reply-To: <1413166890.3701270.178170157.32FD408D@webmail.messagingengine.com> References: <1413150344.3645853.178107757.0A3C2EFC@webmail.messagingengine.com> <1413166890.3701270.178170157.32FD408D@webmail.messagingengine.com> Date: Sun, 12 Oct 2014 19:24:10 -0700 X-Google-Sender-Auth: KIA_-F0YtxhMIL8fAR9MEcwFB8g Message-ID: Subject: Re: Atheros AR9300 unable to collect channel data status 12, error 22 From: Adrian Chadd To: Luke Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2014 02:24:12 -0000 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 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 > lukek@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 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: 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: mem 0xfea00000-0xfea1ffff 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: 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: mem 0xfea00000-0xfea1ffff 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 Address Size Name >> > 1 163 0xffffffff80200000 14e9000 kernel >> > 2 4 0xffffffff81994000 337c9 crypto.ko >> > 3 2 0xffffffff819c8000 4f19 aesni.ko >> > 4 1 0xffffffff819cd000 1f636 geom_eli.ko >> > 5 2 0xffffffff819ed000 5a9d opensolaris.ko >> > 6 1 0xffffffff819f3000 24e431 zfs.ko >> > 7 1 0xffffffff81c42000 106ad tmpfs.ko >> > 8 3 0xffffffff81c53000 a8678 linux.ko >> > 9 1 0xffffffff81cfc000 22969 geom_journal.ko >> > 10 1 0xffffffff81d1f000 22c02 geom_mirror.ko >> > 11 1 0xffffffff81d42000 63aa ums.ko >> > 12 1 0xffffffff81e11000 9cf1 linprocfs.ko >> > 13 5 0xffffffff81e1b000 42a1 libiconv.ko >> > 14 3 0xffffffff81e20000 1566 libmchain.ko >> > 15 1 0xffffffff81e22000 7dd msdosfs_iconv.ko >> > 16 1 0xffffffff81e23000 3098e if_bwn.ko >> > 17 1 0xffffffff81e54000 6ed1 siba_bwn.ko >> > 18 1 0xffffffff81e5b000 1fa30 if_bwi.ko >> > 19 1 0xffffffff81e7b000 273d runfw.ko >> > 20 1 0xffffffff81e7e000 4eee ng_ubt.ko >> > 21 3 0xffffffff81e83000 b9ba netgraph.ko >> > 22 1 0xffffffff81e8f000 9398 ng_hci.ko >> > 23 2 0xffffffff81e99000 1078 ng_bluetooth.ko >> > 24 1 0xffffffff81e9b000 4680 cuse4bsd.ko >> > 25 1 0xffffffff81ea0000 661c sem.ko >> > 26 2 0xffffffff81ea7000 8ed2 udf.ko >> > 27 1 0xffffffff81eb0000 7d1 udf_iconv.ko >> > 28 1 0xffffffff81eb1000 13c3c ext2fs.ko >> > 29 1 0xffffffff81ec5000 232d geom_uzip.ko >> > 30 1 0xffffffff81ec8000 11ba7 pefs.ko >> > 31 1 0xffffffff81eda000 a81b reiserfs.ko >> > 32 1 0xffffffff81ee5000 1d0b1 smbfs.ko >> > 33 1 0xffffffff81f03000 52f5 fdescfs.ko >> > 34 1 0xffffffff81f09000 5513 linsysfs.ko >> > 35 1 0xffffffff81f0f000 2e58c iwn4965fw.ko >> > 36 1 0xffffffff81f3e000 52db4 iwn1000fw.ko >> > 37 1 0xffffffff81f91000 53a22 iwn5000fw.ko >> > 38 1 0xffffffff81fe5000 52d44 iwn5150fw.ko >> > 39 1 0xffffffff82038000 6f721 iwn6000fw.ko >> > 40 1 0xffffffff820a8000 a5d07 iwn6000g2afw.ko >> > 41 1 0xffffffff8214e000 70fc4 iwn6000g2bfw.ko >> > 42 1 0xffffffff821bf000 73267 iwn6050fw.ko >> > 43 1 0xffffffff82233000 3729 acpi_video.ko >> > 44 1 0xffffffff82237000 dc50 fuse.ko >> > 45 1 0xffffffff82245000 2b10 uhid.ko >> > 46 1 0xffffffff82248000 32175 pf.ko >> > 47 1 0xffffffff8227b000 1122c ipfw.ko >> > 48 1 0xffffffff8228d000 1a630 ng_btsocket.ko >> > 49 1 0xffffffff822a8000 ef263 radeonkms.ko >> > 50 1 0xffffffff82398000 3e3d5 drm2.ko >> > 51 4 0xffffffff823d7000 1f7b iicbus.ko >> > 52 1 0xffffffff823d9000 1a66 iic.ko >> > 53 1 0xffffffff823db000 1e04 iicbb.ko >> > 54 1 0xffffffff823dd000 296c radeonkmsfw_ARUBA_pfp.ko >> > 55 1 0xffffffff823e0000 2972 radeonkmsfw_ARUBA_me.ko >> > 56 1 0xffffffff823e3000 1f71 radeonkmsfw_ARUBA_rlc.ko >> > --------------------------------------------- >> > >> > -- >> > l k >> > lukek@fastmail.fm >> > _______________________________________________ >> > freebsd-wireless@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"