Re: Siemens Gigaset USB Adapter 11

Mike Pinna <[email protected]> Fri, 4 Feb 2005 12:50:39 +0000
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
On Fri, Feb 04, 2005 at 01:28:38PM +0100, Sven Klomp wrote:
> I solved the problem. I edited the file at76c505a-rfmd2958.c and  
> changed the vID
> and pID in these lines:
> #define VENDOR_ID_ATMEL               0x1690
> #define PRODUCT_ID_ATMEL_505A         0x0701
> 
> OK, it is a dirty hack, I only replaced the vID and pID. But I don't
> know, how to add an new device correctly. Perhaps somebody adds the
> new device in the source, because it seems to work very nice.

How about the following, as a slightly cleaner solution:

--- at76c505a-rfmd2958.c	2005-02-04 14:49:44.000000000 +0200
+++ at76c505a-rfmd2958.c.new	2005-02-04 14:48:31.000000000 +0200
@@ -71,10 +71,13 @@
 #define VENDOR_ID_ATMEL               0x03eb
 #define PRODUCT_ID_ATMEL_505A         0x7614 /* Generic AT76C505A device */
 #define PRODUCT_ID_ATMEL_505AS        0x7617 /* Generic AT76C505AS device */
+#define VENDOR_ID_GIGASET             0x1690
+#define PRODUCT_ID_GIGASET_11         0x0701
 
 static struct usb_device_id dev_table[] = {
 	{ USB_DEVICE(VENDOR_ID_ATMEL,    PRODUCT_ID_ATMEL_505A       ) },
 	{ USB_DEVICE(VENDOR_ID_ATMEL,    PRODUCT_ID_ATMEL_505AS      ) },
+	{ USB_DEVICE(VENDOR_ID_GIGASET,  PRODUCT_ID_GIGASET_11       ) },
 	{ }
 };
 

Mike