File leap156.patch of Package rtl8821au
diff -Naur rtl8821au/os_dep/linux/ioctl_cfg80211.c rtl8821aun/os_dep/linux/ioctl_cfg80211.c --- rtl8821au/os_dep/linux/ioctl_cfg80211.c 2025-04-09 13:27:53.000000000 +0200 +++ rtl8821aun/os_dep/linux/ioctl_cfg80211.c 2025-07-16 20:38:51.555444329 +0200 @@ -5411,7 +5411,7 @@ } static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) struct cfg80211_ap_update *info) #else struct cfg80211_beacon_data *info) @@ -5422,7 +5422,7 @@ RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) ret = rtw_add_beacon(adapter, info->beacon.head, info->beacon.head_len, info->beacon.tail, info->beacon.tail_len); #else ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len); @@ -8464,7 +8464,7 @@ #else u8 *peer, #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) int link_id, #endif u8 action_code,