mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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:
parent
f41a0aea38
commit
37fb4309b3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user