mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
fix rtl8723cs driver compilation on kernel 6.13
This commit is contained in:
20
patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.13.patch
Normal file
20
patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.13.patch
Normal 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;
|
||||
Reference in New Issue
Block a user