From: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- 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