I can't make rtl8822bu


lsusb
Bus 003 Device 002: ID 8087:8000 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04f2:b502 Chicony Electronics Co., Ltd 
Bus 001 Device 004: ID 0bda:b728 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 18f8:0f97 [Maxxter] 
Bus 001 Device 002: ID 0bda:b812 Realtek Semiconductor Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub




uname -nropensuse 4.12.14-lp151.21-default


git clone https://github.com/MeissnerEffect/rtl8822bucd rtl8822bu/
make

Get Error Messge:


/usr/src/linux-4.12.14-lp151.21/include/linux/ieee80211.h:1442:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
/home/mk/rtl8822bu/os_dep/linux/os_intfs.c:1433:22: error: initialization from incompatible pointer type -Werror=incompatible-pointer-types]
  .ndo_select_queue = rtw_select_queue,
                      ^~~~~~~~~~~~~~~~
/home/mk/rtl8822bu/os_dep/linux/os_intfs.c:1433:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.12.14-lp151.21/scripts/Makefile.build:328:/home/mk/rtl8822bu/os_dep/linux/os_intfs.o] 错误 1
make[3]: *** [/usr/src/linux-4.12.14-lp151.21/Makefile:1562:_module_/home/mk/rtl8822bu] 错误 2
make[2]: *** [Makefile:152:sub-make] 错误 2
make[1]: *** [Makefile:24:__sub-make] 错误 2
make[1]: 离开目录“/usr/src/linux-4.12.14-lp151.21-obj/x86_64/default”
make: *** [Makefile:2001:modules] 错误 2

How can I fix it.

Leap 15.1 kernel contains backports so simple version check is no more correct. You will need to identify all relevant parts in Leap 15.1 kernels that have been backported and adjust your driver code accordingly.

… looks like someone may have done it, at least for this particular place.

Patches are missing…

Are you aware that 15.1 is still in beta phase?

So when it will be out of beta phase it will drop those kernel patches?

Kernel in Leap 15.1 is a backported 4.19 kernel, so the 4.19 patches must changed to 4.12…

You can install this kmp:
https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUSE_Leap_15.1/x86_64/rtl8822bu-kmp-default-git20190202_k4.12.14_lp151.22-lp151.4.5.x86_64.rpm

Thank you,now i can see my wlan