Ralink rt2870 wifi support?

thank you that fixed that...now however im using dhcp to make sure the internet works and then i am switching to manual...however when i do dhclient wlan0 i get this:
Code:
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
no DCHPOFFERS received.
No working leases persistent in database-sleeping.
i no my dhcp works because my laptop right next to it is connected via dhcp and its getting a solid connection---what could be the problem?
 
mf93 said:
thank you that fixed that...now however im using dhcp to make sure the internet works and then i am switching to manual...however when i do dhclient wlan0 i get this:
Code:
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
no DCHPOFFERS received.
No working leases persistent in database-sleeping.
i no my dhcp works because my laptop right next to it is connected via dhcp and its getting a solid connection---what could be the problem?

Are you sure you are associated with your AP ?
Run ifconfig and post the output here.
 
Code:
# ifconfig
re0: ...
fwe0: ...
fwip0:...
lo0:...
rt28700: flags=8843<UP BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 
     ether **:**:**:**:**:**
     media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
     status: assosciated
wlan0: flags=8843<UP BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 
     ether **:**:**:**:**:**
     inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
     media: IEEE 802.11 Wireless Ethernet<unknown subtype>
     status:associated
     ssid NETGEAR channel 1 (2412 Mhz 11g ht/20) bssid **:**:**:**:**:**
     country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
     protmode CTS -ampdutx ampdurx ampdulimit 64k ampdudensity 8 shortgi
     wme burst
the MAC addresses have been starred out
 
mf93 said:
Code:
# ifconfig
re0: ...
fwe0: ...
fwip0:...
lo0:...
rt28700: flags=8843<UP BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 
     ether **:**:**:**:**:**
     media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
     status: assosciated
wlan0: flags=8843<UP BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 
     ether **:**:**:**:**:**
     inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
     media: IEEE 802.11 Wireless Ethernet<unknown subtype>
     status:associated
     ssid NETGEAR channel 1 (2412 Mhz 11g ht/20) bssid **:**:**:**:**:**
     country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
     protmode CTS -ampdutx ampdurx ampdulimit 64k ampdudensity 8 shortgi
     wme burst
the MAC addresses have been starred out

I see you are using 802.11n HT20 mode. Do you also have problems with DHCP if you are using 802.11g only mode. Try to configure your AP to use 802.11g mode only and post the result here.
And check you MAC access list in your AP. A wireshark capture would help me further. It is possible that your AP sends you ADDBA requests in order to be able to send A-MPDUs and Block ACKs but in the current net80221 stack (it is a part of the kernel) the sending of ADDBA responses is broken. So try to capture the association with your AP and send me the capture so i could analyze it. If your AP is really sending ADBBA requests then i can provide you a patch for net80211 that fixes the problem with ADDBA in net80211. I tested this patch with another guy and it works fine :)

Another and easier possibility to find out if your AP sends you ADDBA requests is to enable the internal driver debugging:

1. Unload the driver with
Code:
# kldunload ./rt2870.ko

2. Set kernel environment variable
Code:
# kenv hw.rt2870.debug=0x00000800

This enables ADDBA debugging in the driver

3. Load the driver
Code:
# kldload ./rt2870.ko

4. Connect to your AP

5. Post the output of
Code:
$ dmesg | grep rt2870

tim-m89 has the same problem with ADDBA requests in 802.11n mode.

Thanks.
 
Code:
# dmesg | grep rt2870
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: attaching
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: initializing
rt28700: loading 8051 microcode
rt28700: 8051 microcode was successfully loaded
 
mf93 said:
Code:
# dmesg | grep rt2870
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: attaching
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: initializing
rt28700: loading 8051 microcode
rt28700: 8051 microcode was successfully loaded
Make sure you run dmesg after you are associated and after you run dhclient.

Did you try 802.11g mode ?
 
Code:
# ifconfig                                                  
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>                                                           
        ether **:**:**:**:**:**                                                 
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)                  
        status: no carrier                                                      
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500                 
        options=8<VLAN_MTU>                                                     
        ether **:**:**:**:**:**                                                 
        ch 1 dma -1                                                             
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500                
        lladdr 0.79.70.5b.0.0.24.1d.a.2.ff.fe.0.0.0.0                           
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384               
        options=3<RXCSUM,TXCSUM>                                                
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4                              
        inet6 ::1 prefixlen 128                                                 
        inet 127.0.0.1 netmask 0xff000000                                       
