ChangeSet 1.893.2.21, 2003/01/06 10:49:12-08:00, petkan@rakia.hell.org [PATCH] USB pegasus update set mac address at dev->open() time as per the standard; missing flag added to Linksys USB10T; diff -Nru a/drivers/usb/pegasus.c b/drivers/usb/pegasus.c --- a/drivers/usb/pegasus.c Mon Jan 6 11:30:00 2003 +++ b/drivers/usb/pegasus.c Mon Jan 6 11:30:00 2003 @@ -42,7 +42,7 @@ /* * Version Information */ -#define DRIVER_VERSION "v0.4.28 (2002/12/13)" +#define DRIVER_VERSION "v0.4.29 (2002/12/31)" #define DRIVER_AUTHOR "Petko Manolov " #define DRIVER_DESC "Pegasus/Pegasus II USB Ethernet driver" @@ -723,6 +723,9 @@ int res; down(&pegasus->sem); + + set_registers(pegasus, EthID, 6, net->dev_addr); + FILL_BULK_URB(pegasus->rx_urb, pegasus->usb, usb_rcvbulkpipe(pegasus->usb, 1), pegasus->rx_buff, PEGASUS_MAX_MTU, diff -Nru a/drivers/usb/pegasus.h b/drivers/usb/pegasus.h --- a/drivers/usb/pegasus.h Mon Jan 6 11:30:00 2003 +++ b/drivers/usb/pegasus.h Mon Jan 6 11:30:00 2003 @@ -238,8 +238,8 @@ LINKSYS_GPIO_RESET ) PEGASUS_DEV( "Linksys USB100TX", VENDOR_LINKSYS, 0x2204, LINKSYS_GPIO_RESET | HAS_HOME_PNA ) -PEGASUS_DEV( "Linksys USB Ethernet Adapter", VENDOR_LINKSYS, 0x2206, - LINKSYS_GPIO_RESET ) +PEGASUS_DEV( "Linksys USB10T Ethernet Adapter", VENDOR_LINKSYS, 0x2206, + LINKSYS_GPIO_RESET | PEGASUS_II) PEGASUS_DEV( "Linksys USB USB10TX", VENDOR_LINKSYS, 0x400b, LINKSYS_GPIO_RESET | PEGASUS_II ) PEGASUS_DEV( "Linksys USB10TX", VENDOR_LINKSYS, 0x200c,