Accepting request 892384 from hardware
OBS-URL: https://build.opensuse.org/request/show/892384 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rtl8812au?expand=0&rev=13
This commit is contained in:
commit
ca92a1664d
31
fix-backported-update_mgmt_frame_registrations.patch
Normal file
31
fix-backported-update_mgmt_frame_registrations.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From: Antonio Larrosa <alarrosa@suse.com>
|
||||
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,
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:abc3dce88195416740459c80e52a48ffb20e9278ea295f30da18dc364245608b
|
||||
size 14401549
|
3
rtl8812au-5.9.3.2+git20210427.6ef5d8f.obscpio
Normal file
3
rtl8812au-5.9.3.2+git20210427.6ef5d8f.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b15e340e9b787f0c53ad578d4dbc355bb9535ce0b64157ace3b988ecdacfa1e
|
||||
size 14402061
|
@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 12 06:21:36 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- 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 <vkwan8@uwo.ca>
|
||||
|
||||
- Update to 5.9.3.2+git20210427.6ef5d8f
|
||||
* Works with kernel 5.12.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 11 14:02:34 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user