Wimax USB bulk timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Kernel]     [Linux Wireless]     [Linux Bluetooth]     [Linux Netdev]     [Linux Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux