安装需要的工具

sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git

cmake安装

注意:根据内核版本进行选择安装

# 1.build(for kernel < 5.18) 内核< 5.18
git clone <https://github.com/HRex39/rtl8852be.git>
# 2.build(for kernel > 5.18) 内核>= 5.18
git clone <https://github.com/HRex39/rtl8852be.git> -b dev

cd rtl8852be
make -j8
sudo make install

使用/卸载驱动

sudo modprobe -r 8852be       # 卸载驱动 This unloads the module
sudo modprobe 8852be          # 加载驱动 This loads the module