Update ioctl_cfg80211.c

Add additional argument to cfg80211_rtw_set_monitor_channel
In Linux Kernel commit 9c4f83092775 a new argument is introduced to
cfg80211_rtw_set_monitor_channel.

_______

Source: https://github.com/cilynx/rtl88x2bu/compare/5.8.7.1_35809.20191129_COEX20191120-7777...fix-linux-6.12
This commit is contained in:
onlyreportingissues 2024-11-26 22:43:21 +01:00 committed by GitHub
parent d4425c0b8f
commit b78e57bd58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6952,10 +6952,13 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def(
rtw_warn_on(1); rtw_warn_on(1);
}; };
} }
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) */ #endif /*#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))*/
static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
, struct net_device *dev
, struct cfg80211_chan_def *chandef
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
, struct cfg80211_chan_def *chandef , struct cfg80211_chan_def *chandef
#else #else
, struct ieee80211_channel *chan , struct ieee80211_channel *chan