From owner-freebsd-wireless@freebsd.org Fri Feb 7 00:13:42 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 06D2623EC8C for ; Fri, 7 Feb 2020 00:13:42 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 48DG447091z3PLk for ; Fri, 7 Feb 2020 00:13:40 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1B8F24E1 for ; Thu, 6 Feb 2020 19:13:39 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute5.internal (MEProxy); Thu, 06 Feb 2020 19:13:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=6isQbIlJuwYK2bxVJOiKi2JMFBMTnvt Hz0mp4KvBak4=; b=PnkuMH2s+bNcVaA7ujgdZgY4TToF+U2UhKBsJQXzCa3Tv1i v7Jvgdu6Y95TF/4B9TOqH0AbCRZPlakxawPM3MOyHpSpSoNpa1My727yfkLhcMR2 2ef5neFtqlgGl5Fh9Q7JzlSPrXRnIzhQfLbsCBRgGR5eDwO77Ye1NUD5of2mf24t 3H2oFdfXdJX0AL8gRCCysGs4aIBXe9ddLr3YcPhVZfG1WrbM+5F7uj4zaLSfhIDV 7qHY+1M+XQhbPsHm8G9xflufFP2feHfd7nR9VipVZGyOvEv0JJQs7SPZbEMn62gd BH+LTUD2iaPdAn+Bo88MejcnvoygNziU6pgnZyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=6isQbI lJuwYK2bxVJOiKi2JMFBMTnvtHz0mp4KvBak4=; b=4Five0A3RWxA9ITyLP+KEs WoVAj+vUJYPrqAbdb12oRFZFOX0sgLO85Fm732x820NHAVn1ocDEhsYzaTA+kSB4 hGM/qMLJ9i5Qv33TPu075fD62kstfDp/3NxiLsPFu0ve9oCEHDj/FuFp1FBoWSuv W6Dbq3myc8Sg8+B9nStXH4140LRzQ/mufG1skhhcx+HDfyihuhKCK2BGXp7CeWJH vpnFsTHluACWG92LAA5n8wyVVtEdI6cNcBSDLJqSwcN+WP7onWQ0lyRk60gBwAOL vI8aFBklOvVTzTemTbX2NJpIa0Vrv0nYnHssWQeJcrZ+MmEijNgEwq0KLeFBJo7Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheeggddulecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfhfgrrhhh rghnucfmhhgrnhdfuceofhgrrhhhrghnsehfrghrhhgrnhdrtghouggvsheqnecuffhomh grihhnpehfrhgvvggsshgurdhorhhgpdhophgvnhgsshgurdhorhhgpdhprhhothhonhhm rghilhdrtghomhdpshhouhhrtggvfhhorhhgvgdrnhgvthenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfrghrhhgrnhesfhgrrhhhrghnrdgt ohguvghs X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5726614C00F9; Thu, 6 Feb 2020 19:13:38 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-802-g7a41c81-fmstable-20200203v1 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Thu, 06 Feb 2020 19:13:17 -0500 From: "Farhan Khan" To: "Austin Shafer via freebsd-wireless" Subject: Re: FreeBSD Wifi support for 802.11n Atheros AR9271 chip Content-Type: text/plain X-Rspamd-Queue-Id: 48DG447091z3PLk X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm1 header.b=PnkuMH2s; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=4Five0A3; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 64.147.123.25 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-5.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm1,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; DMARC_NA(0.00)[farhan.codes]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-3.50)[ip: (-9.82), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.68), country: US(-0.05)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[25.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Feb 2020 00:13:42 -0000 I apologize for the late reply. I sort of got this started a bit ago, but have otherwise been occupied since. However, this is something I am interested in pursuing. After a few discussions in #freebsd-wifi on EFnet and reading the athn code on NetBSD/OpenBSD, I have a few thoughts. The listed devices have four interfaces, Data Tx, Data Rx, Interrupt Rx and Interrupt Tx, and share the same read/write code, so the basics are similar enough. There are some shared interfaces between FreeBSD's ath and athn, so it might be worth creating a generic ath_usb driver that loads a HAL for device-specific interfaces. My approach was to start with ath_usb, then try to isolate from athn could be in separates HAL per device. I would be interested in restarting this in the future. Last I recall, my code was kernel panicking and I could not figure out why - then $LIFE got in the way. Is anyone else working on this? Questions: A. Is this the right approach? Please offer guidance B. For those more experienced in the hardware aspects, do the terms WMI CMD ring a bell? I am getting this from a function titled "athn_usb_wmi_xcmd", which is called by the read() function. Thanks On Mon, Feb 3, 2020, at 12:21 AM, Thomas Mueller wrote: > > Dear FreeBSD Developer, > > > I have been following your to-do list through the site: > > > https://wiki.freebsd.org/AdrianChadd and https://wiki.freebsd.org/WiFi/80211ac > > > And I envisioned that I specialize in Qualcomm Atheros, so I would like > > to expect to port the AR9271 802.11n 150Mpbs 2GHz 1x1: 1 Wireless USB 2.0 chipset from this > > list https://man.openbsd.org/athn.4 that already exists on openBSD for freeBSD? > > > Chipset Spectrum TxR:S Bus > > AR5008-2NG (AR5416+AR2122) 2GHz 2x2:2 PCI/CardBus > > AR5008-3NG (AR5416+AR2133) 2GHz 3x3:2 PCI/CardBus > > AR5008-2NX (AR5416+AR5122) 2GHz/5GHz 2x2:2 PCI/CardBus > > AR5008-3NX (AR5416+AR5133) 2GHz/5GHz 3x3:2 PCI/CardBus > > AR5008E-2NG (AR5418+AR2122) 2GHz 2x2:2 PCIe > > AR5008E-3NG (AR5418+AR2133) 2GHz 3x3:2 PCIe > > AR5008E-2NX (AR5418+AR5122) 2GHz/5GHz 2x2:2 PCIe > > AR5008E-3NX (AR5418+AR5133) 2GHz/5GHz 3x3:2 PCIe > > AR9001-2NG (AR9160+AR9103) 2GHz 2x2:2 PCI > > AR9001-3NG (AR9160+AR9103) 2GHz 3x3:2 PCI > > AR9001-3NX2 (AR9160+AR9106) 2GHz/5GHz 3x3:2 PCI > > AR9220 2GHz/5GHz 2x2:2 PCI > > AR9223 2GHz 2x2:2 PCI > > AR9280 2GHz/5GHz 2x2:2 PCIe > > AR9280+AR7010 2GHz/5GHz 2x2:2 USB 2.0 > > AR9281 2GHz 1x2:2 PCIe > > AR9285 2GHz 1x1:1 PCIe > > AR9271 2GHz 1x1:1 USB 2.0 > > AR2427 2GHz 1x1:1 PCIe > > AR9227 2GHz 2x2:2 PCI > > AR9287 2GHz 2x2:2 PCIe > > AR9287+AR7010 2GHz 2x2:2 USB 2.0 > > > I'm waiting for a return. > > Best regards. > > Cads > > Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. > > I have a wireless Atheros AR9271 chip , USB or acts like USB, on an MSI MPOWER motherboard dating to May 2013. > > FreeBSD has no driver for this; I was able to use Hiro H50191 USB wireless adapter, driver rsu, though it sometimes drops the connection especially when I have it running for a long time. > > Currently on NetBSD, there is an athn driver, but booting hangs unless I disable athn. > > Previously on NetBSD, most of the time it would fail to load the firmware, but I have had some times where I was actually able to get an internet connection with this wireless adapter. > > Last experience I have with OpenBSD is 5.4, from liveusb-openbsd.sourceforge.net, now far outdated. This OpenBSD had both rsu and athn drivers, but neither one could load the firmware. > > You could try to port from either NetBSD or OpenBSD. > > On NetBSD I use re driver for Ethernet Realtek 811E/8168. > > Tom > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" > -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE