diff --git a/fix-backported-update_mgmt_frame_registrations.patch b/fix-backported-update_mgmt_frame_registrations.patch new file mode 100644 index 0000000..8e23d13 --- /dev/null +++ b/fix-backported-update_mgmt_frame_registrations.patch @@ -0,0 +1,31 @@ +From: Antonio Larrosa +Subject: Fix build with SLE 15-SP3 / Leap 15.3 + +The SLE 15 SP3/Leap 15.3's kernel includes +backported patches to support update_mgmt_frame_registrations +instead of mgmt_frame_register which would be expected +according to the kernel version, so we force to use the +more modern interface. + +Index: rtl8812au-5.9.3.2+git20210427.6ef5d8f/os_dep/linux/ioctl_cfg80211.c +=================================================================== +--- rtl8812au-5.9.3.2+git20210427.6ef5d8f.orig/os_dep/linux/ioctl_cfg80211.c ++++ rtl8812au-5.9.3.2+git20210427.6ef5d8f/os_dep/linux/ioctl_cfg80211.c +@@ -7902,7 +7902,7 @@ exit: + return ret; + } + +-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)) ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 18)) + static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy, + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)) + struct wireless_dev *wdev, +@@ -10394,7 +10394,7 @@ static struct cfg80211_ops rtw_cfg80211_ + + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE) + .mgmt_tx = cfg80211_rtw_mgmt_tx, +-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)) ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 18)) + .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, + #else + .update_mgmt_frame_registrations = cfg80211_rtw_update_mgmt_frame_register, diff --git a/rtl8812au-5.9.3.2+git20210302.d1bf6df.obscpio b/rtl8812au-5.9.3.2+git20210302.d1bf6df.obscpio deleted file mode 100644 index 95e4c3a..0000000 --- a/rtl8812au-5.9.3.2+git20210302.d1bf6df.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:abc3dce88195416740459c80e52a48ffb20e9278ea295f30da18dc364245608b -size 14401549 diff --git a/rtl8812au-5.9.3.2+git20210427.6ef5d8f.obscpio b/rtl8812au-5.9.3.2+git20210427.6ef5d8f.obscpio new file mode 100644 index 0000000..9483a57 --- /dev/null +++ b/rtl8812au-5.9.3.2+git20210427.6ef5d8f.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b15e340e9b787f0c53ad578d4dbc355bb9535ce0b64157ace3b988ecdacfa1e +size 14402061 diff --git a/rtl8812au.changes b/rtl8812au.changes index eaf7a1e..6c82aa7 100644 --- a/rtl8812au.changes +++ b/rtl8812au.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed May 12 06:21:36 UTC 2021 - Antonio Larrosa + +- Add patch to build with Leap 15.3's kernel which includes + backported patches to support update_mgmt_frame_registrations + instead of mgmt_frame_register which would be expected + according to the kernel version: + * fix-backported-update_mgmt_frame_registrations.patch + +------------------------------------------------------------------- +Tue May 11 21:50:35 UTC 2021 - Victor Kwan + +- Update to 5.9.3.2+git20210427.6ef5d8f + * Works with kernel 5.12. + ------------------------------------------------------------------- Thu Mar 11 14:02:34 UTC 2021 - Antonio Larrosa diff --git a/rtl8812au.obsinfo b/rtl8812au.obsinfo index b636be9..33815c2 100644 --- a/rtl8812au.obsinfo +++ b/rtl8812au.obsinfo @@ -1,5 +1,5 @@ name: rtl8812au -version: 5.9.3.2+git20210302.d1bf6df -mtime: 1614700034 -commit: d1bf6dfdef9a14ee80768a80df1852312cee7925 +version: 5.9.3.2+git20210427.6ef5d8f +mtime: 1619523090 +commit: 6ef5d8fcdb0b94b7490a9a38353877708fca2cd4 diff --git a/rtl8812au.spec b/rtl8812au.spec index 10fdecc..6cc75ac 100644 --- a/rtl8812au.spec +++ b/rtl8812au.spec @@ -17,7 +17,7 @@ Name: rtl8812au -Version: 5.9.3.2+git20210302.d1bf6df +Version: 5.9.3.2+git20210427.6ef5d8f Release: 0 Summary: Kernel driver for Realtek 802.11ac 8812au wifi cards License: GPL-2.0-only @@ -28,6 +28,8 @@ Source1: %{name}-preamble Source2: LICENSE # PATCH-FIX-OPENSUSE fix-backported-ndo_select_queue.patch Patch0: fix-backported-ndo_select_queue.patch +# PATCH-FIX-OPENSUSE fix-backported-update_mgmt_frame_registrations.patch +Patch1: fix-backported-update_mgmt_frame_registrations.patch BuildRequires: %{kernel_module_package_buildreqs} BuildRequires: bc BuildRequires: binutils @@ -43,7 +45,7 @@ Kernel driver for Realtek 802.11ac 8812au wifi cards The sources were obtained from https://github.com/gordboy/rtl8812au, which adaptes the official driver released by Realtek to build on recent kernels. -The previous sources were obtained from https://github.com/diederikdehaas/rtl8812AU and +The previous sources were obtained from https://github.com/diederikdehaas/rtl8812AU and https://github.com/maurossi/rtl8812au/ . %package KMP @@ -56,7 +58,7 @@ Kernel driver for Realtek 802.11ac 8812au wifi cards The sources were obtained from https://github.com/gordboy/rtl8812au, which adaptes the official driver released by Realtek to build on recent kernels. -The previous sources were obtained from https://github.com/diederikdehaas/rtl8812AU and +The previous sources were obtained from https://github.com/diederikdehaas/rtl8812AU and https://github.com/maurossi/rtl8812au/ . %prep @@ -65,6 +67,10 @@ https://github.com/maurossi/rtl8812au/ . %patch0 -p1 %endif +%if 0%{?sle_version} == 150300 +%patch1 -p1 +%endif + set -- * mkdir source mv "$@" source/