Hi, I'm using FreeBSD 12.1p10 (update: I've updated to 12.2 to see if the changes to the wifi stuff has some impact but same results). I have an usb wifi device that is TP-LINK WN725N. This in short is a Realtek 802.11n NIC (RTL8188EU). This chipset is supported by rtwn(4).
I've found that the performance is weak. My ISP Internet speed is 50 Mbps down and 5 Mbps up. Seems the modem that my ISP provides, supports 802.11n but for any reason they have configured as 802.11g (54 Mbps) and this is what I'm getting at about 1.2 mt distance from the modem (yes, at that distance I can use cable and I do, but I'll move my PC and that's why I'm needing wifi):
FreeBSD 12.1p10 and 12.2
Using a USB 2.0 port:
Download: 34.6 Mbps to 37.7Mbps
Upload: 4.8 Mbps
Using a USB 3.0 port:
Download: 4.4 Mbps
Upload: 4.9 Mbps
And just for reference this is in the same machine but with a different OS:
Windows 10
Using a USB 2.0
Download: 49.2 Mbps
Upload: 5.3 Mbps
Using a USB 3.0
Download: 26.8 Mbps
Upload: 5.2 Mbps
AS you can see USB 3.0 performance on both OS are not desirable, while I'll like to understand that, at the moment I'll like to get good performance on FreeBSD (usb 2.0 is fine).
How can I get better performance for that device on FreeBSD? Maybe I'm missing some kind of configuration? This is my configuration for reference:
/boot/loader.conf
/etc/rc.conf
/etc/wpa_supplicant.conf
I've found that the performance is weak. My ISP Internet speed is 50 Mbps down and 5 Mbps up. Seems the modem that my ISP provides, supports 802.11n but for any reason they have configured as 802.11g (54 Mbps) and this is what I'm getting at about 1.2 mt distance from the modem (yes, at that distance I can use cable and I do, but I'll move my PC and that's why I'm needing wifi):
FreeBSD 12.1p10 and 12.2
Using a USB 2.0 port:
Download: 34.6 Mbps to 37.7Mbps
Upload: 4.8 Mbps
Using a USB 3.0 port:
Download: 4.4 Mbps
Upload: 4.9 Mbps
And just for reference this is in the same machine but with a different OS:
Windows 10
Using a USB 2.0
Download: 49.2 Mbps
Upload: 5.3 Mbps
Using a USB 3.0
Download: 26.8 Mbps
Upload: 5.2 Mbps
AS you can see USB 3.0 performance on both OS are not desirable, while I'll like to understand that, at the moment I'll like to get good performance on FreeBSD (usb 2.0 is fine).
How can I get better performance for that device on FreeBSD? Maybe I'm missing some kind of configuration? This is my configuration for reference:
Bash:
➜ ~ sysctl net.wlan.devices
net.wlan.devices: rtwn0
/boot/loader.conf
Code:
if_rtwn_usb_load="YES"
legal.realtek.license_ack=1
/etc/rc.conf
Code:
wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
defaultrouter="192.168.1.254"
/etc/wpa_supplicant.conf
Code:
network={
ssid="HOME-D0AC"
psk="MYPASSWORD"
}
Bash:
➜ ~ ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether d0:37:45:b4:eb:e5
inet 192.168.1.69 netmask 0xffffff00 broadcast 192.168.1.255
groups: wlan
ssid HOME-D0AC channel 11 (2462 MHz 11g ht/20) bssid e0:88:5d:c9:d0:ac
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 60
protmode CTS ht20 ampdulimit 64k ampdudensity 8 shortgi -stbc -ldpc
wme roaming MANUAL
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>