| --- a/net/wireless/sysfs.c |
| +++ b/net/wireless/sysfs.c |
| @@ -121,12 +121,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", |
| @@ -138,8 +140,10 @@ struct class ieee80211_class = { |
| #endif |
| .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) |