OSDN Git Service

Use GATT_WRITE_NO_RSP for "state change" updates
authorweichinweng <weichinweng@google.com>
Wed, 17 Apr 2019 07:52:07 +0000 (15:52 +0800)
committerweichinweng <weichinweng@google.com>
Fri, 19 Apr 2019 00:55:21 +0000 (08:55 +0800)
commitfb08c2ee26b664aff44dcac9fec5d47f7526e183
treec473cc47c05acd0ae48ef6172251085b88716913
parenta57d08524b2ca990eba85754620d6243817d24b3
Use GATT_WRITE_NO_RSP for "state change" updates

For Hearing Aid, replaces the GATT_WRITE with GATT_WRITE_NO_RSP for the
"state change" updates that are send to the devices. Using no response
write is faster and these informational updates does not need a
confirmation from the devices.

Bug: 130332748
Test: 1.run unit test
2.Forget/Repair HearingAid device from Bluetooth UI.
3.Disconnect/Reconnect HearingAid device from Bluetooth UI.
4.HearingAid device power off/on, check them can reconnect.
5.Multiple click connect/disconnect from Bluetooth UI within 1 sec,
check them can reconnect.
6.One side HearingAid device power off/on when playing music, check it
can reconnect and music is work fine.

Change-Id: I55e9b4b0b8c76412e5810e1cec5d96819527d099
Merged-In: I55e9b4b0b8c76412e5810e1cec5d96819527d099
bta/hearing_aid/hearing_aid.cc