diff mbox series

rtw88 (https://github.com/lwfinger/rtw88) / compile error since 5.15?

Message ID bf74cccd-92f9-c09d-b29c-53b126a5ae88@justmail.de
State New
Headers show
Series rtw88 (https://github.com/lwfinger/rtw88) / compile error since 5.15? | expand

Commit Message

Klaus Mueller Dec. 31, 2021, 5:07 p.m. UTC
Hello,

I found an error compiling rtw88 w/ kernel 5.15(.12). The attached short patch fixes it (works for me). Could you please apply a better patch?


Thanks
Klaus
diff mbox series

Patch

--- mac80211.c.orig	2021-05-26 22:03:18.636003469 +0200
+++ mac80211.c	2021-12-31 15:21:01.243896526 +0100
@@ -655,13 +655,14 @@ 
 	mutex_unlock(&rtwdev->mutex);
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
 static void rtw_ops_mgd_prepare_tx(struct ieee80211_hw *hw,
 				   struct ieee80211_vif *vif,
-				   u16 duration)
+				   struct ieee80211_prep_tx_info *info)
 #else
 static void rtw_ops_mgd_prepare_tx(struct ieee80211_hw *hw,
-				   struct ieee80211_vif *vif)
+				   struct ieee80211_vif *vif,
+				   u16 duration)
 #endif
 {
 	struct rtw_dev *rtwdev = hw->priv;