The alx driver uses the addr_assign_type variable from
the netdev data structure which was added as of 2.6.35:
mcgrof@tux ~/linux-next (git::master)$ git describe --contains
c1f79426
v2.6.36-rc1~571^2~104
Although compat.git backported dev_hw_addr_random() the patch
in compat.git cannot address usage of addr_assign_type and as
such requires an ifdef around it.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
};
+@@ -341,8 +341,10 @@ static int alx_set_mac_address(struct ne
+ if (netif_running(netdev))
+ return -EBUSY;
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
+ if (netdev->addr_assign_type & NET_ADDR_RANDOM)
+ netdev->addr_assign_type ^= NET_ADDR_RANDOM;
++#endif
+
+ memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len);
+ memcpy(hw->mac_addr, addr->sa_data, netdev->addr_len);