diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-12-14 14:05:39 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-14 14:05:39 +0100 |
commit | 87b0dde50370c6cadf019a98f28858c0fa52b8c5 (patch) | |
tree | 4276976b9ec39b166ebb08a6b7c6749ef856647c /emulator/le.c | |
parent | f58086c23f18af5657fd4af1753efcc66adc9d90 (diff) | |
download | bluez-87b0dde50370c6cadf019a98f28858c0fa52b8c5.tar.gz |
emulator: Change supported LE states to include scanning and advertising
Diffstat (limited to 'emulator/le.c')
-rw-r--r-- | emulator/le.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/emulator/le.c b/emulator/le.c index 6a06207bc..7fbeee7ef 100644 --- a/emulator/le.c +++ b/emulator/le.c @@ -249,11 +249,13 @@ static void reset_defaults(struct bt_le *hci) hci->le_states[0] |= 0x01; /* Non-connectable Advertising */ hci->le_states[0] |= 0x02; /* Scannable Advertising */ hci->le_states[0] |= 0x04; /* Connectable Advertising */ - hci->le_states[0] |= 0x08; /* Directed Advertising */ + hci->le_states[0] |= 0x08; /* High Duty Cycle Directed Advertising */ hci->le_states[0] |= 0x10; /* Passive Scanning */ hci->le_states[0] |= 0x20; /* Active Scanning */ - hci->le_states[0] |= 0x40; /* Initiating */ - hci->le_states[0] |= 0x80; /* Connection */ + hci->le_states[0] |= 0x40; /* Initiating + Connection (Master Role) */ + hci->le_states[0] |= 0x80; /* Connection (Slave Role) */ + hci->le_states[1] |= 0x01; /* Passive Scanning + + * Non-connectable Advertising */ hci->le_default_tx_len = DEFAULT_TX_LEN; hci->le_default_tx_time = DEFAULT_TX_TIME; |