From owner-freebsd-wireless@FreeBSD.ORG Mon Oct 13 02:21:32 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77461943 for ; Mon, 13 Oct 2014 02:21:32 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F606A4B for ; Mon, 13 Oct 2014 02:21:32 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by gateway2.nyi.internal (Postfix) with ESMTP id 8A1A1204C6 for ; Sun, 12 Oct 2014 22:21:30 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute1.internal (MEProxy); Sun, 12 Oct 2014 22:21:30 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= message-id:x-sasl-enc:from:to:cc:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=1dWKpFaluaKCoyMIR66KNgl9nb4=; b=J1v+ ucyNVD6QAZFq6VcsTQ/GIVeI6TRlOLEEE+X09iuHAOFlJhGfh5kJfQb6fldVkEAv e3LBYaQEqVnnN9ItAk3QAXJlfm6IikbcEsqImhd6sUMrJhn291p2Z5N4DzxdoAH2 LiTuRH/zQf36Luy2nCpN+Z2/pYjQ4Yk9w9nBlqQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to:cc :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=1dWKpFaluaKCoyMIR66KNgl9 nb4=; b=WQNq07WcuufecRfI4K8PNcdtj7ULznE6MRDdIF5BR39596dTN7qYQ9IA PcCxkOxEfgluMksvOKQ0xpw2GEoooo+sNQY8zQgD+sx6xhO89APLHn1IyhYuJUTi PZHEnpU0CCbpYIXY8SMMXGuxhmf9xLZdBLzyfEkiR7eIN+L2pio= Received: by web6.nyi.internal (Postfix, from userid 99) id 4F64A430B6; Sun, 12 Oct 2014 22:21:30 -0400 (EDT) Message-Id: <1413166890.3701270.178170157.32FD408D@webmail.messagingengine.com> X-Sasl-Enc: vfcxWFQVM6Y1bIvTzq0Vd1mBUSWGjIf3knfDRLZquUQG 1413166890 From: Luke To: Adrian Chadd MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-7434a20c In-Reply-To: References: <1413150344.3645853.178107757.0A3C2EFC@webmail.messagingengine.com> Subject: Re: Atheros AR9300 unable to collect channel data status 12, error 22 Date: Sun, 12 Oct 2014 19:21:30 -0700 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:21:32 -0000 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"