summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-05-18 09:22:54 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-05-18 09:24:53 -0700
commitde492ac82dc504192a893e570b07fce004195cd3 (patch)
tree37d9dc5b6b1aab5a034487ccb0768f8308eaf2ea /emulator
parent8496a438f2e89a4bd36feca086e576fb7312957c (diff)
downloadbluez-de492ac82dc504192a893e570b07fce004195cd3.tar.gz
emulator: Fix not reporting LE Set Default PHY as supported
LE Set Default PHY (Octet 35 - Bit 5) is in fact supported.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/btdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 63b3d43d6..c5c333f80 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -424,6 +424,7 @@ static void set_bredr20_commands(struct btdev *btdev)
static void set_le_50_commands(struct btdev *btdev)
{
+ btdev->commands[35] |= 0x20; /* LE Set Default PHY */
btdev->commands[36] |= 0x02; /* LE Set Adv Set Random Address */
btdev->commands[36] |= 0x04; /* LE Set Ext Adv Parameters */
btdev->commands[36] |= 0x08; /* LE Set Ext Adv Data */