Ralink rt2870 wifi support?

csbucur said:
Hi,
I use the wireless device, Iptime RAlink rt2870 chip, and I install FreeBSD 8.0 release (I am a beginner :) ) and I want to know if before this step I must to do something else. Thanks. Your posts are very usefull for me.

Hi,

you have to install kernel sources in order to be able to compile the driver. Or have you already compiled the driver ? Do you have 802.11n AP ?
 
Hi,

Yes I made the steps that you write (1. kldload rt2870.ko) and I write into the file /etc/rc.conf the line <<ifconfig_rt....etc"
I have a Router wireless Linksys WRT54GL
 
csbucur said:
Hi,

Yes I made the steps that you write (1. kldload rt2870.ko) and I write into the file /etc/rc.conf the line <<ifconfig_rt....etc"
I have a Router wireless Linksys WRT54GL

And then ?

Write to my ICQ account or to my private message box
or else the moderator will complain about chatting in the forum

:e :e :e

PS: Hm, ICQ is not working now :-(

Update: ICQ working again :-)
 
rene@ said:
Ok, attached. The line that starts with ^C is where I indeed pressed Control-C.

Did you try this config ?

Code:
  network={
      ssid="YOUR-SSID"
      scan_ssid=1
      key_mgmt=WPA-EAP
      pairwise=CCMP TKIP
      group=CCMP TKIP
      eap=PEAP
      identity="XXXXX@yourdomain.com"
      password="YOUR-PASSWORD"
      ca_cert="/etc/certs/cacert.pem"
      phase1="peapver=0"
      phase2="MSCHAPV2"
   }

I took a look into the wpa_supplicant log and your WPA supplicant
didn't even try to associate with the AP:

Code:
12: 00:1d:e5:8d:51:b2 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch

13: 00:12:80:44:c8:22 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch

14: 00:0f:90:f5:0e:32 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch

15: 00:24:14:31:ac:f2 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch

16: 00:19:a9:0e:c7:c2 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch

17: 00:0f:f7:48:9c:02 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch

18: 00:19:a9:0e:ca:92 ssid='tue' wpa_ie_len=0 rsn_ie_len=0 caps=0x31

   skip - privacy mismatch

   skip - SSID mismatch
 
egorenar said:
Did you try this config ?

Code:
  network={
      ssid="YOUR-SSID"
      scan_ssid=1
      key_mgmt=WPA-EAP
      pairwise=CCMP TKIP
      group=CCMP TKIP
      eap=PEAP
      identity="XXXXX@yourdomain.com"
      password="YOUR-PASSWORD"
      ca_cert="/etc/certs/cacert.pem"
      phase1="peapver=0"
      phase2="MSCHAPV2"
   }

A slightly modified configuration (attached) actually works :)
 

Attachments

rene@ said:
A slightly modified configuration (attached) actually works :)

At work I once lost the rather weak radio signal and after that the card had difficulties re-associating. wpa_supplicant did not succeed in associating to an access point afterwards, and 'ifconfig wlan0 list scan' either displayed no results or took 'uncomfortably' long to finish. After a reboot everything worked fine again.
 
rene@ said:
Code:
ifconfig wlan0 list scan
either displayed no results or took 'uncomfortably' long to finish.

Next time this happens try the scan, re-associating, list networks etc from wpa_cli.
 
rene@ said:
At work I once lost the rather weak radio signal and after that the card had difficulties re-associating. wpa_supplicant did not succeed in associating to an access point afterwards, and 'ifconfig wlan0 list scan' either displayed no results or took 'uncomfortably' long to finish. After a reboot everything worked fine again.

Did you notice any strange messages in the system log, eg Tx watchdog ?
 
egorenar: is the rt2860 7.2 driver ready for 802.11n? I noticed the latest one changed my connection from OFDM/36mbps to DS/11mbps.

Grey
 
greyulv said:
egorenar: is the rt2860 7.2 driver ready for 802.11n? I noticed the latest one changed my connection from OFDM/36mbps to DS/11mbps.

Grey

802.11n mode is equally supported on both systems, fbsd72 and fbsd8.
Tested on freebsd72 with my 802.11n AP.
Are you using the latest version from GIT repository ?
You could enable driver debugging and send me the system log, it will help me to analyze your problem.

Code:
# sysctl dev.rt2860.0.debug=0xffffffff
 
Thanks for the hard work!
The rt2860 driver works like a charm on my eeepc 901 :)
Running FreeBSD 8.0, connecting to an 802.11n accesspoint

On occasion, 'ifconfig wlan0 scan' fails to return anything, but it doesn't bother me too much since I dont connect to new APs on a daily basis ;)
 
Sgaduuw said:
Thanks for the hard work!
The rt2860 driver works like a charm on my eeepc 901 :)
Running FreeBSD 8.0, connecting to an 802.11n accesspoint

On occasion, 'ifconfig wlan0 scan' fails to return anything, but it doesn't bother me too much since I dont connect to new APs on a daily basis ;)

Thanks for feedback.

What average transfer rates do you experience in 802.11n mode ?
 
egorenar said:
What average transfer rates do you experience in 802.11n mode ?

Oh testing that was the last thing on my mind since I mainly use my eeepc for simple browsing on the couch ;)
I'll run some performance tests over the weekend, I should have some free time then.
 
Fixed the issue with SM power save mode in 802.11n mode which caused my AP to use only MCS smaller than 8 in 802.11n mode. So update the driver please.
And found a bug in net80211 on FreeBSD 7.2:

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

So, guys who use FreeBSD 7.2 i recommend to patch and recompile the kernel in order to get
higher download rates in 802.11n mode. The bug doesn't exist on FreeBSD 8.

:e :e :e
 
Added new HT feature - MIMO power save.
Only FreeBSD 8 for now.
FreeBSD 7.2 requires more work :-)

:e :e :e

Update: Added MIMO PS support to FreeBSD 7.2 drivers.
 
I downloaded the latest driver from the Repository, I am running Freebsd 8.
When I extract it and type "make" I get the following error:

Code:
Warning: Object directory not changed from original /mnt/rt2870_fbsd8
@ -> /usr/src/sys
ln @: Operation not supported.
*** Error code 1.
 
Support of rt2860 driver? - a few issues

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
 
JohnT said:
I downloaded the latest driver from the Repository, I am running Freebsd 8.
When I extract it and type "make" I get the following error:

Warning: Object directory not changed from original /mnt/rt2870_fbsd8
@ -> /usr/src/sys
ln @: Operation not supported.
*** Error code 1.

Kernel source installed ?
 
jkkn said:
1) First is this the best place for support or is there another forum?
em1.

You could send me emails or write to my Jabber/ICQ account if you want.
I appreciate every feedback.

jkkn said:
2) I get the following warnings in dmesg - someone want to debug on that?
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]

Just ignore them, these are only information messages.

jkkn said:
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?!

First, i need more information from you.
Send me please your configuration, e.g. ifconfig output and so on.
You can delete any passwords from files that you will send me.

What OS is running on your clients ? And what NICs are using on your clients ?

And wireshark captures would help me greatly.

I must say that HOSTAP mode is very little tested, because i'm not ablet to test it properly by myself, i have only one PC at home :-) So your feedback is important to me.

Thanks.
 
JohnT said:
Yes I have the kernel sources installed.

Describe please to me what you did exactly.
What hardware architecture do you have ?

That should work:
Code:
$ git clone git://repo.or.cz/ralink_drivers/rt2870_fbsd8.git
$ cd rt2870_fbsd8
$ make
# kldload ./rt2870.ko

If you didn't clone the directory but downloaded it from the web interface, then
make sure you change to the right directory, it's "rt2870_fbsd8". And in this directory you should run "make". If you type "ls -l" in that directory then you should see *.c, *.h files and Makefile.

Alex.
 
Ok I have it built, I have followed the instructions on page one to load the kernel driver. I am running FreeBSD 8.0 in i386. However nothing is there in ifconfig. I do get
Code:
ugen4.5: <RaLink> at usbus4.

Thank for your help.
 
JohnT said:
Ok I have it built, I have followed the instructions on page one to load the kernel driver. I am running FreeBSD 8.0 in i386. However nothing is there in ifconfig. I do get
Code:
ugen4.5: <RaLink> at usbus4.

Thank for your help.

Please post here the output of the following command:

Code:
# usbconfig  dump_device_desc

Perhaps your device is not supported.
 
Back
Top