summaryrefslogtreecommitdiff
path: root/tools/ibeacon.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2017-07-11 11:29:33 -0700
committerMarcel Holtmann <marcel@holtmann.org>2017-07-11 11:29:33 -0700
commit6a1cfef9e59652d481ace7071fab956d0494c666 (patch)
treed2d1a14f383be49279e7b5c84d0e69683bbaf560 /tools/ibeacon.c
parent376c3433c0ae67b9124fd91db2396de937b30e51 (diff)
downloadbluez-6a1cfef9e59652d481ace7071fab956d0494c666.tar.gz
tools: Fix uninitialized memory array
Diffstat (limited to 'tools/ibeacon.c')
-rw-r--r--tools/ibeacon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ibeacon.c b/tools/ibeacon.c
index 6208e8a9b..4b358049c 100644
--- a/tools/ibeacon.c
+++ b/tools/ibeacon.c
@@ -149,7 +149,7 @@ static void adv_tx_power_callback(const void *data, uint8_t size,
cmd.data[0] = 0x02; /* Field length */
cmd.data[1] = 0x01; /* Flags */
- cmd.data[2] |= 0x04; /* BR/EDR Not Supported */
+ cmd.data[2] = 0x04; /* BR/EDR Not Supported */
cmd.data[3] = 0x1a; /* Field length */
cmd.data[4] = 0xff; /* Vendor field */