[PATCH 71/74] patches: ifdef resv_start_op in hwsim

Johannes Berg <[email protected]> Fri, 24 May 2024 19:08:23 +0200
Newsgroups org.kernel.vger.backports
Message-ID <20240524190907.c75a60d4645e.I679603c448239607e8d576065c779b7fcae969da@changeid>
From: Johannes Berg <[email protected]>

Signed-off-by: Johannes Berg <[email protected]>
---
 patches/0085-hwsim-resv-start-op.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/0085-hwsim-resv-start-op.patch

diff --git a/patches/0085-hwsim-resv-start-op.patch b/patches/0085-hwsim-resv-start-op.patch
new file mode 100644
index 000000000000..771e3f057b8d
--- /dev/null
+++ b/patches/0085-hwsim-resv-start-op.patch
@@ -0,0 +1,12 @@
+--- a/drivers/net/wireless/virtual/mac80211_hwsim.c
++++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
+@@ -6177,7 +6177,9 @@ static struct genl_family hwsim_genl_family __ro_after_init = {
+ 	.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_REPORT_PMSR + 1, // match with __HWSIM_CMD_MAX
++#endif
+ 	.mcgrps = hwsim_mcgrps,
+ 	.n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
+ };
-- 
2.45.1