blob: cbf0b35551181a6a5e3f6abb00effcb89d36d5e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -645,7 +645,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);
}
|