Re: [PATCH] ath9k_htc: don't use HZ for usb msg timeouts
From: Oleksij Rempel <hidden>
Date: 2016-11-29 15:13:24
Attachments
- signature.asc [application/pgp-signature] 213 bytes
From: Oleksij Rempel <hidden>
Date: 2016-11-29 15:13:24
Am 29.11.2016 um 10:45 schrieb Anthony Romano:
Hi Oleksij, I put 4 ar9271's on a 4 port hub into monitor mode for you and all interfaces are simultaneously collecting packets. My cheap USB power meter reads 4.37v@650mA between the hub and the host, so it's pushing the limit but appears stable.
Great work, thank you!
On Mon, Nov 28, 2016 at 7:34 AM, Oleksij Rempel [off-list ref] wrote:quoted
Hi Anthony, Am 28.11.2016 um 05:27 schrieb Anthony Romano:quoted
The usb_*_msg() functions expect a timeout in msecs but are given HZ, which is ticks per second. If HZ=100, firmware download often times out when there is modest USB utilization and the device fails to initialize.quoted
Replaces HZ in usb_*_msg timeouts with 1000 msec since HZ is one second for timeouts in jiffies.wow.. This fix allow you use 4 adapter at same time?quoted
Signed-off-by: Anthony Romano <redacted>
Acked-by: Oleksij Rempel <redacted> -- Regards, Oleksij