From owner-freebsd-wireless@FreeBSD.ORG Fri Dec 23 09:57:31 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EBD3106564A for ; Fri, 23 Dec 2011 09:57:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4BFE88FC13 for ; Fri, 23 Dec 2011 09:57:30 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so12857124vbb.13 for ; Fri, 23 Dec 2011 01:57:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=ZoLwDIDpeGbFw7ylcFtheAkFlJMI5/eKP1vHhFizKAA=; b=fMbcQf5ET0oSHqBAHQnk/rdTEcyEOD5W3OIuNCSUKtafyddYbLEK0o/Oiu05sYQrd5 dBRTN5/aCp1y/Kw2seBwAoVH6YY64Q9cNMsV0a16r2Xc0jRpWJhllDMS1KSjYrupuj/9 eGFjmTdBEj1TUAJFTTkDNrTJspo5FFo1+jp7Y= MIME-Version: 1.0 Received: by 10.52.29.16 with SMTP id f16mr7413669vdh.45.1324634250490; Fri, 23 Dec 2011 01:57:30 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Fri, 23 Dec 2011 01:57:30 -0800 (PST) Date: Fri, 23 Dec 2011 01:57:30 -0800 X-Google-Sender-Auth: cSx9-632OotEcyq5OzA4c3OaaTE Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ath updates - AR5416 (and later) LED fixes X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 23 Dec 2011 09:57:31 -0000 Hi, I've found some issues with the LED code in the HAL. The short version: we're not programming the LED pins right. The long version: * The GPIO multiplexer wasn't being programmed correctly; * The values being written into AR_MAC_LED (which control what the MAC network state and power LEDs are doing) were wrong; * We're not programming both LEDs - I think we're just programming the network LED. I've fixed things up so the Link LED on my D-Link AR5416 NIC works. I bet that other 11n NICs now work (if they have LEDs, or the LEDs are wired to the board.) I unfortunately don't have anything to test though. No wait, I lie - the onboard AR9280 in this IBM thinkpad has GPIO 1 wired into the wireless lan LED, and that's now happily blinking away when I flip on the right softled configuration. So maybe we'll finally have working wireless LAN LED blinking for the 11n NICs. :) Ok, so if someone would like a bit of a mini-project, I can give you all the relevant documentation and braindump what I've managed to figure out re: LED handling. It's going to be a bit messy as there's a whole load of potential ways that the LEDs can be configured but I think it's worthwhile to get right. Especially if you'd like an introductory project. Adrian