Files
packages/anda/system/wl-kmod/wl-kmod-028_kernel_6.12_adaptation.patch
T
Gil 10abb8b734 Add: Broadcom Wi-Fi Drivers (broadcom-wl and wl-kmod) (#2891)
* Add: broadcom-wl and wl-kmod

* Fix: Built kmods without RPM Fusion deps fixed BuildRequires because actually why was it done that way

* Cleanup: Removed EOL Fedora and RHEL versions from specs

* Cleanup/security: Fixed more spec stuff for EOL Fedora/EL versions, removed a legacy file that if changed could result in an unbootable kernel

* Fix: Use Mock

Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: Gil <rockgrub@protonmail.com>

* Cleanup: More removal of EOL conditions

Signed-off-by: Gil <rockgrub@protonmail.com>

* Cleanup: Typo

Signed-off-by: Gil <rockgrub@protonmail.com>

* Cleanup/security: Removed a patch related to a previously removed file that could result in an unbootable kernel

---------

Signed-off-by: Gil <rockgrub@protonmail.com>
Co-authored-by: madomado <madonuko@outlook.com>
2025-01-09 02:07:25 +08:00

33 lines
883 B
Diff

From 5f6c5c8b27da17c80ce9bd2d6d714295bd352df5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20Vi=C3=A9ville?= <nicolas.vieville@uphf.fr>
Date: Tue, 10 Dec 2024 09:22:46 +0100
Subject: [PATCH] wl_linux.c: #include <linux/unaligned.h> for kernel >= 6.12.x
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Nicolas Viéville <nicolas.vieville@uphf.fr>
---
src/wl/sys/wl_linux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
index 2000f6f..3c25ce4 100644
--- a/src/wl/sys/wl_linux.c
+++ b/src/wl/sys/wl_linux.c
@@ -56,7 +56,11 @@
#include <asm/irq.h>
#include <asm/pgtable.h>
#include <asm/uaccess.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
#include <asm/unaligned.h>
+#else
+#include <linux/unaligned.h>
+#endif
#include <proto/802.1d.h>
--
2.47.1