diff mbox series

[71/74] patches: ifdef resv_start_op in hwsim

Message ID 20240524190907.c75a60d4645e.I679603c448239607e8d576065c779b7fcae969da@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:08 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 patches/0085-hwsim-resv-start-op.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/0085-hwsim-resv-start-op.patch
diff mbox series

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),
+ };