developer | 43a264f | 2024-03-26 14:09:54 +0800 | [diff] [blame] | 1 | --- a/net/wireless/nl80211.c |
| 2 | +++ b/net/wireless/nl80211.c |
| 3 | @@ -16442,8 +16442,14 @@ static u32 nl80211_internal_flags[] = { |
| 4 | #undef SELECTOR |
| 5 | }; |
| 6 | |
| 7 | +#if LINUX_VERSION_IS_LESS(6,2,0) |
| 8 | static int nl80211_pre_doit(const struct genl_ops *ops, struct sk_buff *skb, |
| 9 | struct genl_info *info) |
| 10 | +#else |
| 11 | +static int nl80211_pre_doit(const struct genl_split_ops *ops, |
| 12 | + struct sk_buff *skb, |
| 13 | + struct genl_info *info) |
| 14 | +#endif |
| 15 | { |
| 16 | struct cfg80211_registered_device *rdev = NULL; |
| 17 | struct wireless_dev *wdev = NULL; |
| 18 | @@ -16543,8 +16549,14 @@ out_unlock: |
| 19 | return err; |
| 20 | } |
| 21 | |
| 22 | +#if LINUX_VERSION_IS_LESS(6,2,0) |
| 23 | static void nl80211_post_doit(const struct genl_ops *ops, struct sk_buff *skb, |
| 24 | struct genl_info *info) |
| 25 | +#else |
| 26 | +static void nl80211_post_doit(const struct genl_split_ops *ops, |
| 27 | + struct sk_buff *skb, |
| 28 | + struct genl_info *info) |
| 29 | +#endif |
| 30 | { |
| 31 | u32 internal_flags = nl80211_internal_flags[ops->internal_flags]; |
| 32 | |