From nobody@FreeBSD.org  Sat Mar 12 17:19:39 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 770C9106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Mar 2011 17:19:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 66BC48FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Mar 2011 17:19:39 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2CHJcAK042534
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Mar 2011 17:19:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2CHJcYB042533;
	Sat, 12 Mar 2011 17:19:38 GMT
	(envelope-from nobody)
Message-Id: <201103121719.p2CHJcYB042533@red.freebsd.org>
Date: Sat, 12 Mar 2011 17:19:38 GMT
From: "Edward O'Callaghan" <eocallaghan@auroraux.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ral(4) needs to be resynced with OpenBSD's to gain RT2860/2870 support.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155498
>Category:       kern
>Synopsis:       [ral] ral(4) needs to be resynced with OpenBSD's to gain RT2860/2870 support.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 12 17:20:09 UTC 2011
>Closed-Date:    
>Last-Modified:  Tue Oct 23 21:10:00 UTC 2012
>Originator:     Edward O'Callaghan
>Release:        FreeBSD 8.2-RELEASE
>Organization:
>Environment:
FreeBSD  8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
My friend has a Asus PCE-N13 which is technically a RaLink RT2860 chipset.
He wants to run FreeBSD as Linux wifi is full of problems. I told him to
check the Hardware notes and he said the RT2860 isn't supported however
it is on OpenBSD.

According to ral(4) on FreeBSD 8.2:
AUTHORS
     The original ral driver was written by Damien Bergamini
     <damien@FreeBSD.org>.

According to ral(4) on OpenBSD 4.9:
AUTHORS
     The ral driver was written by Damien Bergamini <damien@openbsd.org>.

Hence it follows that, Damien maybe the person to ask for a resync between
the two drivers. However I shall open a ticket here to track this issue.

Thanks for your time!
Edward.
>How-To-Repeat:
Any RaLink RT2860 chipset will do, try to modload ral(4).
>Fix:
Integrate patches from OpenBSD's version of ral(4).

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 12 20:34:54 UTC 2011 
Responsible-Changed-Why:  
reclassify and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155498 
Responsible-Changed-From-To: freebsd-net->freebsd-wireless 
Responsible-Changed-By: ae 
Responsible-Changed-When: Thu Jul 14 07:00:44 UTC 2011 
Responsible-Changed-Why:  
Reassign to wireless team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155498 

From: Julian Stecklina <julian.stecklina@gmail.com>
To: bug-followup@FreeBSD.org, eocallaghan@auroraux.org
Cc:  
Subject: Re: kern/155498: [ral] ral(4) needs to be resynced with OpenBSD&#39;s
 to gain RT2860/2870 support.
Date: Tue, 23 Oct 2012 23:02:18 +0200

 Hello,
 
 I've seen that RT2860 support has been MFC'd to 9-STABLE (great!) and
 gave it a shot. My ral device is:
 
 ral0@pci0:2:0:0:	class=0x028000 card=0x130f1043 chip=0x07811814
 rev=0x00 hdr=0x00
     vendor     = 'Ralink corp.'
     device     = 'RT2860'
     class      = network
 
 uname:
 FreeBSD block.xn--pl-wia.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1
 r241898+9dad7f0: Tue Oct 23 21:58:07 CEST 2012
 
 The driver attaches and I get a ral0 interface, but it seems not to
 function. Kernel logs say:
 
 ral0: <Ralink Technology RT2790> mem 0xfe8f0000-0xfe8fffff irq 16 at
 device 0.0 on pci2
 ral0: discard raw packet
 ral0: discard raw packet
 ral0: discard raw packet
 ral0: discard raw packet
 
 julian@block:~/ > sudo ifconfig ral0 up
 julian@block:~/ > sudo ifconfig ral0 scan
 ifconfig: unable to get scan results
 
 julian@block:/tmp/ > sudo wpa_supplicant -c wpa.conf -d -i ral0
 Initializing interface 'ral0' conf 'wpa.conf' driver 'default'
 ctrl_interface 'N/A' bridge 'N/A'
 Configuration file 'wpa.conf' -> '/tmp/wpa.conf'
 Reading configuration file '/tmp/wpa.conf'
 Priority group 0
    id=0 ssid='AndroidAP'
 ioctl[SIOCG80211, op 98, len 32]: Invalid argument
 wpa_driver_bsd_init: failed to get device capabilities: Invalid argument
 Failed to initialize driver interface
 Failed to add interface ral0
 Cancelling scan request
 Cancelling authentication timeout
 ELOOP: remaining socket: sock=4 eloop_data=0x80140f300
 user_data=0x801460080 handler=0x427fb0
 
 If I can test something else, please tell me.
 
 Julian
>Unformatted:
