diff --git a/package/kernel/rtl8189es/patches/020-wireless-5.8.patch b/package/kernel/rtl8189es/patches/020-wireless-5.8.patch index b853d22607..af80328d13 100644 --- a/package/kernel/rtl8189es/patches/020-wireless-5.8.patch +++ b/package/kernel/rtl8189es/patches/020-wireless-5.8.patch @@ -84,7 +84,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) -@@ -10270,7 +10270,7 @@ void rtw_wdev_unregister(struct wireless +@@ -6078,6 +6078,9 @@ static int cfg80211_rtw_set_channel(stru + #endif /*#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))*/ + + 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 +@@ -10270,7 +10273,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)