Problems with driver (RTL8812BU-AC1200M) installation for Wifi USB (Techkey 1200 Mbps) setup

Use these drivers:

I’m on Rocky 9, so…

Try this:

You have to do this each time the kernel is updated. I haven’t tried dkms yet, but i assume it works fine. In my case, i just configure yum to not update the kernel. On yum.conf exclude=kernel* redhat-release* kmod-kvdo

I use these configs for AP mode, but for client should work fine as well.

/etc/modprobe.d/88x2bu.conf for module options:

(don’t forget to change your country)

blacklist rtw88_8822bu
blacklist rtw88_usb
blacklist rtw88_8822b
blacklist rtw88_core

options 88x2bu rtw_country_code=US   rtw_btcoex_enable=0   rtw_drv_log_level=2   rtw_led_ctrl=0   rtw_vht_enable=2   rtw_switch_usb_mode=1   rtw_dfs_region_domain=1   rtw_beamform_cap=1   rtw_power_mgnt=0

hostapd.conf if you’re using it for AP mode:

#
interface=wlp0s20f0u3 (change this to the respective interface)
bridge=br0 (if you're using a bridge of course)
driver=nl80211

ssid=ap1
wpa_passphrase=12345678
country_code=US

auth_algs=3
macaddr_acl=0
ignore_broadcast_ssid=0
wpa=2
rsn_pairwise=CCMP
wpa_key_mgmt=WPA-PSK


# Advertises the country_code and the set of allowed channels and transmit power levels
ieee80211d=1
# Enables support for 5GHz DFS channels (requires ieee80211d=1)
ieee80211h=1


############################# SPEEDS
#g --> 2GHz   a --> 5Ghz
hw_mode=a
channel=36


################################# 2GHz

# IEEE 802.11n
ieee80211n=1
wmm_enabled=1

#realtek tplink
ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]


################################ 5GHz
ieee80211ac=1

# Channel width (0 = 40 MHz. 1 = 80 Mhz)
vht_oper_chwidth=1
# VHT center channel (chan + 6)
vht_oper_centr_freq_seg0_idx=42

#realtek tplink
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7][RXLDPC]
vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7][RXLDPC][MAX-AMSDU-7935][SU-BEAMFORMER]

Here, it works well. Pings are stable (2-3ms) and iperf3 shows decent speeds, normal is 31MB/s, reverse is 30 MB/s. The dongle in the Rocky 9 host is TPLink T3u Plus. Laptop’s client chip is intel ax201.

(hopefully i didn’t forget to mention something)