Skip to content

Instantly share code, notes, and snippets.

@sberlin
Last active September 2, 2016 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sberlin/5f40947ee2803492f2a8cf17524b5d04 to your computer and use it in GitHub Desktop.
Save sberlin/5f40947ee2803492f2a8cf17524b5d04 to your computer and use it in GitHub Desktop.
Configuration for 5GHz WiFi dongle TP-Link T2UH with driver mt7610u_sta in XBian

Configuration for 5GHz WiFi dongle TP-Link T2UH with driver mt7610u_sta in XBian

Results of OpenELEC/OpenELEC.tv#3554

Tested with XBian-20160406

Config snippets to get 5GHz with driver mt7610u_sta.

It might apply under similar circumstances to OpenELEC, too.

/etc/Wireless/RT2870STA/RT2870STA.dat

See here and here for descriptions

CountryRegion=5
CountryRegionABand=7
SSID=My-SSID
NetworkType=Infra
WirelessMode=14 # 14 instead of 5 raises bit rate from 135Mb/s to 433.3Mb/s
Channel=0
AuthMode=WPA2PSK
EncrypType=AES
WPAPSK=My-PSK

/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="My-SSID"
        key_mgmt=WPA-PSK
        psk=My-PSK
}

/etc/network/interfaces

wpa-ssid "My-SSID"
wpa-psk "My-PSK"

Reload driver

Make sure you're connected via eth0 or alternative interface before continuing.

$ sudo su
$ ifconfig ra0 down
$ rmmod mt7610u_sta
$ modprobe mt7610u_sta
$ ifconfig ra0 up

Notes

The PSK is generated with wpa_passphrase "My-SSID". Remove the old 2.4GHz wifi via wpa_cli to stop it from connecting first. iwconfig ra0 now permanently gives a bit rate of 433.3Mb/s. SMB and SCP speeds are about 5MB/s. I guess, that could still be improved, but it's already much faster for me than with 2.4GHz and OpenELEC.

@Jim-Ribi
Copy link

Jim-Ribi commented Sep 2, 2016

Worked brilliantly for me. Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment