SLES 11 SP3 does not have dev_hw_addr_random() so this patch includes
the stuff which would be done in dev_hw_addr_random() in
eth_hw_addr_random().
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
#define eth_hw_addr_random LINUX_BACKPORT(eth_hw_addr_random)
static inline void eth_hw_addr_random(struct net_device *dev)
{
- dev_hw_addr_random(dev, dev->dev_addr);
+ dev->addr_assign_type |= NET_ADDR_RANDOM;
+ random_ether_addr(dev->dev_addr);
}
#endif