Page 1 of 1

Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Sat May 15, 2021 6:41 pm
by mglass

I’m trying to get help from Mr Engman and others on getting drivers to work for my AC1200 RTL8812 WiFi dongle. I’d like it to work as an Access Point.

I can’t find drivers for the Pi that I can compile.

I’ve managed to get the files from the Mini-CD, but these Linux drivers don’t compile on the Pi, because ARM-Pi is not a recognised CONFIG_PLATFORM for the Make Script (I’m a beginner so far as Make goes).

The drivers on the mini-CD are for RTL8812BU and RTL8811CU. I presume therefore that the chip is RTL8812BU

These drivers are named rtl88x2BU_WiFi_linux_v5.2.4.4_25643.20171212_COEX20171012-5044.

The Realtek Device ID is 0bda:b812. And the Mac OS info says
USB3.0 802.11ac 1200M Adapter:

Product ID: 0xb812
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)
Version: 2.10
Serial Number: 123456
Speed: Up to 480Mb/sec
Manufacturer: Realtek
Location ID: 0x14100000 / 13
Current Available (mA): 500
Current Required (mA): 500
Extra Operating Current (mA): 0

Can you help, please?

Re: Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Sat May 15, 2021 6:58 pm
by MrEngman
I compile the 8812bu wifi driver and it supports the wifi with your USB id. Whether it will work as an access point is another matter.

I have compiled drivers available to download and install. Run the following commands and it will install a script which will determine the RaspiOS you are using and automatically download and install the relevant driver version.

Code: Select all

sudo wget -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
sudo install-wifi
The first two commands download and install the script and the third command runs the script to download and install the driver.

Your kernel must be a RaspiOS and the wifi module will need to be connected to your Pi when you run the script. Then when you run the script it will determine the wifi module you are using and the driver it needs and will then download and install the driver compatible with the kernel version you are using.


Re: Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Sat May 15, 2021 9:59 pm
by mglass
Many thanks. I will follow those instructions when I get a chance tomorrow.


Re: Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Sun May 16, 2021 6:19 am
by nick59

I've done a lot of testing with adapters in AP mode with a RasPi4b. The only Realtek chipset/driver combination that is solid in AP mode is the rtl8812au. I maintain a driver and Bridged Wireless Access Point instructions at the following site:

The overall best chipset/driver combination for AP mode operation with the RasPi is the mt7612u chipset and the driver is in the kernel. I maintain an info site:

I do maintain a driver for the rtl8812bu at the following site but I try to wave people off of it if they mention AP mode:

If you are interested in USB WiFi adapter information, the following site provides a lot of information (this is the same site that is sticky at the top of this forum):

That site provides an overall evaluation of the modern Realtek drivers about 2/3 of the way through the document.

Because of the various things we have to consider when working with RasPis, some adapters are more suited to building as access point/AP than others. There is one adapter that I consider a Superstar:



Re: Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Tue May 18, 2021 4:08 am
by nick59
Update to previous post: A gent working on the rtl8814au driver in my repo for the 8814au appears to have found a fix for the problem we have been seeing with most modern Realtek drivers in AP mode for a long time.

You are welcome to test the 8812bu driver with the fix:

Re: Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Wed May 19, 2021 8:20 am
by mglass
I've installed the drivers onto the AC1200 Wi-Fi Dongle and it all seems to work in AP mode, except the wifi SSID is not showing up. Can you advise or help , please? None of my devices which can normally pick up 2.4GHz and 5GHz detect the Dongle.

The weird thing is that iwgetid reveals the AP is sending out on 802.11ac at 5.18Ghz (Channel 36 5.180GHz), instead of 802.11n at 2.4GHz!
$ iwgetid -a ; iwgetid -c ; iwgetid -f ; iwgetid -m ; iwgetid -p
wlx1cbfce71b754 Access Point/Cell: 00:CB:51:99:C1:3D
wlx1cbfce71b754 Channel:36
wlx1cbfce71b754 Frequency:5.18 GHz
wlx1cbfce71b754 Mode:Managed
wlx1cbfce71b754 Protocol Name:"IEEE 802.11AC"

Here is the hostapd.conf file...

Here's the log from ifconfig ....
wlx1cbfce71b754: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask broadcast
inet6 fe80::71ef:4f84:fcc2:496a prefixlen 64 scopeid 0x20<link>
inet6 fdaa:bbcc:ddee:0:77f1:1cd2:5e26:ce4a prefixlen 64 scopeid 0x0<global>
inet6 2a00:23c5:6e8c:5f00:df5:abe5:6325:1af3 prefixlen 64 scopeid 0x0<global>
ether 1c:bf:ce:71:b7:54 txqueuelen 1000 (Ethernet)
RX packets 368 bytes 50686 (49.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 113 bytes 16740 (16.3 KiB)
TX errors 0 dropped 15 overruns 0 carrier 0 collisions 0

Re: Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Posted: Thu May 20, 2021 12:11 am
by nick59
I do see some problems. First let me give you the link to my guide in my rtl8812au repo: ...

It is set up for 5 GHz but I'm sure you can make the minor adjustments.

I haven't experienced the problem you are reporting here but I think we need to do some work on hostapd.
I think you shut down 11n with that statement. Are you sure that is what you want to do?

Where is your bridge interface?


Before I forget, I have a Issue setup in the driver repo for folks to report on AP mode support so if you don't mind, please let me know if you see any driver problems: