1 --- a/drivers/net/wireless/virtual/mac80211_hwsim.c
2 +++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
3 @@ -6179,7 +6179,9 @@ static struct genl_family hwsim_genl_fam
5 .small_ops = hwsim_ops,
6 .n_small_ops = ARRAY_SIZE(hwsim_ops),
7 +#if LINUX_VERSION_IS_GEQ(6,1,0)
8 .resv_start_op = HWSIM_CMD_REPORT_PMSR + 1, // match with __HWSIM_CMD_MAX
10 .mcgrps = hwsim_mcgrps,
11 .n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
13 --- a/net/wireless/nl80211.c
14 +++ b/net/wireless/nl80211.c
15 @@ -17509,7 +17509,9 @@ static struct genl_family nl80211_fam __
16 .n_ops = ARRAY_SIZE(nl80211_ops),
17 .small_ops = nl80211_small_ops,
18 .n_small_ops = ARRAY_SIZE(nl80211_small_ops),
19 +#if LINUX_VERSION_IS_GEQ(6,1,0)
20 .resv_start_op = NL80211_CMD_REMOVE_LINK_STA + 1,
22 .mcgrps = nl80211_mcgrps,
23 .n_mcgrps = ARRAY_SIZE(nl80211_mcgrps),