From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 22 21:59:43 2014 Return-Path: Delivered-To: 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 BCFAA24B for ; Mon, 22 Dec 2014 21:59:43 +0000 (UTC) Received: from nm6.bullet.mail.bf1.yahoo.com (nm6.bullet.mail.bf1.yahoo.com [98.139.212.165]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 601BA3522 for ; Mon, 22 Dec 2014 21:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1419285581; bh=DBBgLgIOr8fIVC2f8voI7ipPG55bAYPDBUOPSi+DjCE=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=lohuEt9oIqklSRAw9I/9a/EeskaqHSswuXF5zS3iV6qTKyB2CJdsSMmPNgV4KrXLStTzrPCotLIWZ9lnykFkvh225BSh1yG8CsRyir+l24v8a+XXa3RYLN39IiGnYz3X5Qg057GCILjoT1BRudKDMJO1pTwwMb2GSpkuoAkp9IHRIyfYGwVA7+jhsj53Xm46JcQM6SYFmqZLg5rMlMZSq0X9gg18WUtB4hI6vBE4lOkIrKExxGwd4pde+D6OlLuPP4WvnTpxrWkLWQZ5LsoGIcg8p8PpdYJD2L0CN62DntydebdocqfWFfAXYnjHzC18Qa5m4fP34r3lmeJ6GPujEA== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=nqjTUWwFHXbwTDxgRvEHZdGK1GDQCm//4T4iT0cS97wd0l09RtyzX93JMdKVXkvkmmNwPSKcpvfJQUXuWTzjvEfE1IiFYOhMH5ZfaeSZ0H5yu4Efz2OzVDptp3aGfdcANQOZzkdkFPBDE7mK+ZVzPQbtWbDw4slw4p/oME3PFFcSD+dBXG0pAdGs+KTLMrBgmLIl5cAgpQsQihtZLKLTvfFYSWj6S1Qy+1py+38c8keTdw1TiPuPfg4B8dLZkJg6p1m29VMazu/ReoJYcl0xrUls0Fo0OsZGOCkQJ6H9AQaMiR3e2UKMPSEcKV4Xo7n1oSJOJxRU6STexOlvz5EOJQ==; Received: from [98.139.215.143] by nm6.bullet.mail.bf1.yahoo.com with NNFMP; 22 Dec 2014 21:59:41 -0000 Received: from [98.139.211.207] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 22 Dec 2014 21:59:41 -0000 Received: from [127.0.0.1] by smtp216.mail.bf1.yahoo.com with NNFMP; 22 Dec 2014 21:59:41 -0000 X-Yahoo-Newman-Id: 143207.83099.bm@smtp216.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 5_ScoV4VM1nNxroURm6aXi.f01ymTyIdFcIRbLqQeHtITOq VTo3TNLeUgq90xMTiMfu8Y3ny9QLOzSQ7sgYf4dk9_RieyBEYUjmrkX3oxjb 47A2UNWlf0kxBbSt4cTo1DJ3wV1JIrgEaIR.fpU29f6CBYBi5j.97ciN7Zfw OcCaEG1iuUNKl2agK9M3xg33GQ1EmZOctrgmvrIgqNTgdEK5mwr4T_RW7uQB ljgaglAPZHliJpkTROh3CIAsqQKY0wBZ32Ry0U4cUnxioHr2.4x6SK9LRivv R1oYS9zOAwu1i1cvU2u5Zp7SDi5Pxt33chp6IYi7W_Vz0uUj7qzYEEXEfvip 1J7Qe2oTjYpm3bbLC4Z_hE3HiaMJ3Nn2wp2uNEQk.hax0Y.8bQMBB3h03_dG bnbofwR3Pcsa92aI7cuk98xr2qqTy1LQYuxLIlXCss0ZOoqE.omHUAHZ6Dm6 V10Pj_49TrOQHjsmztlg1XsgO33xnws56XxTu3Z_2KliWZ.KBSZA2_ZjwMiI 8TwbMMLacSPqCsxW8uNnViMoxTmM- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Message-ID: <5498944C.4040706@yahoo.com> Date: Mon, 22 Dec 2014 16:59:40 -0500 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Atheros AR9565 detected, not working References: <433678684.160603.1419257025708.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <54987366.6060803@yahoo.com> <5498780B.90704@yahoo.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "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, 22 Dec 2014 21:59:43 -0000 On 12/22/2014 15:22, Adrian Chadd wrote: > On 22 December 2014 at 11:59, Anthony Jenkins wrote: >> I'll have to re-add the printf()s, but I'm pretty sure I saw 0x0B (of course it could have been 0x08 I saw, but neither of those would make it through the function - both 0x0B and 0x08 are blocked). > Please do. I'd like to fix up the HAL and driver to use the EEPROM > provided LED and RFKILL GPIO fields if they're populated and valid. Here's the chunk of boot messages for ath(4) on my laptop; it was 0x0B as I originally thought: Dec 22 16:47:59 ajenkins-hplaptop kernel: pcib2: allocated memory range (0xf0100000-0xf017ffff) for rid 10 of pci0:2:0:0 Dec 22 16:47:59 ajenkins-hplaptop kernel: pcib2: matched entry for 2.0.INTA Dec 22 16:47:59 ajenkins-hplaptop kernel: pcib2: slot 0 INTA hardwired to IRQ 17 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: mem 0xf0100000-0xf017ffff irq 17 at device 0.0 on pci2 Dec 22 16:47:59 ajenkins-hplaptop kernel: ioapic0: routing intpin 17 (PCI IRQ 17) to lapic 16 vector 53 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: WB335 1-ANT card detected Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_attach: calling ar9300_hw_attach Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_hw_attach: calling ar9300_eeprom_attach Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_flash_map: unimplemented for now Dec 22 16:47:59 ajenkins-hplaptop kernel: Restoring Cal data from DRAM Dec 22 16:47:59 ajenkins-hplaptop kernel: Restoring Cal data from EEPROM Dec 22 16:47:59 ajenkins-hplaptop kernel: Restoring Cal data from Flash Dec 22 16:47:59 ajenkins-hplaptop kernel: Restoring Cal data from Flash Dec 22 16:47:59 ajenkins-hplaptop kernel: Restoring Cal data from OTP Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_hw_attach: ar9300_eeprom_attach returned 0 Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_fill_capability_info: ah_rfsilent=0x2d Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_fill_capability_info: ah_gpio_select=0x0b Dec 22 16:47:59 ajenkins-hplaptop kernel: ar9300_fill_capability_info: ah_polarity=0x00 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: RX status length: 48 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: RX buffer size: 4096 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: TX descriptor length: 128 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: TX status length: 36 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: TX buffers per descriptor: 4 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: [HT] enabling HT modes Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: [HT] enabling short-GI in 20MHz mode Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: [HT] 1 stream STBC receive enabled Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: [HT] 1 RX streams; 1 TX streams Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 1T1R Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 11ng MCS 20MHz Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: MCS 0-7: 6.5Mbps - 65Mbps Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 11ng MCS 20MHz SGI Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: MCS 0-7: 7Mbps - 72Mbps Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 11ng MCS 40MHz: Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: MCS 0-7: 13.5Mbps - 135Mbps Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 11ng MCS 40MHz SGI: Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: MCS 0-7: 15Mbps - 150Mbps Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: AR9565 mac 704.0 RF5110 phy 1638.6 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: Use hw queue 1 for WME_AC_BE traffic Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: Use hw queue 0 for WME_AC_BK traffic Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: Use hw queue 2 for WME_AC_VI traffic Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: Use hw queue 3 for WME_AC_VO traffic Dec 22 16:47:59 ajenkins-hplaptop kernel: ath0: Use hw queue 8 for CAB traffic Here's the printf()s in the code: /* * Fill all software cached or static hardware state information. * Return failure if capabilities are to come from EEPROM and * cannot be read. */ HAL_BOOL ar9300_fill_capability_info(struct ath_hal *ah) { ... ahpriv->ah_rfsilent = ar9300_eeprom_get(ahp, EEP_RF_SILENT); ath_hal_printf(ah, "%s: ah_rfsilent=0x%02x\n", __func__, ahpriv->ah_rfsilent); if (ahpriv->ah_rfsilent & EEP_RFSILENT_ENABLED) { ahp->ah_gpio_select = MS(ahpriv->ah_rfsilent, EEP_RFSILENT_GPIO_SEL); ath_hal_printf(ah, "%s: ah_gpio_select=0x%02x\n", __func__, ahp->ah_gpio_select); ahp->ah_polarity = MS(ahpriv->ah_rfsilent, EEP_RFSILENT_POLARITY); ath_hal_printf(ah, "%s: ah_polarity=0x%02x\n", __func__, ahp->ah_polarity); ath_hal_enable_rfkill(ah, AH_TRUE); ar9300_enable_rf_kill(ah); p_cap->halRfSilentSupport = AH_TRUE; } Anthony > Thanks! > > > > -adrian