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)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 7 Sep 2015 19:43:54 +0000 (12:43 -0700)
commit72abbbeaa9220cf30c1d9f21aadd52ba3dd6ea4e
treefa7964f219da1cb220c66e5a99a9f022f4f3a6ff
parent65d1c84f5b4c2d452b4927ab7f8670a4951db3ce
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