Wimax USB bulk timeout

Sarah Sharp sarah.a.sharp at intel.com
Mon Oct 5 12:13:28 PDT 2009


Hi Inaky,

The bulk transfer timeout that the wimax-usb code uses should be
specified in milliseconds.  Instead, it's specified as HZ, which could
change from system to system:

drivers/net/wimax/i2400m/usb-fw.c:      result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, HZ);

drivers/net/wimax/i2400m/usb-rx.c:      result = usb_bulk_msg(
drivers/net/wimax/i2400m/usb-rx.c-              i2400mu->usb_dev, usb_pipe, rx_skb->data + rx_skb->len,
drivers/net/wimax/i2400m/usb-rx.c-              rx_size, &read_size, HZ);

drivers/net/wimax/i2400m/usb-tx.c:      result = usb_bulk_msg(i2400mu->usb_dev, usb_pipe,
drivers/net/wimax/i2400m/usb-tx.c-                            tx_msg, tx_msg_size, &sent_size, HZ);

drivers/net/wimax/i2400m/usb.c: ret = usb_bulk_msg(i2400mu->usb_dev, pipe, buffer, barker_size,
drivers/net/wimax/i2400m/usb.c-                    &actual_len, HZ);

I'm not sure how long you want the timeout to be or I would send you a patch.

Sarah Sharp


More information about the wimax mailing list