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)