diff -Nru rtl8812au-4.3.8.12175.20140902+dfsg/debian/changelog rtl8812au-4.3.8.12175.20140902+dfsg/debian/changelog --- rtl8812au-4.3.8.12175.20140902+dfsg/debian/changelog 2024-01-12 14:52:22.000000000 +0000 +++ rtl8812au-4.3.8.12175.20140902+dfsg/debian/changelog 2024-04-16 21:28:15.000000000 +0100 @@ -1,3 +1,9 @@ +rtl8812au (4.3.8.12175.20140902+dfsg-0ubuntu23) noble; urgency=medium + + * Fix compatibility with v6.8 kernel. (LP: #2061905) + + -- Sudip Mukherjee Tue, 16 Apr 2024 21:28:15 +0100 + rtl8812au (4.3.8.12175.20140902+dfsg-0ubuntu22) noble; urgency=medium * Support Linux 6.7 (LP: #2049212). diff -Nru rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/6.8-kernel-compatibility.patch rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/6.8-kernel-compatibility.patch --- rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/6.8-kernel-compatibility.patch 1970-01-01 01:00:00.000000000 +0100 +++ rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/6.8-kernel-compatibility.patch 2024-04-16 21:28:15.000000000 +0100 @@ -0,0 +1,23 @@ +Description: Fix kernel compatibility with v6.8 + Use device_driver directly as done in upstream kernel. + https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=49a78b05d5ca1e23fd737747a8757b8bdc319b30 + +Author: Sudip Mukherjee +Bug-Ubuntu: https://launchpad.net/bugs/2061905 +Forwarded: no +Last-Update: 2024-04-16 +--- + +--- rtl8812au-4.3.8.12175.20140902+dfsg.orig/os_dep/linux/usb_intf.c ++++ rtl8812au-4.3.8.12175.20140902+dfsg/os_dep/linux/usb_intf.c +@@ -377,7 +377,9 @@ struct rtw_usb_drv usb_drv = { + .usbdrv.supports_autosuspend = 1, + #endif + +- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) ++ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)) ++ .usbdrv.driver.shutdown = rtw_dev_shutdown, ++ #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) + .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown, + #else + .usbdrv.driver.shutdown = rtw_dev_shutdown, diff -Nru rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/series rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/series --- rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/series 2024-01-12 14:52:13.000000000 +0000 +++ rtl8812au-4.3.8.12175.20140902+dfsg/debian/patches/series 2024-04-16 21:11:49.000000000 +0100 @@ -29,3 +29,4 @@ 5.19-kernel-compatibility.patch 6.2-kernel-compatibility.patch 6.7-kernel-compatibility.patch +6.8-kernel-compatibility.patch