mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2026-10-06 12:33:58 +08:00
Fix build on 6.12.101 and later in the 6.12 series (#208)
set_monitor_channel gained a struct net_device *dev argument in 9c4f83092775 (6.13), and 6.12 stable took it at 6.12.101. The 6.13.0 gate therefore misses 6.12.101 to the end of the 6.12 series. 6.13 and newer were never affected. 6.13.0 sorts above 6.12.101, so the single check covers both.
This commit is contained in:
@@ -6977,7 +6977,7 @@ 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(6, 13, 0))
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 101))
|
||||
, struct net_device *dev
|
||||
, struct cfg80211_chan_def *chandef
|
||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
||||
|
||||
Reference in New Issue
Block a user