diederikdehaas / rtl8812AU

Realtek 8812AU USB WiFi driver
Other
475 stars 177 forks source link

TP-Link Archer T4UH v2 WiFi to the Ethernet interface #97

Closed Allendar closed 5 years ago

Allendar commented 6 years ago

I'm having issues finalizing to actually connect with the TP-Link Archer T4UH v2.

My distro:

$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu Bionic Beaver (development branch)"
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
$ lsusb
Bus 001 Device 004: ID 2357:010e 

I noticed it wasn't in the os_dep/linux/usb_intf.c yet, so I added it:

{USB_DEVICE(0x2357, 0x010E),.driver_info = RTL8812}, /* TP-Link - T4UH v2 */

From here I ran the DKMS guidelines from the README.md and all went well without errors:

$ sudo dkms status
rtl8812AU, 4.3.20, 4.15.0-13-generic, x86_64: installed
virtualbox, 5.2.8, 4.15.0-13-generic, x86_64: installed

Then I checked the following:

$ lsmod | grep 88 
8812au               1077248  0

$ sudo modprobe 8812au
# Empty output

$ sudo /sbin/depmod -a
# Empty output

$ ifconfig -a
enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether e0:d5:5e:82:22:62  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xf7100000-f7120000

I can now see the T4UH v2 under a seemingly generated name, but still as an ethernet device. This also happened when I tried to install it on my MacBook Pro to see if it worked. And it stays an Ethernet interface, but the GUI that comes with the TP-Link Mac Drivers seems to do something underwater that connects it as WiFi, which makes the Mac think the device is validly ethernet-connected.

I searched the internet a bit but I have no idea how to continue from here on. Also the blue light on the device isn't on or blinking like it was when it was installed on macOS. Even with no WiFi connection active it still was on and/or blinking.

Allendar commented 6 years ago

I tried the following, with no success tho:

$ cd /lib/modules/4.15.0-13-generic/kernel/drivers/net/wireless/ 
$ sudo wpa_supplicant -Dnl80211 -ienp0s31f6 -c ./ wpa_0_8.conf -B
Successfully initialized wpa_supplicant
nl80211: Could not configure driver mode
nl80211: deinit ifname=enp0s31f6 disabled_11b_rates=0
enp0s31f6: Failed to initialize driver interface
Allendar commented 6 years ago

I still had another WiFi stick installed which seemed to make the command give a different result. Without the stick in place I get:

$ sudo wpa_supplicant -Dnl80211 -ienp0s31f6 -c ./ wpa_0_8.conf -B
Successfully initialized wpa_supplicant
nl80211: Drivers does not support authentication/association or connect commands
nl80211: deinit ifname=enp0s31f6 disabled_11b_rates=0
enp0s31f6: Failed to initialize driver interface
Allendar commented 6 years ago

Maybe for completeness I should post the full ifconfig output:

enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether e0:d5:5e:82:22:62  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xf7100000-f7120000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1370  bytes 90895 (90.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1370  bytes 90895 (90.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx001e2a3838cb: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.8  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::32be:b21a:6f4d:c0a1  prefixlen 64  scopeid 0x20<link>
        ether 00:1e:2a:38:38:cb  txqueuelen 1000  (Ethernet)
        RX packets 3777  bytes 4776132 (4.7 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3096  bytes 328565 (328.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0