backports: remove addr_assign_type from usbnet
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 23 Oct 2013 19:09:56 +0000 (21:09 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 23 Oct 2013 21:17:25 +0000 (23:17 +0200)
addr_assign_type was added with kernel 2.6.36. This is just used to
inform userspace, so removing it is no problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/collateral-evolutions/network/61-netdev-addr_assign_type/usbnet.patch [new file with mode: 0644]

diff --git a/patches/collateral-evolutions/network/61-netdev-addr_assign_type/usbnet.patch b/patches/collateral-evolutions/network/61-netdev-addr_assign_type/usbnet.patch
new file mode 100644 (file)
index 0000000..a82c478
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/drivers/net/usb/usbnet.c
++++ b/drivers/net/usb/usbnet.c
+@@ -1669,9 +1669,11 @@ usbnet_probe (struct usb_interface *udev
+               dev->rx_urb_size = dev->hard_mtu;
+       dev->maxpacket = usb_maxpacket (dev->udev, dev->out, 1);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
+       /* let userspace know we have a random address */
+       if (ether_addr_equal(net->dev_addr, node_id))
+               net->addr_assign_type = NET_ADDR_RANDOM;
++#endif
+       if ((dev->driver_info->flags & FLAG_WLAN) != 0)
+               SET_NETDEV_DEVTYPE(net, &wlan_type);