- fix shell syntax
[packages/atmelwlandriver.git] / atmelwlandriver-usb-api.patch
CommitLineData
868bab3d
PS
1--- atmelwlandriver/src/usb/reset_device.c.orig 2004-11-10 10:40:50.000000000 +0100
2+++ atmelwlandriver/src/usb/reset_device.c 2005-06-07 21:20:27.000000000 +0200
3@@ -1257,11 +1257,11 @@
4 struct usb_endpoint_descriptor *d = &ifp->endpoint[i].desc;
5 int b = d->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK;
6 if (usb_endpoint_out(d->bEndpointAddress)) {
7- if (d->wMaxPacketSize > dev->epmaxpacketout[b])
8- dev->epmaxpacketout[b] = d->wMaxPacketSize;
9+ if (d->wMaxPacketSize > dev->ep_out[b]->desc.wMaxPacketSize)
10+ dev->ep_out[b]->desc.wMaxPacketSize = d->wMaxPacketSize;
11 } else {
12- if (d->wMaxPacketSize > dev->epmaxpacketin[b])
13- dev->epmaxpacketin[b] = d->wMaxPacketSize;
14+ if (d->wMaxPacketSize > dev->ep_in[b]->desc.wMaxPacketSize)
15+ dev->ep_in[b]->desc.wMaxPacketSize = d->wMaxPacketSize;
16 }
17 }
18
4efa67b0 19diff -Nur atmelwlandriver-orig/src/usb/vnetusba.c atmelwlandriver/src/usb/vnetusba.c
20--- atmelwlandriver-orig/src/usb/vnetusba.c 2006-04-11 12:38:57.516432000 +0200
21+++ atmelwlandriver/src/usb/vnetusba.c 2006-04-17 14:53:11.006174500 +0200
22@@ -2254,6 +2254,10 @@
23 del_timer_sync(Adapter->CtrlTimer);
24 }
25
26+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13))
27+#define URB_ASYNC_UNLINK 0
28+#endif
29+
30 #if (LINUX_VERSION_CODE < 0x020500)
31 Adapter->rx_urb->transfer_flags &= ~USB_ASYNC_UNLINK;
32 Adapter->tx_urb->transfer_flags &= ~USB_ASYNC_UNLINK;
This page took 0.031867 seconds and 4 git commands to generate.