mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-23 04:25:21 +00:00
wifi_drv: store timeout also in timer_list.expires
The wireless stack calls timer_before(foo, timer.expires) and up to now it was always 0. Let's be save and set this field when scheduling the timer, although it worked fine so far. Issue #1439.
This commit is contained in:
parent
88fc1eee61
commit
7e69013e0c
@ -120,6 +120,12 @@ class Lx::Timer
|
||||
ctx->timeout = expires;
|
||||
ctx->pending = true;
|
||||
ctx->programmed = false;
|
||||
/*
|
||||
* Also write the timeout value to the expires field in
|
||||
* struct timer_list because the wireless stack checks
|
||||
* it directly.
|
||||
*/
|
||||
ctx->timer->expires = expires;
|
||||
|
||||
Context *c;
|
||||
for (c = _list.first(); c; c = c->next())
|
||||
|
Loading…
x
Reference in New Issue
Block a user