cilynx / rtl88x2bu

rtl88x2bu driver updated for current kernels.
http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
GNU General Public License v2.0
1.66k stars 321 forks source link

Install on Opensuse Leap15.3 #156

Closed hornetster closed 3 years ago

hornetster commented 3 years ago

Trying to install on Opensuse Leap 15.3, kernel 5.3.18-57-default and getting:

make -j4 KERNELRELEASE=5.3.18-57-default KVER=5.3.18-57-default src=/usr/src/rtl88x2bu-5.6.1.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.3.18-57-default (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.

make.log

arnoldix commented 3 years ago

This workaround helped on my system: Modify the file os_dep/linux/ioctl_cfg80211.c. You will find several times this line

if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))

or

if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))

Search and replace KERNEL_VERSION(5, 8, 0) by KERNEL_VERSION(5, 3, 0) and re-run make.

Remark: In Leap 15.2 the kernel version is 5.3.18 as well and the make command runs without the described modification. Obviously SUSE applied a change in Leap 15.3 in the kernel 5.3.18 that other did in the kernel 5.8.0.

hornetster commented 3 years ago

Thanks for the suggestion. I ended up finding some software on the Opensuse (https://software.opensuse.org/search?utf8=%E2%9C%93&baseproject=ALL&q=rtl88) and that worked fine!