2023-08-30 10:31:44 +00:00
|
|
|
--- a/drivers/net/wireless/virtual/mac80211_hwsim.c
|
|
|
|
+++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
|
|
|
|
@@ -6179,7 +6179,9 @@ static struct genl_family hwsim_genl_fam
|
2022-12-10 11:36:44 +00:00
|
|
|
.module = THIS_MODULE,
|
|
|
|
.small_ops = hwsim_ops,
|
|
|
|
.n_small_ops = ARRAY_SIZE(hwsim_ops),
|
|
|
|
+#if LINUX_VERSION_IS_GEQ(6,1,0)
|
2023-08-30 10:31:44 +00:00
|
|
|
.resv_start_op = HWSIM_CMD_REPORT_PMSR + 1, // match with __HWSIM_CMD_MAX
|
2022-12-10 11:36:44 +00:00
|
|
|
+#endif
|
|
|
|
.mcgrps = hwsim_mcgrps,
|
|
|
|
.n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
|
|
|
|
};
|
|
|
|
--- a/net/wireless/nl80211.c
|
|
|
|
+++ b/net/wireless/nl80211.c
|
2023-08-30 10:31:44 +00:00
|
|
|
@@ -17509,7 +17509,9 @@ static struct genl_family nl80211_fam __
|
2022-12-10 11:36:44 +00:00
|
|
|
.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,
|