wifi_drv: use relative timeout in poll function

The vanilla 'schedule_timeout()' Linux function expects a relative
timeout value. The first implementation of the wifi_drv, however, used
an absolute timeout value. This mismatch was overlooked when the
lx_kit, which adheres to the vanilla Linux semantics, was incoporated
in the driver.

Fixes #1990.
This commit is contained in:
Josef Söntgen 2016-06-01 11:48:17 +02:00 committed by Christian Helmuth
parent f41a0aea38
commit 37fb4309b3

View File

@ -306,7 +306,7 @@ class Lx::Socket
sock->sk->sk_wq = &wq[i];
}
long t = jiffies + msecs_to_jiffies(timeout);
long t = msecs_to_jiffies(timeout);
timeout_triggered = !schedule_timeout(t);
task->wait_dequeue(&wait_list);