From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 20 03:17:43 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BCE62427 for ; Wed, 20 Nov 2013 03:17:43 +0000 (UTC) Received: from mail-qe0-x235.google.com (mail-qe0-x235.google.com [IPv6:2607:f8b0:400d:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 832C026E9 for ; Wed, 20 Nov 2013 03:17:43 +0000 (UTC) Received: by mail-qe0-f53.google.com with SMTP id cy11so5866791qeb.12 for ; Tue, 19 Nov 2013 19:17:42 -0800 (PST) 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=baXAJ8Y0KdzFe8lEHz56YkH8vyJjT5KIiKUzUFR9TSw=; b=NIJYRZCUW/p0J829TniJdMlwNg48p5TNg6xIbwSN5t03+iQRTtgJndNQMdWIsV/IQC 8FmNSIX24C77HSfFEX23wPqJnWMNavVt4VeSNxoLvkm9lSdCwhAjeCdh3miZPEPAiRon MpK5K64f6vk1vmMXeEiNRXo8SHDqFxnv7oLXl9rR4Y57Q1Ul0fW9CU59NcVSBMHptV9i KW1Wv7mD0doehMqNb6Pmu774LTUEiTdqk7VJW0kvC/rk8wRrVXO2xtLMS5PWD+xpGfro ef3++Ed5vFMiO64dRJ02pgn4uiais8UZkZBedt3Uxm17t9TSzMpA/S5jKWrENE89gd7d SGNg== MIME-Version: 1.0 X-Received: by 10.224.111.197 with SMTP id t5mr48926450qap.49.1384917462556; Tue, 19 Nov 2013 19:17:42 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Tue, 19 Nov 2013 19:17:42 -0800 (PST) In-Reply-To: References: Date: Tue, 19 Nov 2013 19:17:42 -0800 X-Google-Sender-Auth: WGbx7cVgE2hmkvz33EbPqhwP1Ns Message-ID: Subject: Re: Atheros 9271 From: Adrian Chadd To: Jonas Liepuonius Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.16 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, 20 Nov 2013 03:17:43 -0000 Hi! Ok, so the rundown on the USB stuff. The athn (openbsd/netbsd) and ath9k_htc (linux) NICs are little USB things that have a normal (yes, normal) atheros chip in them. There's three main flavours: * AR7010 + AR9280 * AR7010 + AR9287 * AR9271 Now, the AR7010 is a little CPU with memory, flash, USB and PCIe. A normal wireless chip plugs into the side. THe AR9271 is effectively an AR7010 (with different memory/flash layout) with an AR9285 glued directly to it inside. No PCIe. So, the other drivers implement this by adding USB stuff to the PCI driver (ie, "ath" would grow USB methods), add HAL support for the AR9271 (as it's a new wifi chip, but there's not much code to do it!) and a handful of USB commands that the driver would call to do things (like add/delete a wireless node, transmit a frame, blink LEDs, etc.) I have all the hardware, I just don't have the time. I started hacking on an AR9170 driver but I quickly got stuck dealing with writing "correct" basic USB handling for command transmit and reception. So, if you'd like to bring up FreeBSD on the AR9271, I really suggest you first get an AR7010 + (something) NIC, as the existing driver/HAL already supports the AR9280 and the AR9287. Once that's done, bringing up AR9271 is easy (read: adrian merges in the HAL changes and bats at it with a big stick until it works.) -adrian On 19 November 2013 12:29, Jonas Liepuonius wrote: > Hello, > > So I have been thinking about starting driver development in FreeBSD. So I > thought about porting some drivers from linux as a starting point. It will > mainly be for the Atheros 9271 USB chip. So any comments or ideas or tips > are welcome :) > > -- > Pagarbiai, > Jonas > _______________________________________________ > 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"