Commit 372477df authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[NET]: Use random address in usbnet driver.

parent e710d91d
......@@ -3414,9 +3414,7 @@ static int __init usbnet_init (void)
< sizeof (struct cdc_state)));
#endif
get_random_bytes (node_id, sizeof node_id);
node_id [0] &= 0xfe; // clear multicast bit
node_id [0] |= 0x02; // set local assignment bit (IEEE802)
random_ether_addr(node_id);
return usb_register(&usbnet_driver);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment