From 157e7a04fe82d6f4ba4193cfb21d15559c779283 Mon Sep 17 00:00:00 2001 From: morrownr Date: Thu, 23 Nov 2023 08:43:16 -0600 Subject: [PATCH] repair support for kernel 6.7 --- os_dep/linux/ioctl_cfg80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 732ad4a..4e794eb 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -5420,7 +5420,11 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)) + ret = rtw_add_beacon(adapter, ap->beacon.head, ap->beacon.head_len, ap->beacon.tail, ap->beacon.tail_len); +#else ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len); +#endif return ret; }