summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch')
-rw-r--r--patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch b/patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch
index 9f25775b..e68fab05 100644
--- a/patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch
+++ b/patches/collateral-evolutions/network/32-remove-ns-type/net_wireless_sysfs.patch
@@ -1,8 +1,8 @@
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
-@@ -133,12 +133,14 @@ static int wiphy_resume(struct device *d
- return ret;
+@@ -135,12 +135,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)
@@ -15,10 +15,10 @@
struct class ieee80211_class = {
.name = "ieee80211",
-@@ -148,8 +150,10 @@ struct class ieee80211_class = {
- .dev_uevent = wiphy_uevent,
+@@ -152,8 +154,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,