How to configure USB WIFI dongle

Any ideas how to get my wifi dongle working? I have a Raspberry PI running the latest version of OpenWrt. I purchased a TP-Link AC600 Archer T2U Plus wifi dongle and plugged in the dongle. It displays "RTL871X: rtw_ndev_init(wlan0)" in dmesg but the wlan0 interface never appears in luci or ifconfig.

I installed the following drivers

kmod-rtlwifi-usb
kmod-mac80211
kmod-rtlwifi
kmod-usb-net-rtl8150
kmod-mii
kmod-usb-net
kmod-usb-net-cdc-ether
kmod-usb-net-rndis 

lsusb displays

Bus 001 Device 003: ID 0424:ec00
Bus 001 Device 006: ID 0b95:1790 ASIX Elec. Corp. AX88179
Bus 001 Device 005: ID 2357:0120 Realtek  802.11ac WLAN Adapter
Bus 001 Device 002: ID 0424:9514
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.154 dwc_otg_hcd DWC OTG Controller

When I plug in the dongle, dmesg displays

[ 1316.434977] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
[ 1316.544133] usb 1-1.5: New USB device found, idVendor=2357, idProduct=0120, bcdDevice= 2.00
[ 1316.557834] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1316.567891] usb 1-1.5: Product: 802.11ac WLAN Adapter
[ 1316.575681] usb 1-1.5: Manufacturer: Realtek
[ 1316.582587] usb 1-1.5: SerialNumber: 00e04c000001
[ 1316.714527] RTL871X: rtw_ndev_init(wlan0)

ifconfig displays (note wlan1 is the existing built in wifi)

br-lan    Link encap:Ethernet  HWaddr B8:27:EB:46:C4:A9
          inet addr:10.0.1.1  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fdd5:5310:59cc::1/60 Scope:Global
          inet6 addr: fe80::ba27:ebff:fe46:c4a9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:47632 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73716 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7581136 (7.2 MiB)  TX bytes:71221962 (67.9 MiB)

eth0      Link encap:Ethernet  HWaddr B8:27:EB:46:C4:A9
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:47639 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73721 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7581740 (7.2 MiB)  TX bytes:71843864 (68.5 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2036 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2036 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:161642 (157.8 KiB)  TX bytes:161642 (157.8 KiB)

wlan1     Link encap:Ethernet  HWaddr B8:27:EB:13:91:FC
          inet addr:192.168.1.113  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe13:91fc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63632 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33652 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:63032811 (60.1 MiB)  TX bytes:7642690 (7.2 MiB)

if a network device is not presented you have driver issues...
(dmesg of successful usb wlan probe)

##################/usbstick 56° dmesg | grep -i rtl
[163075.167247] RTL871X: module init start
[163075.171114] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[163075.177825] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[163075.318214] RTL871X: rtw_ndev_init(wlan1)
[163075.323428] usbcore: registered new interface driver rtl8812au
[163075.329373] RTL871X: module init ret=0

if you have a network device and no luci, you have config issues / incompatibilites which usually provide enough info in the log to track down relevant infos...

My output looks similar to yours. You said config issues provide enough info in the log. Is there another log I should be looking in?

# dmesg | grep -i rtl
[    7.088402] usbcore: registered new interface driver rtl8150
[    7.363800] RTL871X: module init start
[    7.368832] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[    7.376704] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[    7.455117] RTL871X: rtw_ndev_init(wlan0)
[    7.461718] usbcore: registered new interface driver rtl8812au
[    7.469219] RTL871X: module init ret=0
[    7.479260] usbcore: registered new interface driver rtl8xxxu
[    7.772090] usbcore: registered new interface driver rtl8192cu

uci show wireless ?

Hi, I have the same problem getting the device working. Any help would be appreciated.

dmesg | grep -i rtl
[    7.143022] RTL871X: module init start
[    7.146783] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[    7.153446] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[    7.159724] usbcore: registered new interface driver rtl8812au
[    7.165555] RTL871X: module init ret=0
[  166.413074] RTL871X: rtw_ndev_init(wlan1)

config:

wireless.radio1=wifi-device

wireless.radio1.type='mac80211'

wireless.radio1.path='scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0'

wireless.radio1.hwmode='11g'

wireless.radio1.htmode='HT20'

wireless.radio1.channel='auto'

wireless.radio1.country='00'

I have the same exact issue. Even tried compiling my own driver to the kernel... Dead

Bus 001 Device 003: ID 0bda:b812 Realtek 802.11ac NIC
ifconfig: SIOCGIFFLAGS: No such device

I purchased the antenna from Amazon and guess what...its going back.

Perhaps someone can tell me what 5ghz Antenna works on OpenWrt..please ???

Thanks

1 Like