Ralink rt2870 wifi support?

I get:

Code:
ugen4.5: <802.11 n WLAN Ralink> at usbus4, cfg=0 md=HOST spd=HIGH (480mbps) pwr=ON

blength = 0x0012
bDescriptorType = 0x0001
bcbUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x148f
idProduct =0x3070
bcbDevice = 0x0101
iManufacturer = 0x0001 <Ralink>
iProduct = 0x0002 <802.11 n WLAN>
iSerialNumber = 0x0003 <1.0>
bNumConfigurations = 0x0001
 
JohnT said:
I get:

Code:
ugen4.5: <802.11 n WLAN Ralink> at usbus4, cfg=0 md=HOST spd=HIGH (480mbps) pwr=ON

blength = 0x0012
bDescriptorType = 0x0001
bcbUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x148f
idProduct =0x3070
bcbDevice = 0x0101
iManufacturer = 0x0001 <Ralink>
iProduct = 0x0002 <802.11 n WLAN>
iSerialNumber = 0x0003 <1.0>
bNumConfigurations = 0x0001

My driver doesn't support this device, sorry.
But your device will work with run driver, but no 802.11n.
 
jkkn said:
Hey,

Thanks for implementing rt2860 in FreeBSD - this is really awesome.

For the same reason I just bought a "Linksys WMP600N Wireless-N PCI Adapter" and it seem to work (nearly) with the latest driver as of today from the git repository.

1) First is this the best place for support or is there another forum?

I am using the PCI adapter as a hostap router for my FreeBSD box.
The adapter is setup using wlan0 and it is bridged using bridge0 with my network card, em1.

2) I get the following warnings in dmesg - someone want to debug on that?
Code:
rt28600: <Ralink RT2860 PCI> mem 0xff960000-0xff96ffff irq 19 at device 3.0 on pci3
rt28600: invalid EEPROM powersave level
rt28600: MAC/BBP RT2860 (rev 0x28600103), RF RT2850
rt28600: skip channel 10, could not find extension channel
rt28600: skip channel 11, could not find extension channel
rt28600: skip channel 12, could not find extension channel
rt28600: skip channel 13, could not find extension channel
rt28600: skip channel 14, could not find extension channel
rt28600: skip channel 64, could not find extension channel
rt28600: skip channel 140, could not find extension channel
rt28600: skip channel 165, could not find extension channel
rt28600: [ITHREAD]
3) I have an issue that after a while (approximately 7-8 hours) the link "dies", meaning I can still connect to the wireless network, but it will no longer route any packages before I bring down rt2860 and wlan0 and up again and restart the hostap-daemon. Any ideas? - how to debug this?

4) Another issue is that if I enable WPA2 (or WPA) broadcast? packets? are no longer routed onto the wireless-net. I see this in two scenarios: IPv6 router advertisement packets (rtadvd) are seen using a tcpdump wlan0 on the server but never arrives at the client. Disabling WPA seem to solve this problem.

5) Another issue (but this might be related to me overseeing a configuration option?) - when connecting multiple clients to the hostap - the clients cannot see each other, e.g. the ARP-requests are not being routed between the wireless clients?!

Regards,
Kristian

I have fixed the problem with ARP requests and broadcast/multicast packets.
Please test again.

Thanks for feedback.

:e:e:e
 
egorenar said:
My driver doesn't support this device, sorry.
But your device will work with run driver, but no 802.11n.
I don't need to use 802.11n, How will it work with run driver?

Thanks for all your help.
 
Added WDS support to rt2860 device driver.
I will add multiple BSS support soon :-)
Upto 8 HOSTAPs, many WDSs and STAs simultaneously !!!

For FreeBSD 7.2 no multi BSS support :-(

:e :e :e

Update: Added also to rt2870 for FreeBSD 8.0
 
Now I get last source tarball for rt2860-fbsd8 and install FreeBSD 8.0R (generic, source installed) on eee pc 901. I unpack it to /root and make && make config && klload rt2860

Code:
rt28600: <Ralink RT2790 PCIe> mem (...)
rt28600: invalid EEPROM LNA gain #2: 0x00
rt28600: invalid EEPROM LNA gain #3: 0x00
rt28600: invalid EEPROM powersave level
rt28600: MAC/BBP RT2860 (rev 0x28720200), RF RT2720
rt28600: skip channel 10, could not find extension channel
(last for channel 10-14)
rt28600: [ITREAD]

Doing
Code:
ifconfig rt28600 chanel 6 ssid unknown up
ifconfig: chanel: bad value

Wlan works fine on ubuntu. I try to do it by assign to wlan0 interface, by change chanels - fail.

Do
ifconfig rt28600 up
normaly
ifconfig rt28600 list scan
And it cannot get scan results.

Any ideas?
 
nirnr00t said:
Now I get last source tarball for rt2860-fbsd8 and install FreeBSD 8.0R (generic, source installed) on eee pc 901. I unpack it to /root and make && make config && klload rt2860

rt28600: <Ralink RT2790 PCIe> mem (...)
rt28600: invalid EEPROM LNA gain #2: 0x00
rt28600: invalid EEPROM LNA gain #3: 0x00
rt28600: invalid EEPROM powersave level
rt28600: MAC/BBP RT2860 (rev 0x28720200), RF RT2720
rt28600: skip channel 10, could not find extension channel
(last for channel 10-14)
rt28600: [ITREAD]

Doing
ifconfig rt28600 chanel 6 ssid unknown up
ifconfig: chanel: bad value

Wlan works fine on ubuntu. I try to do it by assign to wlan0 interface, by change chanels - fail.

Do
ifconfig rt28600 up
normaly
ifconfig rt28600 list scan
And it cannot get scan results.

Any ideas?

On freebsd 8 wlan works a bit different than on 7.2.
First you have to create a wlan device and then you can scan or associate.

Code:
# ifconfig wlan0 create wlandev rt28600 wlanmode sta
# ifconfig wlan0 channel 6 ssid ... up
# ifconfig wlan0 list scan

Look into FreeBSD WLAN documentation
 
egorenar said:
On freebsd 8 wlan works a bit different than on 7.2.
First you have to create a wlan device and then you can scan or associate.

Code:
# ifconfig wlan0 create wlandev rt28600 wlanmode sta
# ifconfig wlan0 channel 6 ssid ... up
# ifconfig wlan0 list scan

Look into FreeBSD WLAN documentation

This has came up before (myself making that mistake). So people don't have to manually read all 10 pages of this thread I tried to summarize all the useful information on the first post and I'm quite sure this was included. If anyone wants to include more info then I can add that too.
 
nirnr00t said:
Code:
ifconfig rt28600 chanel 6 ssid unknown up
ifconfig: chanel: bad value
I try to do it by assign to wlan0 interface, by change chanels - fail.

OK, earlier i creaded wlan by type it in rc.conf, but now i do as you say :)
It was created success.
Code:
rapture# ifconfig wlan0 list scan
rapture#
But I have my open non-encrypted wlan and wlan by near hotel (it encrypted ;( )
Try to force:
Code:
rapture# ifconfig wlan0 chanel 6 ssid unknown up
ifconfig: chanel: bad value
rapture#
Chanel 1-6 don't work :)

:( :( :(
 
I have bought today a new Ralink device, RT3572.
And i was able to test my rt2870 driver in HOSTAP mode.
I used RT3572 as client on Linux.
I have got upto 8.6 mbyte/s in 802.11n mode with a 40 MHz channel !!!
The AP and the client were in different rooms.

But i have to do something about interrupts, 5079 per sec !!!
Perhaps polling will fix this issue.

:e :e :e
 
Where can I download the source?

Greetings,
Let me first preface this by indicating I am aware of the GIT repository.
However, I was recently required to choose a wireless upstream provider to gain
access to the internet. So my current server farm will not have access to the internet
until I am able to build the source for the rt2870. Until then, my only access
to the internet is via the upstreams "officially" supported OS (Winblows).
Given that git is only available to *nix/*nixlike systems, this leaves ppl in my
situation without access to the internet via *nix systems, forced to add support
for the linux ABI in order to use GIT. So I was wondering if anyone can link to an
archive of the source currently available at the GIT repository?

Thank you for all your time and consideration in this matter.

--Chris
 
DO'H!
I originally went to the git://
goint to thr http:// provides the option to download latest in archive form.
Sorry for the noise.

--Chris
 
does the 2870 version work in 8.0?

Greetings,
I just checked out a copy of HEAD from the 2870 branch
(http://repo.or.cz/w/ralink_drivers/rt2870_fbsd8.git/snapshot/HEAD.tar.gz).
Built it, kld loaded it. Everything looked as expected.
I added it to loader.conf (rt2870_load="YES")
bounced the box, but no joy :(
Nothing shows in messages during verboseload.
issuing
ifconfig wlan0 create wlandev rt28700
returns
SIOCIFCREATE2: Device not configured

currently dualbooting w2k3 enterprise LVE && Freebsd-8.0 (GENERIC)

What additional info can I provide?

Thank you for all your time and consideration in this matter.

--Chris
 
tim-m89 said:
Each commit has a download link for a tgz and a zip (where it says snapshot eg: latest 2870 for fbsd8) but even if it didn't it wouldn't matter because git works fine on windows.

Thank you very much for your reply.
I discovered this almost immediately after making this post && added a "quickreply".
But it was decided by this forum to approve the post by moderator before
allowing it to show up in this forum. I guess if I should make more than 2 posts
within a 24 hour period I get flagged. x( - sheesh!

Anyway, thanks again, and please note I tried :)

--Chris
 
g_willikers said:
Built it, kld loaded it. Everything looked as expected.
I added it to loader.conf (rt2870_load="YES")
bounced the box, but no joy :(

make sure the driver is in /boot/kernel/ for the loader.conf to work on boot. If you can kldload it though then you know you don't actually have to reboot.

g_willikers said:
ifconfig wlan0 create wlandev rt28700
returns
SIOCIFCREATE2: Device not configured

If the wifi adapter is supported and the driver is loaded the rt28700 should appear in the ifconfig output. What adapter do you have? If this is done you then create the wifi interface dev with the command that you tried, then the remainder of the work is wpa, tcp/ip, dns & routing (if you can ping your router then do a 'route add default ip.address.of.gateway')

g_willikers said:
What additional info can I provide?

Have you read the first post of this thread. I can't think of anything else it needs right now.
 
tim-m89 said:
What wifi adapter do you have?

I'm using the ENCORE ENUWI-N3
it's a usb 802.11n adapter. I just finished zipping up the win drivers thinking I
might try using NDISCVT(8) || NDISGEN(8)

I'm going to attempt to attach the archive should they be of any help to anyone else.

Thank you very much for taking the time to respond tim-m89. :beergrin

UPDATE: Their upload "feature" isn't responding. :( I'll try to upload later.

--Chris
 
tim-m89 said:
make sure the driver is in /boot/kernel/ for the loader.conf to work on boot. If you can kldload it though then you know you don't actually have to reboot.

I built it as root && loaded it via kldload ./rt2870.ko
kldstat indicated it was loaded.
So I copied it to /boot/kernel && /boot/modules
added rt2870_load="YES" to /boot/loader.conf && rebooted.

tim-m89 said:
If the wifi adapter is supported and the driver is loaded the rt28700 should appear in the ifconfig output. What adapter do you have? If this is done you then create the wifi interface dev with the command that you tried, then the remainder of the work is wpa, tcp/ip, dns & routing (if you can ping your router then do a 'route add default ip.address.of.gateway')



Have you read the first post of this thread. I can't think of anything else it needs right now.

I read the first post and seems like i've followed it correctly "no?"

Thank you again for your thoughtful response.

--Chris
 
Is there any way to add my dongle to the list of supported devices for this driver?

Greetings,
Here's all the output I was able to produce for my dongle:
Code:
[b]# uname -a[/b]
FreeBSD l400.ultimatedns.NET 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009
root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
Code:
[b]# kldstat[/b]
Id Refs Address    Size     Name
 1    5 0xc0400000 b6dfe0   kernel
 2    1 0xc0f6e000 17c98    rt2870.ko
Code:
[b]# cat /var/log/messages | grep uge[/b]
Apr  5 23:05:10 l400 kernel: ugen0.1: <Intel> at usbus0
Apr  5 23:05:10 l400 kernel: ugen0.2: <Ralink> at usbus0
Apr  5 23:05:10 l400 kernel: ugen0.3: <vendor 0x0402> at usbus0
Apr  6 03:33:40 l400 kernel: ugen0.1: <Intel> at usbus0
Apr  6 03:33:40 l400 kernel: ugen0.2: <Ralink> at usbus0

This is the only references to the rt2870 I can get FreeBSD to create
after making/installing the driver && booting with the dongle attached.

Thank you for all your time and consideration in this matter.

--Chris
 
Here's the inf file for the dongle

Greetings,
If the forums offered an "EDIT" button, I would have simply appended this to my last post,
but...

Anyway, here is the INF file from the Windows driver for the ENCORE ENUWI-N3 that uses the
RALINK rt2870 chipset.

SEE ATTACHED

--Chris
 

Attachments

Back
Top