]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
rt2800: replace msleep() with usleep_range() on channel switch
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 19 Dec 2016 10:52:56 +0000 (11:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:34:21 +0000 (13:34 +0200)
commit31369c323ba0dc839d8a4e5a5727adc76814959c
tree00bb945b9cd910ac9d3f89ac26bb614f212cd091
parenteb79a8fe94c8a16687112e0a3abcce8225447f6f
rt2800: replace msleep() with usleep_range() on channel switch

msleep(1) can sleep much more time then requested 1ms, this is not good
on channel switch, which we want to be performed fast (i.e. to make scan
faster). Replace msleep() with usleep_range(), which has much smaller
maximum sleeping time boundary.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c