From 51f54bc87c1a570d55049572c6f35f6e3f099a35 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 1 Jan 2014 21:36:31 +0100 Subject: [PATCH] backports: remove usage of addr_assign_type in 6lowpan.c The bluetooth 6lowpan code now accesses the addr_assign_type member of struct netdev, which is not available in older kernel versions. Signed-off-by: Hauke Mehrtens --- .../net_bluetooth_6lowpan.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/collateral-evolutions/network/61-netdev-addr_assign_type/net_bluetooth_6lowpan.patch diff --git a/patches/collateral-evolutions/network/61-netdev-addr_assign_type/net_bluetooth_6lowpan.patch b/patches/collateral-evolutions/network/61-netdev-addr_assign_type/net_bluetooth_6lowpan.patch new file mode 100644 index 000000000000..ad2618fbecc7 --- /dev/null +++ b/patches/collateral-evolutions/network/61-netdev-addr_assign_type/net_bluetooth_6lowpan.patch @@ -0,0 +1,12 @@ +--- a/net/bluetooth/6lowpan.c ++++ b/net/bluetooth/6lowpan.c +@@ -632,7 +632,9 @@ static void set_addr(u8 *eui, u8 *addr, + static void set_dev_addr(struct net_device *netdev, bdaddr_t *addr, + u8 addr_type) + { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) + netdev->addr_assign_type = NET_ADDR_PERM; ++#endif + set_addr(netdev->dev_addr, addr->b, addr_type); + netdev->dev_addr[0] ^= 2; + } -- 2.30.2