From 18b94111a025808b62d8ba5245fd016ba71d6ffe Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 1 Nov 2024 03:06:38 +0800 Subject: [PATCH] rtl8188eu: fix build with recent mac80211 update Signed-off-by: Tianling Shen --- .../kernel/rtl8188eu/patches/030-wireless-5.8.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/package/kernel/rtl8188eu/patches/030-wireless-5.8.patch b/package/kernel/rtl8188eu/patches/030-wireless-5.8.patch index cd84f52058..caa12dfc63 100644 --- a/package/kernel/rtl8188eu/patches/030-wireless-5.8.patch +++ b/package/kernel/rtl8188eu/patches/030-wireless-5.8.patch @@ -158,7 +158,17 @@ static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id) #else static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev) -@@ -9670,7 +9686,7 @@ void rtw_wdev_unregister(struct wireless +@@ -5650,6 +5666,9 @@ static int cfg80211_rtw_set_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 +@@ -9670,7 +9689,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)