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->timeout = expires;
|
||||||
ctx->pending = true;
|
ctx->pending = true;
|
||||||
ctx->programmed = false;
|
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;
|
Context *c;
|
||||||
for (c = _list.first(); c; c = c->next())
|
for (c = _list.first(); c; c = c->next())
|
||||||
|
|
Loading…
Reference in New Issue