- Update to version 5.8.7.1+git20250126.efe396c:

* Add additional argument to cfg80211_rtw_set_monitor_channel
- Update to version 5.8.7.1+git20241216.45ca59c:
  * Add v6.10.3 to compatibility list

OBS-URL: https://build.opensuse.org/package/show/hardware/rtl88x2bu?expand=0&rev=21
This commit is contained in:
Eyad Issa 2025-01-29 23:20:46 +00:00 committed by Git OBS Bridge
commit 8cc53bd171
12 changed files with 345 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

13
_service Normal file
View File

@ -0,0 +1,13 @@
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/cilynx/rtl88x2bu.git</param>
<param name="filename">rtl88x2bu</param>
<param name="versionformat">5.8.7.1+git%cd.%h</param>
<param name="revision">5.8.7.1_35809.20191129_COEX20191120-7777</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual" />
<service name="tar" mode="buildtime" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/cilynx/rtl88x2bu.git</param>
<param name="changesrevision">efe396cb50deb45a8cc0a0d5411bfed14cd28528</param></service></servicedata>

View File

@ -0,0 +1,56 @@
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.
--- os_dep/linux/ioctl_cfg80211.c.orig
+++ os_dep/linux/ioctl_cfg80211.c
@@ -7771,7 +7771,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))
@@ -7787,7 +7787,7 @@ static void cfg80211_rtw_update_mgmt_fra
struct mgmt_frame_regs *upd)
#endif
{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 18))
u32 rtw_mask = BIT(IEEE80211_STYPE_PROBE_REQ >> 4);
#endif
@@ -7805,7 +7805,7 @@ static void cfg80211_rtw_update_mgmt_fra
pwdev_priv = adapter_wdev_data(adapter);
#ifdef CONFIG_DEBUG_CFG80211
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 18))
RTW_INFO(FUNC_ADPT_FMT" frame_type:%x, reg:%d\n", FUNC_ADPT_ARG(adapter),
frame_type, reg);
#else
@@ -7817,7 +7817,7 @@ static void cfg80211_rtw_update_mgmt_fra
/* Wait QC Verify */
return;
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 18))
switch (frame_type) {
case IEEE80211_STYPE_AUTH: /* 0x00B0 */
if (reg > 0)
@@ -10230,7 +10230,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 =

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a4874f39d374dc16967d533c3fe18243fbb6c33553907f59f61280c655f0c28
size 27619853

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c8ef1022b3ef586932fc24dd383c523d6121b1d1389e192673d3e78fe6bdb8c
size 27619853

2
rtl88x2bu-preamble Normal file
View File

@ -0,0 +1,2 @@
Requires: kernel-%1
Enhances: kernel-%1

114
rtl88x2bu.changes Normal file
View File

@ -0,0 +1,114 @@
-------------------------------------------------------------------
Wed Jan 29 23:09:40 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Update to version 5.8.7.1+git20250126.efe396c:
* Add additional argument to cfg80211_rtw_set_monitor_channel
- Update to version 5.8.7.1+git20241216.45ca59c:
* Add v6.10.3 to compatibility list
-------------------------------------------------------------------
Wed May 22 20:23:30 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
- Update to version 5.8.7.1+git20240521.287e766:
* Fix build for Linux v6.9
* Remove puncturing bitmap from function calls
* Suppress stringop-overread
* Remove useless if-guard
* Rewrite section regarding Unknown symbol errors
-------------------------------------------------------------------
Fri Mar 22 23:56:39 UTC 2024 - eyadlorenzo@gmail.com
- Update to version 5.8.7.1+git20240314.8c9afc1:
* Add v6.8.0 to compatibility list
* Add v6.7.2 to compatibility list
* Following unnesting of attribute
* Disable new warnings
-------------------------------------------------------------------
Fri Feb 23 11:47:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Mon Jan 15 14:38:58 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
- Update to version 5.8.7.1+git20240108.476ef38:
* Add v6.5.5 and v6.6.1 to compatibility list
* Change order of #if and #else
* Follow renaming of _settings to _update
* Adapt type of change_beacon
* Add v6.5.2 to compatibility list
* Use tee to redirect content to root file
* Improve wording minorly
-------------------------------------------------------------------
Tue Aug 22 11:54:17 UTC 2023 - Eyad Issa <eyadlorenzo@gmail.com>
- Update to version 5.8.7.1+git20230713.6789143:
* Update notion of confirmed compatibility
- Remove recompression service in _service
-------------------------------------------------------------------
Fri Jun 30 23:43:07 UTC 2023 - eyadlorenzo@gmail.com
- Update to version 5.8.7.1+git20230628.0be6fb4:
* Add Linux 6.4.0 to confirmed builds
-------------------------------------------------------------------
Sun Jun 04 14:02:52 UTC 2023 - eyadlorenzo@gmail.com
- Update to version 5.8.7.1+git20230518.41e9827:
* Extend section of confirmed builds
-------------------------------------------------------------------
Fri May 05 13:37:13 UTC 2023 - eyadlorenzo@gmail.com
- Update to version 5.8.7.1+git20230424.3de9861:
* Add TP-Link Archer T3U Nano (2357:012e)
* Pass default puncturing bitmap to cfg80211_ch_switch_notify
-------------------------------------------------------------------
Thu Feb 09 09:57:30 UTC 2023 - eyadlorenzo@gmail.com
- Update to version 5.8.7.1+git20221213.549257e:
* Extend section about secure boot
* Switch to get_random_u32
* Fix compilation for v6.0 again
* Pass default link_id to cfg80211_ch_switch_started_notify
* Drop the weight argument from netif_napi_add
* Add link_id parameter to various key operations
* Use nproc to build driver using multithreads
* Adding a note about secure boot
-------------------------------------------------------------------
Sat Apr 09 17:11:38 UTC 2022 - tejas.guruswamy@opensuse.org
- Update to version 5.8.7.1+git20220324.1751f39:
* Use mm_segment_t only on Linux < 5.10.0
* Remove unrequired usages of mm_segment_t
* Map PDE_DATA to pde_data
* Rename complete_and_exit to kthread_complete_and_exit
* Fix build since dev_addr constification
* Revert "Use `--cvs-exclude` instead of hardcoding `.git/`"
* Use `--cvs-exclude` instead of hardcoding `.git/`
* Disable IPX for Linux kernel >= 5.15
* Rework architecture detection Fixes #170
* Replace fall-through comments by attributes
-------------------------------------------------------------------
Sat Mar 5 21:52:55 UTC 2022 - Tejas Guruswamy <tejas.guruswamy@opensuse.org>
- Fix missing %kernel_module_directory macro on 15.3
-------------------------------------------------------------------
Mon Oct 4 00:39:57 UTC 2021 - Tejas Guruswamy <tejas.guruswamy@opensuse.org>
- Add fix-backported-update_mgmt_frame_registrations.patch for build on 15.3 kernel
-------------------------------------------------------------------
Mon Oct 4 00:11:41 UTC 2021 - Tejas Guruswamy <tejas.guruswamy@opensuse.org>
- Initial package from https://github.com/cilynx/rtl88x2bu

4
rtl88x2bu.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: rtl88x2bu
version: 5.8.7.1+git20250126.efe396c
mtime: 1737899864
commit: efe396cb50deb45a8cc0a0d5411bfed14cd28528

111
rtl88x2bu.spec Normal file
View File

@ -0,0 +1,111 @@
#
# spec file for package rtl88x2bu
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: rtl88x2bu
Version: 5.8.7.1+git20250126.efe396c
Release: 0
Summary: Kernel driver for Realtek 88x2bu wifi cards
License: GPL-2.0-only
Group: System/Kernel
URL: https://github.com/cilynx/rtl88x2bu
ExcludeArch: s390x
Source0: %{name}-%{version}.tar
Source1: %{name}-preamble
# PATCH-FIX-OPENSUSE rtl88x2bu_nodate_time.patch
Patch0: rtl88x2bu_nodate_time.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: kernel-macros
BuildRequires: module-init-tools
%{!?kernel_module_directory:%define kernel_module_directory /lib/modules}
%description
Kernel driver for Realtek 88x2bu wifi cards
The sources were obtained from https://github.com/cilynx/rtl88x2bu, which adapts the official driver
released by Realtek to build on recent kernels.
%package KMP
Summary: Kernel driver for Realtek rtl88x2bu wifi cards
Group: System/Kernel
%description KMP
Kernel driver for Realtek 88x2bu wifi cards
The sources were obtained from https://github.com/cilynx/rtl88x2bu, which adapts the official driver
released by Realtek to build on recent kernels.
%kernel_module_package -p %{name}-preamble
%prep
%setup -q
sed -i '/EXTRA_CFLAGS += -O2/d' Makefile
sed -i '/EXTRA_LDFLAGS += --strip-debug/d' Makefile
%patch -P 0 -p0
%if 0%{?sle_version} == 150300
%patch -P 1 -p0
%endif
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
%ifarch %{arm}
export ARCH=arm
%endif
%ifarch aarch64
export ARCH=arm64
%endif
%ifarch %{ppc} ppc64 ppc64le
export ARCH=powerpc
%endif
%ifarch riscv64
export ARCH=riscv
%endif
for flavor in %{flavors_to_build} ; do
rm -rf obj/$flavor
cp -a source obj/$flavor
pushd obj/$flavor
sed -i -e "s,^KSRC := /lib/modules/\$(KVER)/build$,KSRC := %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor," Makefile
%make_build
popd
done
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=%{kernel_module_package_moddir}
kernel_version=`uname -r | sed -e "s/-[^-]*$//"`
echo ${kernel_version}
for flavor in %{flavors_to_build} ; do
pushd obj/$flavor
install -d %{buildroot}/lib/modules/${kernel_version}-${flavor}/${INSTALL_MOD_DIR}/
mkdir -p %{buildroot}%{kernel_module_directory}/${kernel_version}-${flavor}/${INSTALL_MOD_DIR}/
install -p -m 644 88x2bu.ko %{buildroot}%{kernel_module_directory}/${kernel_version}-${flavor}/${INSTALL_MOD_DIR}/
popd
done
%files
%license source/LICENSE
%changelog

View File

@ -0,0 +1,11 @@
--- core/rtw_debug.c.orig
+++ core/rtw_debug.c
@@ -42,7 +42,7 @@ const char *rtw_log_level_str[] = {
void dump_drv_version(void *sel)
{
RTW_PRINT_SEL(sel, "%s %s\n", DRV_NAME, DRIVERVERSION);
- RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
+// RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
}
void dump_drv_cfg(void *sel)