bgmac: validate (and random if needed) MAC addr
authorRafał Miłecki <zajec5@gmail.com>
Thu, 7 Feb 2013 00:27:17 +0000 (00:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 22:42:19 +0000 (17:42 -0500)
commitd166f218ff2bae0f6adae9ce5444a889a1d749e2
tree08a91bb67333aaaab2760d531b9d525f0ef243ec
parente5e67305885eb12849b5475764b0542f03dc2b59
bgmac: validate (and random if needed) MAC addr

This adds check for a valid Ethernet MAC address and in case it is not,
it will generate a valid random one, such that the adapter is still
usable.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c