OSDN Git Service

android/daemon: Update CoD and RSSI only when they exist
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 1 Nov 2013 11:46:38 +0000 (13:46 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 1 Nov 2013 12:07:06 +0000 (14:07 +0200)
commita3b0003409a145e371adfb8b40bcb042a63a6b1f
treee5a45943287d94f7d53c66c9f41d74e14c0b15fe
parent22eb024fe90e01c86863b4bce71ac06fa9cbc666
android/daemon: Update CoD and RSSI only when they exist

This avoid sending zeroed Class of Device and making it unidentified.
...
 prop[0]: type=BT_PROPERTY_CLASS_OF_DEVICE len=4 val=000000
 prop[1]: type=BT_PROPERTY_REMOTE_RSSI len=1 val=-75
 prop[2]: type=BT_PROPERTY_BDNAME len=249 val=Microsoft Bluetooth Number Pad
...
android/adapter.c