diff --git a/emulator/le.c b/emulator/le.c
index 26b87be..849b536 100644
--- a/emulator/le.c
+++ b/emulator/le.c
//hci->le_features[0] |= 0x08; /* Slave-initiated Features Exchange */
hci->le_features[0] |= 0x10; /* LE Ping */
hci->le_features[0] |= 0x20; /* LE Data Packet Length Extension */
- //hci->le_features[0] |= 0x40; /* LL Privacy */
+ hci->le_features[0] |= 0x40; /* LL Privacy */
hci->le_features[0] |= 0x80; /* Extended Scanner Filter Policies */
memset(hci->le_random_addr, 0, sizeof(hci->le_random_addr));
return;
}
- /* Valid range for own address type is 0x00 to 0x01 */
- if (cmd->own_addr_type > 0x01) {
+ /* Valid range for own address type is 0x00 to 0x03 */
+ if (cmd->own_addr_type > 0x03) {
cmd_status(hci, BT_HCI_ERR_INVALID_PARAMETERS,
BT_HCI_CMD_LE_SET_ADV_PARAMETERS);
return;
return;
}
- /* Valid range for own address type is 0x00 to 0x01 */
- if (cmd->own_addr_type > 0x01) {
+ /* Valid range for own address type is 0x00 to 0x03 */
+ if (cmd->own_addr_type > 0x03) {
cmd_status(hci, BT_HCI_ERR_INVALID_PARAMETERS,
BT_HCI_CMD_LE_SET_SCAN_PARAMETERS);
return;
return;
}
- /* Valid range for own address type is 0x00 to 0x01 */
- if (cmd->own_addr_type > 0x01) {
+ /* Valid range for own address type is 0x00 to 0x03 */
+ if (cmd->own_addr_type > 0x03) {
cmd_status(hci, BT_HCI_ERR_INVALID_PARAMETERS,
BT_HCI_CMD_LE_CREATE_CONN);
return;