blob: 7db2ddec54ee6faa47e5919333dc5bd930a497fc [file] [log] [blame]
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
@@ -138,12 +138,14 @@ static int wiphy_resume(struct device *d
}
#endif
+#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",
@@ -155,8 +157,10 @@ struct class ieee80211_class = {
.suspend = wiphy_suspend,
.resume = wiphy_resume,
#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
.ns_type = &net_ns_type_operations,
.namespace = wiphy_namespace,
+#endif
};
int wiphy_sysfs_init(void)