OSDN Git Service

Fix issue where bluesleep idle timer is not started
authorwang ping <brucewong.wang@huawei.com>
Sat, 5 Sep 2015 17:48:09 +0000 (10:48 -0700)
committerScott James Remnant <keybuk@google.com>
Mon, 19 Oct 2015 17:35:05 +0000 (10:35 -0700)
commitaafe557b56f2fb97a9d96a86bef8b4d6886cc6b3
tree3665de150bc4944dbc440f03aebcdd7e87396d8c
parent530f7727badf163705eb9638533f5af5d89fcacf
Fix issue where bluesleep idle timer is not started

Sometimes allow_device_sleep() is called before wake_assert, this result in transmit_done
does not start idle timer. This is because the "wake_state" does not match while
allow_device_sleep() is called before wake_assert() is called. So start idle timer
anyway when transmit_done is called.

Bug: 23754156
Change-Id: I5437aea0abc4b7f5cf847701e2d0a889c6823fcb
hci/src/low_power_manager.c