mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00

* mac80211: backport security fixes
This mainly affects scanning and beacon parsing, especially with MBSSID enabled
Fixes: CVE-2022-41674
Fixes: CVE-2022-42719
Fixes: CVE-2022-42720
Fixes: CVE-2022-42721
Fixes: CVE-2022-42722
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 26f400210d6b3780fcc0deb89b9741837df9c8b8)
* mac80211: refresh patches
355-wifi-cfg80211-fix-BSS-refcounting-bugs.patch - 5a52384a51
Co-authored-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: 1054009064 <1054009064@users.noreply.github.com>
31 lines
914 B
Diff
31 lines
914 B
Diff
--- a/net/mac80211/ethtool.c
|
|
+++ b/net/mac80211/ethtool.c
|
|
@@ -14,7 +14,13 @@
|
|
#include "driver-ops.h"
|
|
|
|
static int ieee80211_set_ringparam(struct net_device *dev,
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
|
struct ethtool_ringparam *rp)
|
|
+#else
|
|
+ struct ethtool_ringparam *rp,
|
|
+ struct kernel_ethtool_ringparam *kernel_rp,
|
|
+ struct netlink_ext_ack *extack)
|
|
+#endif
|
|
{
|
|
struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy);
|
|
|
|
@@ -25,7 +31,13 @@ static int ieee80211_set_ringparam(struc
|
|
}
|
|
|
|
static void ieee80211_get_ringparam(struct net_device *dev,
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
|
struct ethtool_ringparam *rp)
|
|
+#else
|
|
+ struct ethtool_ringparam *rp,
|
|
+ struct kernel_ethtool_ringparam *kernel_rp,
|
|
+ struct netlink_ext_ack *extack)
|
|
+#endif
|
|
{
|
|
struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy);
|
|
|