ChangeSet 1.879.9.4, 2003/01/06 15:58:15-08:00, petkan@users.sourceforge.net [PATCH] again rtl8150 this diff is agains the latest linux-2.5; set mac address at dev->open() (as per Jeff Garzik :-) diff -Nru a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c --- a/drivers/usb/net/rtl8150.c Wed Jan 8 12:02:27 2003 +++ b/drivers/usb/net/rtl8150.c Wed Jan 8 12:02:27 2003 @@ -21,7 +21,7 @@ #include /* Version Information */ -#define DRIVER_VERSION "v0.5.6 (2002/09/19)" +#define DRIVER_VERSION "v0.5.7 (2002/12/31)" #define DRIVER_AUTHOR "Petko Manolov " #define DRIVER_DESC "rtl8150 based usb-ethernet driver" @@ -640,6 +640,9 @@ return -ENOMEM; down(&dev->sem); + + set_registers(dev, IDR, 6, netdev->dev_addr); + usb_fill_bulk_urb(dev->rx_urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), dev->rx_skb->data, RTL8150_MTU, read_bulk_callback, dev); if ((res = usb_submit_urb(dev->rx_urb, GFP_KERNEL)))