mglass
Posts: 12
Joined: Wed Jan 11, 2017 9:05 am

Ac1200 Wi-fi Dongle RTL 8812 drivers for Pi

Sat May 15, 2021 6:41 pm

Hi,

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?

MrEngman
Posts: 4140
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

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

Sat May 15, 2021 6:58 pm

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 http://downloads.fars-robotics.net/wifi-drivers/install-wifi -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.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

mglass
Posts: 12
Joined: Wed Jan 11, 2017 9:05 am

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

Sat May 15, 2021 9:59 pm

Many thanks. I will follow those instructions when I get a chance tomorrow.

Regards,

nick59
Posts: 10
Joined: Thu Apr 15, 2021 2:57 pm

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

Sun May 16, 2021 6:19 am

Hi,

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:

https://github.com/morrownr/8812au

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:

https://github.com/morrownr/7612u

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:

https://github.com/morrownr/88x2bu

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):

https://github.com/morrownr/USB-WiFi

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:

Alfa AWUS036ACM

Cheers

nick59
Posts: 10
Joined: Thu Apr 15, 2021 2:57 pm

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

Tue May 18, 2021 4:08 am

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:

https://github.com/morrownr/88x2bu

mglass
Posts: 12
Joined: Wed Jan 11, 2017 9:05 am

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

Wed May 19, 2021 8:20 am

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...
interface=wlx1cbfce71b754
driver=nl80211
hw_mode=g
channel=7
wmm_enabled=0
ieee80211n=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid=mywifi
wpa_passphrase=mypassphrase

Here's the log from ifconfig ....
wlx1cbfce71b754: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255
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
Last edited by mglass on Sun May 23, 2021 7:41 am, edited 1 time in total.

nick59
Posts: 10
Joined: Thu Apr 15, 2021 2:57 pm

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

Thu May 20, 2021 12:11 am

I do see some problems. First let me give you the link to my guide in my rtl8812au repo:

https://github.com/morrownr/8812au/blob ... s_Point.md

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.
wmm_enabled=0
I think you shut down 11n with that statement. Are you sure that is what you want to do?

Where is your bridge interface?

bridge=br0

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:

https://github.com/morrownr/88x2bu/issues

Nick

Return to “Networking and servers”