rt28700: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290   
        ether **:**:**:**:**:**                                                
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng               
        status: associated                                                      
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500     
        ether **:**:**:**:**:**                                                 
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255               
        media: IEEE 802.11 Wireless Ethernet<unknown subtype>                   
        status: associated                                                      
        ssid NETGEAR channel 1 (2412 Mhz 11g ht/20) bssid **:**:**:**:**:**    
        country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60     
        protmode CTS -ampdutx ampdurx ampdulimit 64k ampdudensity 8 shortgi     
        wme burst                                                               
# dhclient wlan0
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

# dmesg | grep rt2870
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: attaching
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: initializing
rt28700: loading 8051 microcode
rt28700: 8051 microcode was successfully loaded
#
 
mf93 said:
Code:
# ifconfig                                                  
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>                                                           
        ether **:**:**:**:**:**                                                 
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)                  
        status: no carrier                                                      
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500                 
        options=8<VLAN_MTU>                                                     
        ether **:**:**:**:**:**                                                 
        ch 1 dma -1                                                             
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500                
        lladdr 0.79.70.5b.0.0.24.1d.a.2.ff.fe.0.0.0.0                           
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384               
        options=3<RXCSUM,TXCSUM>                                                
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4                              
        inet6 ::1 prefixlen 128                                                 
        inet 127.0.0.1 netmask 0xff000000                                       
rt28700: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290   
        ether **:**:**:**:**:**                                                
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng               
        status: associated                                                      
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500     
        ether **:**:**:**:**:**                                                 
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255               
        media: IEEE 802.11 Wireless Ethernet<unknown subtype>                   
        status: associated                                                      
        ssid NETGEAR channel 1 (2412 Mhz 11g ht/20) bssid **:**:**:**:**:**    
        country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60     
        protmode CTS -ampdutx ampdurx ampdulimit 64k ampdudensity 8 shortgi     
        wme burst                                                               
# dhclient wlan0
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

# dmesg | grep rt2870
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: <Cisco-Linksys LLC Dual-Band Wireless-N USB Networ, class 0/0, rev 2.00/1.01, addr 2> on usbus5
rt28700: attaching
rt28700: MAC/BBP RT2870 (rev 0x28720202), RF RT2850
rt28700: skip channel 10, could not find extension channel
rt28700: skip channel 11, could not find extension channel
rt28700: skip channel 12, could not find extension channel
rt28700: skip channel 13, could not find extension channel
rt28700: skip channel 14, could not find extension channel
rt28700: skip channel 64, could not find extension channel
rt28700: skip channel 140, could not find extension channel
rt28700: skip channel 165, could not find extension channel
rt28700: initializing
rt28700: loading 8051 microcode
rt28700: 8051 microcode was successfully loaded
#

Please try 802.11g mode.
You are using HT20 mode !!!

2412 Mhz 11g ht/20 is not 802.11g mode but 802.11n HT20 :)
 
alright i changed it to 11g but now it cant find the link to associate...and dmesg | grep rt2870 shows the same thing and dmesg without the grep shows wlan0 going up and down like 300 hundred times
 
mf93 said:
alright i changed it to 11g but now it cant find the link to associate...and dmesg | grep rt2870 shows the same thing and dmesg without the grep shows wlan0 going up and down like 300 hundred times

You have to change it in your AP and not on FreeBSD :)
 
im sorry but im really confused-usually i either have a wired ethernet connection or a laptop with a wireless card built in with freeBSD(or linux, depending on the OS i use for that particular box) native support...this is the first time with a USB wireless card---what do you mean change it in the AP?
 
mf93 said:
im sorry but im really confused-usually i either have a wired ethernet connection or a laptop with a wireless card built in with freeBSD(or linux, depending on the OS i use for that particular box) native support...this is the first time with a USB wireless card---what do you mean change it in the AP?

I mean you have to configure your Access Point (box with antennas to which you connect) in 802.11g mode. Usually there is a web interface to your AP and with it you can reconfigure it. I guess 802.11n mode is default on your AP.

I tested my driver with HT20 and HT40 802.11n mode and it works fine with wpa_supplicant.
Did you try to use wpa_supplicant ?

