diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2020-04-09 12:30:35 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-09 11:27:30 -0700 |
commit | 427033253de3493268d2d60a0b78be69d6f008da (patch) | |
tree | 2f8a202f522d2323f37bdd8bcd0872bd5a9d7aa1 /test/example-advertisement | |
parent | 60423fed392a9f454a696622ce6afab61a610bef (diff) | |
download | bluez-427033253de3493268d2d60a0b78be69d6f008da.tar.gz |
test/example-advertisement: Fix advertising when discoverable
If adapter is discoverable (or LE-only) advertising was failing due
to too big adv data being set. Make sure there is enough space left
for flags if needed.
Diffstat (limited to 'test/example-advertisement')
-rwxr-xr-x | test/example-advertisement | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example-advertisement b/test/example-advertisement index 88a27ab34..f116893b6 100755 --- a/test/example-advertisement +++ b/test/example-advertisement @@ -142,7 +142,7 @@ class TestAdvertisement(Advertisement): Advertisement.__init__(self, bus, index, 'peripheral') self.add_service_uuid('180D') self.add_service_uuid('180F') - self.add_manufacturer_data(0xffff, [0x00, 0x01, 0x02, 0x03, 0x04]) + self.add_manufacturer_data(0xffff, [0x00, 0x01, 0x02, 0x03]) self.add_service_data('9999', [0x00, 0x01, 0x02, 0x03, 0x04]) self.add_local_name('TestAdvertisement') self.include_tx_power = True |