at76c503a and Kernel 2.6.14

Christoph Biedl <[email protected]> Thu, 10 Nov 2005 01:42:24 +0100
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
Hm,

did I miss an announcement? at76c503a does not build against 2.6.14 due
to minor changes in a) the usb stack (URB_ASYNC_UNLINK is now obsolete
as far as I can see) and b) the wireless extensions (spy_offset is
gone). The patch attached "works-for-me" by a) defining that constant 
to 0 and b) stealing the changes of wl3501_cs.c.

However I'd be glad if anybody with more insight into the driver could
take a look into this.

    Christoph
atmel.patch (text/plain, 710 B)
--- drivers/net/wireless/at76c503/at76c503.c	2005-08-29 21:43:05.000000000 +0200
+++ drivers/net/wireless/at76c503/at76c503.c	2005-11-10 00:46:47.000000000 +0100
@@ -205,7 +205,7 @@
 #endif
 
 #ifndef USB_ASYNC_UNLINK
-#define USB_ASYNC_UNLINK	URB_ASYNC_UNLINK
+#define USB_ASYNC_UNLINK	0
 #endif
 
 #ifndef FILL_BULK_URB
@@ -6699,10 +6699,7 @@
 	.standard	= (iw_handler *) at76c503_handlers,
 	.private	= (iw_handler *) at76c503_priv_handlers,
 	.private_args	= (struct iw_priv_args *) at76c503_priv_args,
-#if WIRELESS_EXT > 15
-	.spy_offset	= offsetof(struct at76c503, spy_data),
-#endif // #if WIRELESS_EXT > 15
-
+	.get_wireless_stats = at76c503_get_wireless_stats,
 };
 
 #endif // #if WIRELESS_EXT > 12