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; }