BluetoothAdapter::RegisterAdvertisement always fails with ERROR_ADVERTISEMENT_ALREADY_EXISTS |
||||||
Issue descriptionChrome Version: (copy from chrome://version) Chrome: 60.0.3108.0 Platform: ChromeOS 9576.0.0 What steps will reproduce the problem? (1) Call BluetoothAdapter::RegisterAdvertisement with reasonable arguments. See usage at [1] (this has worked for ~3 months but recently broke). What is the expected result? The call to succeed. What happens instead? Fails with error ERROR_ADVERTISEMENT_ALREADY_EXISTS. This is bizarre because no other logic (to my knowledge) is using this API. Using 'btmgmt advinfo' provides: Supported flags: connectable general-discoverable limited-discoverable managed-flags tx-power scan-rsp-appearance scan-rsp-local-name Max advertising data len: 31 Max scan response data len: 31 Max instances: 5 Instances list with 0 items Might there have been an upstreaming issue, like there was with crbug.com/720063 ? 1) https://cs.chromium.org/chromium/src/chromeos/components/tether/ble_advertiser.cc?l=81
,
May 23 2017
,
May 23 2017
Hi Joseph, Are you sure that manufacturer data and service data signature enforcement are what would cause this issue? Wouldn't that return a INVALID_ADVERTISEMENT_ERROR_CODE as opposed to a ERROR_ADVERTISEMENT_ALREADY_EXISTS error?
,
May 23 2017
It is possible that the error gets handled incorrectly.
,
May 24 2017
Yes, I confirmed this. I am writing a CL to fix this.
,
May 26 2017
Hi Sonny, Do you have a rough estimate for when you expect to have a fix for this issue? My stakeholders are curious when we'll be able to dogfood our feature. Thanks!
,
May 26 2017
Hi Ryan, the CL has just been out for review: https://codereview.chromium.org/2907913002/
,
May 26 2017
Thanks Sonny! :)
,
May 26 2017
Issue 720063 has been merged into this issue.
,
May 26 2017
Wanted to add that patching in https://codereview.chromium.org/2907913002/ completely fixes our issue.
,
Jun 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/02bf4db5faf5a62c0b373e1ea66109bea4ef4b6a commit 02bf4db5faf5a62c0b373e1ea66109bea4ef4b6a Author: sonnysasaka <sonnysasaka@chromium.org> Date: Thu Jun 01 20:59:23 2017 Fix ManufacturerData and ServiceData DBus data type to match with bluez. Bluez recent changes corresponding to this CL: https://chromium.googlesource.com/chromiumos/third_party/bluez/+/758dae03725ed7a1138d848aad940a73bbf5d659 https://chromium.googlesource.com/chromiumos/third_party/bluez/+/d356a6242be9a1aba2cca871b79618e3b28a5ec2 BUG= 725349 TEST=Called chrome.bluetoothLowEnergy.registerAdvertisement with advertisement data containing both manufacturerData and serviceData, the operation succeeded. Review-Url: https://codereview.chromium.org/2907913002 Cr-Commit-Position: refs/heads/master@{#476433} [modify] https://crrev.com/02bf4db5faf5a62c0b373e1ea66109bea4ef4b6a/device/bluetooth/dbus/bluetooth_le_advertisement_service_provider.cc
,
Jun 1 2017
,
Jan 22 2018
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by josephsih@chromium.org
, May 23 2017Owner: sonnysasaka@chromium.org