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:
Devin Wittmayer
2026-08-20 10:06:31 -05:00
committed by GitHub
parent 7f63a9da2e
commit d2e771537c
+1 -1
View File
@@ -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))