blob: 9f25775b49e67c7efc0965a636c1dcbff7f4960c [file] [log] [blame]
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
@@ -133,12 +133,14 @@ static int wiphy_resume(struct device *d
return ret;
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
static const void *wiphy_namespace(struct device *d)
{
struct wiphy *wiphy = container_of(d, struct wiphy, dev);
return wiphy_net(wiphy);
}
+#endif
struct class ieee80211_class = {
.name = "ieee80211",
@@ -148,8 +150,10 @@ struct class ieee80211_class = {
.dev_uevent = wiphy_uevent,
.suspend = wiphy_suspend,
.resume = wiphy_resume,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
.ns_type = &net_ns_type_operations,
.namespace = wiphy_namespace,
+#endif
};
int wiphy_sysfs_init(void)