mac80211: update to v6.1.24
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / build / 080-resv_start_op.patch
1 --- a/drivers/net/wireless/mac80211_hwsim.c
2 +++ b/drivers/net/wireless/mac80211_hwsim.c
3 @@ -5363,7 +5363,9 @@ static struct genl_family hwsim_genl_fam
4 .module = THIS_MODULE,
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_DEL_MAC_ADDR + 1,
9 +#endif
10 .mcgrps = hwsim_mcgrps,
11 .n_mcgrps = ARRAY_SIZE(hwsim_mcgrps),
12 };
13 --- a/net/wireless/nl80211.c
14 +++ b/net/wireless/nl80211.c
15 @@ -17233,7 +17233,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,
21 +#endif
22 .mcgrps = nl80211_mcgrps,
23 .n_mcgrps = ARRAY_SIZE(nl80211_mcgrps),
24 .parallel_ops = true,