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:
Josef Söntgen 2015-03-09 14:32:44 +01:00 committed by Christian Helmuth
parent 88fc1eee61
commit 7e69013e0c
1 changed files with 6 additions and 0 deletions

View File

@ -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())