From 16f3747a147dc3cb7504252cc0d49cd4f79951ae Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 27 Mar 2014 13:51:36 +0100 Subject: [PATCH] android/bluetooth: Send device friendly name before name This fix not setting friendly name correctly after BT power was toggled. This is due to props being send in multiple notifications instead of single one. --- android/bluetooth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 4ed7dabc0..661aa528e 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -2759,6 +2759,7 @@ static void handle_get_adapter_prop_cmd(const void *buf, uint16_t len) static void get_adapter_properties(void) { + /* TODO should be done in single notification */ get_adapter_address(); get_adapter_name(); get_adapter_uuids(); @@ -3292,12 +3293,13 @@ static uint8_t get_device_timestamp(struct device *dev) static void get_remote_device_props(struct device *dev) { + /* TODO should be done in single notification */ + get_device_friendly_name(dev); get_device_name(dev); get_device_uuids(dev); get_device_class(dev); get_device_type(dev); get_device_service_rec(dev); - get_device_friendly_name(dev); get_device_rssi(dev); get_device_version_info(dev); get_device_timestamp(dev); -- 2.47.3