Skip to content

Instantly share code, notes, and snippets.

@fcomida
fcomida / rtl8822bu_init_timer.patch
Created August 22, 2018 13:39
Fix compilation for Realtek RTL8822BU USB Adapter linux driver for kernel >= 4.15
diff --git a/hal/phydm/phydm_interface.c b/hal/phydm/phydm_interface.c
index 1a9264d..d97371c 100644
--- a/hal/phydm/phydm_interface.c
+++ b/hal/phydm/phydm_interface.c
@@ -653,7 +653,11 @@ ODM_sleep_us(u32 us)
void
odm_set_timer(
struct PHY_DM_STRUCT *p_dm_odm,
- struct timer_list *p_timer,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))