Commit Graph

123 Commits

Author SHA1 Message Date
Johan Hedberg
45749f6aad emulator: Fix random address type in LE conn complete events 2014-06-02 13:09:00 +03:00
Johan Hedberg
895e0a16f1 emulator: Fix matching up connections to random addresses 2014-06-02 13:08:53 +03:00
Andrzej Kaczmarek
f5b1a7289a emulator/btdev: Add support for Read TX Power command 2014-05-20 21:55:14 +03:00
Andrzej Kaczmarek
5d1d3dc192 emulator/btdev: Add support for Read RSSI command 2014-05-20 21:55:14 +03:00
Johan Hedberg
0e6b13b702 emulator: Minor coding style fix 2014-03-20 14:15:31 +02:00
Lukasz Rymanowski
fa34a2dc71 emulator: Add handling inquiry_lenght from inquiry command
With this patch, btdev is taking into accoung inquiry_lenght from hci
inquiry command.
Inquiry session will last that long unless number of devices parameter
has been provided different then 0
2014-03-20 14:15:14 +02:00
Lukasz Rymanowski
400cb2885c emulator: Add handling inquiry number of responses 2014-03-20 14:12:52 +02:00
Lukasz Rymanowski
ce83fbee7c emulator: Add inquiry cancel
With this patch, scheduled inquiry session in btdev can be canceled
2014-03-20 14:12:18 +02:00
Lukasz Rymanowski
f1f2ad6046 emulator: Use timeout for sending inquiry results
With this patch btdev uses timeout to schedule inquiry results
It also allows btdev to receive hci commands during inquiry.
Previously btdev was blocked since all the inquiry result were sent in
single loop
2014-03-20 14:11:25 +02:00
Johan Hedberg
18f0cdaac1 emulator/btdev: Add support for negative LTK reply 2014-03-14 13:17:09 +02:00
Johan Hedberg
e392404950 emulator/btdev: Fix checking for non-connectable advertising 2014-03-14 12:42:14 +02:00
Johan Hedberg
2f410a63c2 emulator/btdev: Do correct matching for direct advertising when connecting 2014-03-14 09:44:37 +02:00
Johan Hedberg
c23be68fa2 emulator/btdev: Add proper matching for direct advertising 2014-03-14 09:39:13 +02:00
Johan Hedberg
d45529c987 emulator/btdev: Add helper for selecting advertising address 2014-03-14 09:35:06 +02:00
Johan Hedberg
584e9dc6e6 emulator/btdev: Track direct advertising address 2014-03-14 09:34:29 +02:00
Johan Hedberg
141c10827b emulator/btdev: Track LE scanning own address type 2014-03-14 09:32:58 +02:00
Johan Hedberg
dcf9c2a9aa emulator/btdev: Fix using correct address in advertising reports 2014-03-11 14:27:42 +02:00
Johan Hedberg
a37c747a59 emulator/btdev: Add support for sending LE Scan Response events 2014-03-11 14:25:38 +02:00
Johan Hedberg
b1b55dda9c emulator/btdev: Fix LE adv report types to match adv parameters 2014-03-11 14:16:31 +02:00
Johan Hedberg
1b4a46fec3 emulator/btdev: Store LE adv params for later use 2014-03-11 14:10:49 +02:00
Johan Hedberg
6375533b7f emulator/btdev: Add storing of LE Scan Response Data 2014-03-11 13:42:52 +02:00
Johan Hedberg
9ecff0151c emulator/btdev: Store LE Scan type for later use 2014-03-11 13:42:52 +02:00
Grzegorz Kolodziejczyk
d5ac1d2cda emulator/btdev: Add support for LE set scan response command
This adds support for btdev LE set scan response command.
2014-03-11 13:42:52 +02:00
Anderson Lizardo
6d67d8da9f emulator/btdev: Add dummy support for clearing the LE white list
Add just enough support for being able to bring up LE capable virtual
controllers using "btvirt".

Fixes this error on "btvirt -l2":

Unsupported command 0x2010

And on "hciconfig hci0 up":

Can't init device hci0: Invalid request code (56)
2014-03-07 11:25:03 +02:00
Marcel Holtmann
d1c6a543c7 monitor: Use 64-bit unsigned integer for random number 2014-02-27 14:37:41 -08:00
Johan Hedberg
a83d698f5a emulator: Add HCI_LE_Set_Random_Address support 2014-02-26 19:10:52 +02:00
Johan Hedberg
88373d735a emulator: Fix correct link key type generation 2014-02-03 07:49:42 +02:00
Johan Hedberg
df39364122 emulator: Add HCI_Write_SSP_Debug_Mode support 2014-02-03 07:49:25 +02:00
Johan Hedberg
e52dfcadf5 emulator: Fix SSP IO capability request handling 2014-01-13 16:56:49 +02:00
Johan Hedberg
c85d3d5747 emulator: Add reminding comment to fix link key type 2014-01-13 16:32:41 +02:00
Johan Hedberg
92d3e1b6f2 emulator: Fix emitting bogus encrypt change if we're not connected 2014-01-13 16:32:40 +02:00
Johan Hedberg
579876ea9e emulator: Fix returning correct remote host features 2014-01-13 16:32:40 +02:00
Johan Hedberg
a26be8f057 emulator: Fix completion of SSP user confirm commands 2014-01-13 16:32:40 +02:00
Johan Hedberg
162882534b emulator: Fix SSP rejection status propagation 2014-01-13 14:29:36 +02:00
Johan Hedberg
4ea78ff34b emulator: Add Set Connection Encryption command support 2014-01-13 12:58:15 +02:00
Johan Hedberg
f89e2eb7fb emulator: Encryption should be enabled only when explicitly requested 2014-01-13 12:58:15 +02:00
Johan Hedberg
78d239fd40 emulator: Add missing Transparent SCO feature bit 2014-01-12 09:19:25 +02:00
Marcel Holtmann
e90a074333 emulator: Make use of generic endian conversion macros 2014-01-10 13:05:23 -08:00
Johan Hedberg
8a5967251a emulator: Add basic support for SSP completion 2014-01-10 16:05:08 +02:00
Johan Hedberg
2781eb13f5 emulator: Add basic HCI_IO_Capability_Request_Reply handling 2014-01-10 16:05:07 +02:00
Johan Hedberg
524808ae75 emulator: Add initial IO Capability Request sending when SSP is enabled 2014-01-10 16:05:05 +02:00
Johan Hedberg
0f6fb5c0de emulator: Add basic security mode 3 support 2014-01-09 14:51:51 +02:00
Johan Hedberg
1c3b4eabd0 emulator: Add missing PIN Code Request Reply bit to supported commands 2014-01-08 17:47:08 +02:00
Johan Hedberg
f9b9a06c93 emulator: Fix emitting incorrect auth complete on acceptor side 2014-01-08 16:37:35 +02:00
Johan Hedberg
f8052a6616 emulator: Add initial support for Link Key Notify event 2014-01-08 16:37:34 +02:00
Johan Hedberg
1dd5b101c5 emulator: Add basic support for PIN Code Request Reply command 2014-01-08 16:37:34 +02:00
Johan Hedberg
4f53c2c3cc emulator: Add basic support for Link Key Request Reply command 2014-01-08 16:37:33 +02:00
Johan Hedberg
ed2254b20c emulator: Add initial support for PIN Code Request Negative Reply 2014-01-08 16:37:33 +02:00
Johan Hedberg
52682e25b7 emulator: Add initial handling for link key req neg reply 2014-01-08 16:37:32 +02:00
Johan Hedberg
e6a16562a4 emulator: Add basic auth request completion support 2014-01-08 16:37:32 +02:00