Bug 197121

Summary: "run" card (RT3071) very slow connection (USB)
Product: Base System Reporter: miguelmclara
Component: wirelessAssignee: freebsd-wireless (Nobody) <wireless>
Status: New ---    
Severity: Affects Many People CC: oleg.nauman, solarflow99, vbotka
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description miguelmclara 2015-01-27 05:54:38 UTC
I've mailed before about this but (https://lists.freebsd.org/pipermail/freebsd-wireless/2014-November/005251.html) but got no more feedback


Both 11 and 10.1 give very close results and not much better than this:
 speedtest
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Vodafone Portugal (95.136.125.232)...
Selecting best server based on ping...
Hosted by Vodafone PT (Porto) [26.27 km]: 12.795 ms
Testing download speed........................................
Download: 7.66 Mbit/s
Testing upload speed..................................................
Upload: 1.15 Mbit/s


Also:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
[...]
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g   <------
        status: associated
        ssid Wifi channel 6 (2437 MHz 11g) bssid XX:XX:XX:XX:XX
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        AES-CCM 2:128-bit txpower 0 bmiss 7 scanvalid 60 protmode CTS wme
        roaming MANUAL


Is that "DS/1Mps" maybe the cause of the problem?

I tried seting "ucastrate 54 mcastrate 54 mgmtrate 54" It changes too:  
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g

But performance is not affected at all, so I guess not, but still I tough I should mention it!

NOTE, I'm aware USB run drivers only support 11g and not N but still extremely bad performance, at a very close proximity to the router.


If any more info is needed for debbuging please do ask.

Thans
Comment 1 solarflow99 2015-01-27 06:15:13 UTC
I also have this problem, although I am using rt3072.  I emailed the list and am stuck to debug this further.  In my case, I can't even bring up the interface without a crash and instant reboot.

https://lists.freebsd.org/pipermail/freebsd-wireless/2015-January/005333.html


There were others in the pfsense forum having this problem with rt3072 too.
Comment 2 oleg.nauman 2015-01-28 17:22:42 UTC
(In reply to solarflow99 from comment #1)
Please make sure that you have 
options USB_DEBUG
in your kernel config file; otherwise run(4) causing kernel panic on device attachment
Comment 3 miguelmclara 2015-07-17 02:47:23 UTC
Any update/feedback on this?

Not having 11n support is sad, but I could live with it if 11g would at least get reasonable speeds!

I wonder if other using "run" but different cards see the same issue?
Comment 4 Vladimir Botka 2015-07-18 08:40:24 UTC
(In reply to miguelmclara from comment #3)

Upload speed 1.9MB/s [2] with 11g [1] on RT5572 [3] and openWRT reported MCS0 [4] seems reasonable to me.

[1]
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 64:70:02:27:d6:42
        inet 192.168.0.138 netmask 0xffffff00 broadcast 192.168.0.255 
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/48Mbps mode 11g
        status: associated
        ssid wtest channel 7 (2442 MHz 11g) bssid 00:18:e7:eb:7b:01
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 0 bmiss 7 scanvalid 60
        protmode CTS wme roaming MANUAL

[2]
]$ uname -a
FreeBSD srv2 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 22:51:51 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
$ scp 1G user@192.168.0.100:~
1G 100% 1024MB 1.9MB/s 09:02

[3]
# usbconfig -u 2 -a 3 dump_device_desc
ugen2.3: <802.11 n WLAN Ralink> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)
  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x0000 
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x148f 
  idProduct = 0x5572 
  bcdDevice = 0x0101 
  iManufacturer = 0x0001  <Ralink>
  iProduct = 0x0002  <802.11 n WLAN>
  iSerialNumber = 0x0003  <1.0>
  bNumConfigurations = 0x0001

[4]
64:70:02:27:D6:42 Master "wtest" -43 dBm -95 dBm 48.0 Mbit/s, MCS 0, 20MHz	54.0 Mbit/s, MCS 0, 20MHz