fix rtl8723cs driver compilation on kernel 6.13

This commit is contained in:
Paolo Sabatino
2025-01-01 17:57:36 +01:00
committed by Igor
parent 8007e64ab1
commit 371909623d

View File

@@ -0,0 +1,20 @@
diff --git a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
index 2ea88d7ce3c5..3386acc000b6 100644
--- a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
@@ -6799,13 +6799,8 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def(
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) */
static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
- , struct cfg80211_chan_def *chandef
-#else
- , struct ieee80211_channel *chan
- , enum nl80211_channel_type channel_type
-#endif
- )
+ , struct net_device *dev
+ , struct cfg80211_chan_def *chandef)
{
_adapter *padapter = wiphy_to_adapter(wiphy);
u8 target_channal, target_offset, target_width, ht_option;