]> git.baikalelectronics.ru Git - 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)
commitdc92417052310a9c1a688fed20a8870c7d88cd4a
tree00bb945b9cd910ac9d3f89ac26bb614f212cd091
parentb33efa30a5036a18cff75cf37255044f03a1898c
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