|
@@ -584,7 +584,8 @@ wlan_cfg80211_nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0) || \
|
|
|
+ (defined CFG80211_CHANGE_NETDEV_REGISTRATION_SEMANTICS))
|
|
|
static inline int wlan_cfg80211_register_netdevice(struct net_device *dev)
|
|
|
{
|
|
|
return cfg80211_register_netdevice(dev);
|
|
@@ -596,7 +597,8 @@ static inline int wlan_cfg80211_register_netdevice(struct net_device *dev)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0) || \
|
|
|
+ (defined CFG80211_CHANGE_NETDEV_REGISTRATION_SEMANTICS))
|
|
|
static inline void wlan_cfg80211_unregister_netdevice(struct net_device *dev)
|
|
|
{
|
|
|
cfg80211_unregister_netdevice(dev);
|