From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 21 04:02:41 2015 Return-Path: Delivered-To: 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 2E70C31B for ; Wed, 21 Jan 2015 04:02:41 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF4B4DAB for ; Wed, 21 Jan 2015 04:02:40 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1YDmUq-0005AW-Tm for wireless@freebsd.org; Wed, 21 Jan 2015 10:02:30 +0600 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id t0L43EvF053000 for ; Wed, 21 Jan 2015 11:03:24 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id t0L439JN052973 for wireless@freebsd.org; Wed, 21 Jan 2015 10:03:09 +0600 (NOVT) (envelope-from danfe) Date: Wed, 21 Jan 2015 10:03:08 +0600 From: Alexey Dokuchaev To: wireless@freebsd.org Subject: Dual-band AR5414 card test-run on stable/8 and head Message-ID: <20150121040308.GA49520@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 72117 [Jan 21 2015] X-KLMS-AntiSpam-Version: 5.5.3 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 3327371, 3327390, 0 X-KLMS-AntiSpam-Info: LuaCore: 133 2015-01-20_15-32-45 96fcd498c703129c83ff391f744a0d32a092f19b X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 2015/01/20 13:57:40 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, not scanned, license restriction 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: Wed, 21 Jan 2015 04:02:41 -0000 Hi there, Recently I've purchased few assorted ARxxxx-based wireless cards. Original plan was to replace 2200BG Intel of mine (it's not really stable and driver does not support frame injection), but this goal had failed: my new awesome (and quite expensive) industry-grade 9220-based dual-band card was too tall for my laptop's miniPCI bay and had MMCX antenna plugs rather than U.FL. :( So I was only left to play with AR5414 2.4GHz/5GHz (per specs from the shop) card; looks like it is Askey WLL4070-D50. After doing "ifconfig ath0" (on stable/8, this loads ath.ko): ath0: mem 0xb0110000-0xb011ffff irq 17 at device 8.0 on pci6 ath0: [ITHREAD] ath0: AR5413 mac 10.5 RF5413 phy 6.1 .. and "kldload ath_pci" on head (r277422, ifconfig(8) alone does not DTRT): ath0: mem 0xb0110000-0xb011ffff irq 17 at device 8.0 on pci6 ath0: AR5413 mac 10.5 RF5413 phy 6.1 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 Per `pciconf -lv`, it's class=0x020000 card=0x132910cf chip=0x001b168c rev=0x01 hdr=0x00 network ethernet, by Atheros Communications Inc. Device string differs between stable/8 (AR5006 family 802.11abg Wireless NIC) and head (AR5413/AR5414 Wireless Network Adapter [AR5006X(S) 802.11abg]). Now, here's my quest. I first tried to use it under stable/8 (which is my every-day working system). Apparently it could connect to the access point and obtained DHCP lease, but I could not ping even the gateway (and thus anything outside). I've also noticed two things: 1). WiFi LED is always on, immediately once I press the power button (before FreeBSD gets to boot). With 2200BG, it was actually correctly reflecting network activity. Any chance it can be fixed to work with Atheros card(s)? This applies to both stable/8 and head. The LED goes off only when laptop is switched off or put to suspend (S3). 2). I have "WiFi radio on/off" button on the keyboard (Fn-F2) which seems to work with both cards, Intel and Askey. There is a difference, however: with iwi(4), there are "radio turned off/on" messages in dmesg, but nothing alike with ath(4). Since LED stays always on, it is impossible to easily tell at which state is the card at any given moment. On -CURRENT, modulo that I had to "kldload ath_pci" instead of just saying "ifconfig ath0", it works quite well. I could connect to the office WiFi (at 2.4GHz, probably because the access point doesn't support or offer 5GHz radio), and finally I could ssh wirelessly and has the same responsiveness as on copper (previously, with 2200BG, it was pretty laggy, bad enough for typing anything become a real PITA). Too bad I cannot stay on -CURRENT for too long due to broken suspend/resume cycle. TL;DR: the card works on head, but not on stable/8; any revisions I should take a look at, test, and ask for MFC if all goes well? What about always- on LED, can it be controlled? Does ath(4) expects anything from e.g. ACPI to be able to do so? I will probably continue to buy more of ath(4) cards to see how well they behave. :-) ./danfe