aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-linux-grsec/dahdi-2.6.31.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/dahdi-linux-grsec/dahdi-2.6.31.patch')
-rw-r--r--main/dahdi-linux-grsec/dahdi-2.6.31.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/dahdi-linux-grsec/dahdi-2.6.31.patch b/main/dahdi-linux-grsec/dahdi-2.6.31.patch
new file mode 100644
index 0000000000..35fe4383e2
--- /dev/null
+++ b/main/dahdi-linux-grsec/dahdi-2.6.31.patch
@@ -0,0 +1,44 @@
+Index: drivers/dahdi/wctc4xxp/base.c
+===================================================================
+--- a/drivers/dahdi/wctc4xxp/base.c (revision 6716)
++++ b/drivers/dahdi/wctc4xxp/base.c (revision 6717)
+@@ -742,6 +742,17 @@
+ return 0;
+ }
+
++#ifdef HAVE_NET_DEVICE_OPS
++const struct net_device_ops wctc4xxp_netdev_ops = {
++ .ndo_set_multicast_list = &wctc4xxp_net_set_multi,
++ .ndo_open = &wctc4xxp_net_up,
++ .ndo_stop = &wctc4xxp_net_down,
++ .ndo_start_xmit = &wctc4xxp_net_hard_start_xmit,
++ .ndo_get_stats = &wctc4xxp_net_get_stats,
++ .ndo_do_ioctl = &wctc4xxp_net_ioctl,
++};
++#endif
++
+ /**
+ * wctc4xxp_net_register - Register a new network interface.
+ * @wc: transcoder card to register the interface for.
+@@ -773,14 +784,21 @@
+ netdev->priv = wc;
+ # endif
+ memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
++
++# ifdef HAVE_NET_DEVICE_OPS
++ netdev->netdev_ops = &wctc4xxp_netdev_ops;
++# else
+ netdev->set_multicast_list = &wctc4xxp_net_set_multi;
+ netdev->open = &wctc4xxp_net_up;
+ netdev->stop = &wctc4xxp_net_down;
+ netdev->hard_start_xmit = &wctc4xxp_net_hard_start_xmit;
+ netdev->get_stats = &wctc4xxp_net_get_stats;
+ netdev->do_ioctl = &wctc4xxp_net_ioctl;
++# endif
++
+ netdev->promiscuity = 0;
+ netdev->flags |= IFF_NOARP;
++
+ # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)
+ netdev->poll = &wctc4xxp_poll;
+ netdev->weight = 64;