|
@@ -453,6 +453,15 @@ static int ncm_open ( struct net_device *netdev ) {
|
453
|
453
|
goto err_set_ntb_input_size;
|
454
|
454
|
}
|
455
|
455
|
|
|
456
|
+ /* Set MAC address */
|
|
457
|
+ if ( ( rc = usb_control ( usb, NCM_SET_NET_ADDRESS, 0,
|
|
458
|
+ ncm->usbnet.comms, netdev->ll_addr,
|
|
459
|
+ netdev->ll_protocol->ll_addr_len ) ) != 0 ) {
|
|
460
|
+ DBGC ( ncm, "NCM %p could not set MAC address: %s\n",
|
|
461
|
+ ncm, strerror ( rc ) );
|
|
462
|
+ /* Ignore error and continue */
|
|
463
|
+ }
|
|
464
|
+
|
456
|
465
|
/* Open USB network device */
|
457
|
466
|
if ( ( rc = usbnet_open ( &ncm->usbnet ) ) != 0 ) {
|
458
|
467
|
DBGC ( ncm, "NCM %p could not open: %s\n",
|