From 96087967b9a40fd0bae60c9643718b4e97bca601 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 1 Nov 2024 03:02:26 +0800 Subject: [PATCH] rtl8812au-ac: fix build with recent mac80211 update Signed-off-by: Tianling Shen --- .../rtl8812au-ac/patches/040-wireless-5.8.patch | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package/kernel/rtl8812au-ac/patches/040-wireless-5.8.patch b/package/kernel/rtl8812au-ac/patches/040-wireless-5.8.patch index c31b78bb93..708f8532a3 100644 --- a/package/kernel/rtl8812au-ac/patches/040-wireless-5.8.patch +++ b/package/kernel/rtl8812au-ac/patches/040-wireless-5.8.patch @@ -105,7 +105,17 @@ static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, unsigned int link_id, struct cfg80211_chan_def *chandef){ #else static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, struct cfg80211_chan_def *chandef){ -@@ -7862,7 +7862,7 @@ static int cfg80211_rtw_tdls_mgmt(struct +@@ -6303,6 +6303,9 @@ static int cfg80211_rtw_get_channel(stru + } + + static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy ++#ifdef BUILD_OPENWRT ++ , struct net_device *dev ++#endif + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) + , struct cfg80211_chan_def *chandef + #else +@@ -7862,7 +7865,7 @@ static int cfg80211_rtw_tdls_mgmt(struct #else u8 *peer, #endif @@ -114,7 +124,7 @@ int link_id, #endif u8 action_code, -@@ -10484,7 +10484,7 @@ void rtw_wdev_unregister(struct wireless +@@ -10484,7 +10487,7 @@ void rtw_wdev_unregister(struct wireless rtw_cfg80211_indicate_scan_done(adapter, _TRUE); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)