summaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/build/080-resv_start_op.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-12-10 12:36:44 +0100
committerFelix Fietkau <nbd@nbd.name>2022-12-10 15:15:19 +0100
commit8d90b9fef1ef6b01228c6af73cf06ecbe5d0adaf (patch)
tree180701fce60ea47f7f5270dc03a90546126572b1 /package/kernel/mac80211/patches/build/080-resv_start_op.patch
parentb1b29ba98769386f7f88ef66fabc88c79be56b33 (diff)
downloadopenwrt-8d90b9fef1ef6b01228c6af73cf06ecbe5d0adaf.tar.gz
openwrt-8d90b9fef1ef6b01228c6af73cf06ecbe5d0adaf.tar.bz2
openwrt-8d90b9fef1ef6b01228c6af73cf06ecbe5d0adaf.zip
mac80211: update to linux 6.1-rc8
This should help stay in sync with upstream development Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/build/080-resv_start_op.patch')
-rw-r--r--package/kernel/mac80211/patches/build/080-resv_start_op.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/build/080-resv_start_op.patch b/package/kernel/mac80211/patches/build/080-resv_start_op.patch
new file mode 100644
index 0000000000..67ccc73a48
--- /dev/null
+++ b/package/kernel/mac80211/patches/build/080-resv_start_op.patch
@@ -0,0 +1,24 @@
+--- a/drivers/net/wireless/mac80211_hwsim.c
++++ b/drivers/net/wireless/mac80211_hwsim.c
+@@ -5363,7 +5363,9 @@ static struct genl_family hwsim_genl_fam
+ .module = THIS_MODULE,
+ .small_ops = hwsim_ops,
+ .n_small_ops = ARRAY_SIZE(hwsim_ops),
++#if LINUX_VERSION_IS_GEQ(6,1,0)
+ .resv_start_op = HWSIM_CMD_DEL_MAC_ADDR + 1,
++#endif
+ .mcgrps = hwsim_mcgrps,
+ .n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
+ };
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -17232,7 +17232,9 @@ static struct genl_family nl80211_fam __
+ .n_ops = ARRAY_SIZE(nl80211_ops),
+ .small_ops = nl80211_small_ops,
+ .n_small_ops = ARRAY_SIZE(nl80211_small_ops),
++#if LINUX_VERSION_IS_GEQ(6,1,0)
+ .resv_start_op = NL80211_CMD_REMOVE_LINK_STA + 1,
++#endif
+ .mcgrps = nl80211_mcgrps,
+ .n_mcgrps = ARRAY_SIZE(nl80211_mcgrps),
+ .parallel_ops = true,