You can write to my ICQ or Jabber account, that way i could help you faster :)
Or else the moderator will complain that we are turning this forum into a private chat room :)
 
hmm...alright ill try that---i think it should work fine with wpa_supplicant because i have almost the exact same setup as you(linksys wusb600n, amd64 phenom quad core processor) thank you so much and i am so thankful to see someone make good drivers for a device that is not well supported in linux or *BSD
 
just installed the driver on my Eee901 (rt2860) from a few hours ago, seems to work fine. I've turned encryption off (!) for now, I'll dig into wpa_supplicant tomorrow or so. Would 802.1X work using wpa_supplicant? It is used at work.
 
rene@ said:
just installed the driver on my Eee901 (rt2860) from a few hours ago, seems to work fine. I've turned encryption off (!) for now, I'll dig into wpa_supplicant tomorrow or so. Would 802.1X work using wpa_supplicant? It is used at work.

I didn't test it but WPA/WPA2 with AES and TKIP works fine.
And please test 802.11n mode.
 
egorenar said:
I didn't test it but WPA/WPA2 with AES and TKIP works fine.
And please test 802.11n mode.

I don't have any 802.11n APs available I'm afraid.

WPA-PSK in AP mode indeed works fine, as well as (unencrypted) IBSS mode.

I also tried 802.1X in AP mode at work, but the authentication failed. The latter could also be caused by having slightly incorrect parameters, the exact settings are somewhat hard to get right. I did notice a message that the kernel couldn't turn off WPA mode, even after a fresh reboot with only the 802.1X section in wpa_supplicant.conf, and this message:
Code:
ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported

This is on a 8.0-RELEASE/i386 Asus Eee 901.
 
rene@ said:
I don't have any 802.11n APs available I'm afraid.

WPA-PSK in AP mode indeed works fine, as well as (unencrypted) IBSS mode.

I also tried 802.1X in AP mode at work, but the authentication failed. The latter could also be caused by having slightly incorrect parameters, the exact settings are somewhat hard to get right. I did notice a message that the kernel couldn't turn off WPA mode, even after a fresh reboot with only the 802.1X section in wpa_supplicant.conf, and this message:
Code:
ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported

This is on a 8.0-RELEASE/i386 Asus Eee 901.

Could you please post your wpa_supplicant.conf here.
And enable debugging in wpa_supplicant, like this:

Code:
# wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf
 
egorenar said:
Could you please post your wpa_supplicant.conf here.
And enable debugging in wpa_supplicant, like this:

Code:
# wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf

I've attached the config file, a log of wpa_supplicant is available on request (32kB).

The "official" Windows instructions are at http://w3.id.tue.nl/nl/intranet/ict/wireless/ (in Dutch with English screenshots), in contrast to the instructions one can use a different login for the local Windows and the network.
 

Attachments

  • wpa_supplicant_pub.conf.txt
    360 bytes · Views: 237
rene@ said:
I've attached the config file, a log of wpa_supplicant is available on request (32kB).

The "official" Windows instructions are at http://w3.id.tue.nl/nl/intranet/ict/wireless/ (in Dutch with English screenshots), in contrast to the instructions one can use a different login for the local Windows and the network.

I found this:

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"
   }

Link: http://www.codealias.info/technotes/wireless_security_wpa/wap2_with_eap-peap_using_wpa_supplicant_and_client_ssl_certificates_linux_setup
 
egorenar said:
How to configure rt2870 driver:

1. Load KLM rt2870.ko

Code:
# kldload ./rt2870.ko

2a. Dynamic IP

Edit rc.conf (Don't forget to remove all other ifconfigs from rc.conf)

Code:
ifconfig_rt28700="WPA DHCP"

2b. Static IP

Edit rc.conf

Code:
ifconfig_rt28700="WPA inet 10.1.1.90 netmask 255.255.255.0"
defaultrouter="<ip address of your router>"

Add default route:

Code:
# route add default <ip address of your router>

Add DNS nameserver to /etc/resolv.conf:

Code:
nameserver <ip address of your router>

3. Restart netif

Code:
# /etc/rc.d/netif restart

4. Wait some time till your NIC associates and gets an IP.


It worked for me if i followed the steps above
(I'm writing this text and surfing with rt2870 driver :e).

Have fun.
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.
 
Back
Top