-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Reilly Brogan <[email protected]>
- Loading branch information
1 parent
1f8b46f
commit 2458298
Showing
3 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 1b4344ab8d9d7891f843dc993b0c5447f46c9889 Mon Sep 17 00:00:00 2001 | ||
From: medusalix <[email protected]> | ||
Date: Sun, 21 Jan 2024 21:18:17 +0100 | ||
Subject: [PATCH] Fix build on kernel 6.8 | ||
|
||
--- | ||
transport/dongle.c | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/transport/dongle.c b/transport/dongle.c | ||
index 1a30922..71aed1c 100644 | ||
--- a/transport/dongle.c | ||
+++ b/transport/dongle.c | ||
@@ -6,6 +6,7 @@ | ||
#include <linux/module.h> | ||
#include <linux/slab.h> | ||
#include <linux/bitfield.h> | ||
+#include <linux/version.h> | ||
#include <linux/usb.h> | ||
#include <linux/ieee80211.h> | ||
#include <net/cfg80211.h> | ||
@@ -1024,7 +1025,11 @@ static struct usb_driver xone_dongle_driver = { | ||
.suspend = xone_dongle_suspend, | ||
.resume = xone_dongle_resume, | ||
.id_table = xone_dongle_id_table, | ||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0) | ||
.drvwrap.driver.shutdown = xone_dongle_shutdown, | ||
+#else | ||
+ .driver.shutdown = xone_dongle_shutdown, | ||
+#endif | ||
.supports_autosuspend = true, | ||
.disable_hub_initiated_lpm = true, | ||
.soft_unbind = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters