Johan Hedberg
fd61d4719e
emulator/bthost: Add API to wait for bthost readiness
2014-12-03 16:32:48 +02:00
Johan Hedberg
4fe7df6972
emulator/bthost: Add API to enable SC support
2014-12-03 16:32:48 +02:00
Szymon Janc
0cedfa4472
emulator/bthost: Remove empty bthost_stop function
2014-11-04 11:01:22 +02:00
Szymon Janc
5aa62eb427
emulator/bthost: Move smp_start to bthost_create
...
This creates smp while creating bthost allowing for early bailout if
kernel doesn't support crypto. Fix crash if smp_start failed due to
SMP code always assuming valid pointer.
2014-11-04 11:01:20 +02:00
Szymon Janc
5f63c56d48
emulator/bthost: Simplify bthost_create
...
Use new0 instead of malloc+memset for allocating bthost.
2014-11-04 11:00:03 +02:00
Anthony G. Basile
40f6359e91
emulator/serial.c: use posix_openpt() instead of getpt()
...
getpt(3) is glibc-specific and is not provided in musl and possibly
other libc's. Instead, we use use posix_openpt(3) which is equivalent
and portable.
2014-10-07 17:54:30 +03:00
Johan Hedberg
d2cc100329
emulator/smp: Add smp_send() helper that uses bthost_send_cid_v()
2014-10-02 14:18:45 +03:00
Johan Hedberg
e1090776a0
emulator/bthost: Read local features upon init
2014-10-02 14:02:25 +03:00
Jakub Tyszkowski
0d8d87721a
emulator/bthost: Add missing flow_ctrl assignment
...
This fixes following valgrind report:
==3093== Syscall param writev(vector[...]) points to uninitialised
byte(s)
==3093== at 0x5652FA0: writev (writev.c:54)
==3093== by 0x408029: send_iov (bthost.c:484)
==3093== by 0x402530: rfcomm_uih_send.isra.25 (bthost.c:1771)
==3093== by 0x4095BE: bthost_receive_h4 (bthost.c:1872)
==3093== by 0x4029E6: receive_bthost.part.1 (hciemu.c:141)
==3093== by 0x5083CE4: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0)
==3093== by 0x5084047: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0)
==3093== by 0x5084309: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0)
==3093== by 0x415920: tester_run (tester.c:815)
==3093== by 0x40263E: main (tester-main.c:2588)
==3093== Address 0xffefff0b1 is on thread 1's stack
==3093==
2014-10-01 15:54:50 +03:00
Luiz Augusto von Dentz
82b8e31857
emulator/bthost: Add bthost_send_cid_v
2014-09-30 17:26:49 +03:00
Luiz Augusto von Dentz
bc9e863b3a
emulator/bthost: Refactor code using RFCOMM_UIH
...
This refactor code that was using RFCOMM_UIH so it can be reused.
2014-09-30 17:26:49 +03:00
Luiz Augusto von Dentz
9da0e88c0d
emulator/bthost: Avoid coping in l2cap_sig_send
...
This uses scatter io to avoid extra copies inside l2cap_sig_send
2014-09-30 17:26:48 +03:00
Szymon Janc
cc91d165c5
emulator/hciemu: Fix not handling failed read correctly
...
If read failed due to signal or blocking watch was removed resulting
in closing /dev/vhci and emulated adapter being removed.
This was affecting android-tester since premature removal of adapter
is considered error on android daemon.
2014-09-29 10:02:28 +02:00
Marcel Holtmann
508e129d75
build: Move hciemu.c and hciemu.h into emulator directory
2014-09-25 14:39:10 +02:00
Johan Hedberg
6a96a1f670
emulator/smp: Add full key distribution support
2014-09-22 15:17:45 +03:00
Johan Hedberg
5ff28ce7c0
emulator/bthost: Add skeleton for passing encryption changes to SMP
2014-09-19 15:52:30 +03:00
Johan Hedberg
bbcd887764
emulator/bthost: Fix setting new encryption mode for failure status
2014-09-19 15:52:30 +03:00
Johan Hedberg
2c8a8da492
emulator/smp: Use proper defines for SMP opcodes
2014-09-19 11:09:01 +03:00
Luiz Augusto von Dentz
125af7e120
emulator/btdev: Fix invalid memory access
2014-09-18 17:13:14 +03:00
Johan Hedberg
0decc9df11
emulator/smp: Fix pairing response key dist. to what's actually supported
2014-09-18 10:59:57 +03:00
Johan Hedberg
5b1a876e42
emulator/smp: Set correct pairing response values
2014-09-18 10:16:01 +03:00
Johan Hedberg
6b7560c085
emulator/bthost: Add getter functions needed by SMP
2014-09-18 10:10:56 +03:00
Luiz Augusto von Dentz
3d51328b6c
emulator/bthost: Add iovec support
...
This convert bthost_set_send_handler to take struct iovec for doing
scatter io.
2014-09-18 08:04:23 +03:00
Luiz Augusto von Dentz
a7b600b45b
emulator/btdev: Add iovec support
...
This convert btdev_set_send_handler to take struct iovec for doing
scatter io.
2014-09-18 08:04:21 +03:00
Johan Hedberg
077abfe1e1
emulator: Add support for LE connection parameter update procedure
2014-09-17 13:38:26 +03:00
Johan Hedberg
a964070fdd
emulator: Failed encryption shouldn't affect success of LTK reply
2014-09-16 22:07:51 +03:00
Johan Hedberg
de98dccca4
emulator: Indicate encryption failure if LTKs don't match
2014-09-16 16:35:46 +03:00
Johan Hedberg
a6a5100930
emulator: Fix up SMP Pairing Confirm/Random handling
2014-09-16 15:13:34 +03:00
Johan Hedberg
6c50a037c4
emulator: Add support for specifying SMP authentication requirement
2014-09-16 14:30:44 +03:00
Johan Hedberg
d086d9565a
emulator: Use explicit IO capability for bthost
2014-09-13 18:04:27 +03:00
Johan Hedberg
5a40cdff80
emulator: Fix clearing advertising state when connected
2014-09-13 18:04:27 +03:00
Luiz Augusto von Dentz
a528bdce68
emulator/bthost: Fix not matching cid data properly
...
When using bthost_add_l2cap_server the caller expect that both scid and
dcid are the same since the callback only take one value.
2014-09-05 15:43:47 +03:00
Johan Hedberg
504f52524f
emulator/btdev: Fix returning correct remote extended features
2014-09-04 14:03:12 +03:00
Jakub Tyszkowski
f3686a7fb0
emulator/btdev: Fix not disabling le advertising on connection
...
Le Advertising should be disabled after the le connection is
established (Core Spec. 4.1 - Part E, Sec. 7.8.9). Not doing so
results in errors while switching advertisement multiple times during
different connection states.
2014-09-01 15:18:11 +03:00
Marcin Kraglak
66e5db6021
emulator/bthost: Add hci disconnect
2014-08-25 10:57:42 +02:00
Andrei Emeltchenko
259d1febc9
emulator: Fix resource leak closing fd
2014-08-11 16:25:50 +03:00
Johan Hedberg
af31fe0d35
emulator: Fix matching up real advertising address
2014-08-05 13:44:54 +03:00
Johan Hedberg
d886b0817d
emulator: Add support for Read Clock Offset
2014-08-01 12:24:19 +03:00
Marcel Holtmann
9cc6f7d88f
emulator: Add support for Get MWS Transport Layer Configuration
2014-07-23 19:25:42 +02:00
Marcel Holtmann
ed5ca845b1
emulator: Add support for Read Local Supported Codecs command
2014-07-23 19:04:41 +02:00
Jakub Tyszkowski
57e63ba067
emulator: Add flags param to advertise enabling function
...
This allows to pass additional parameter describing wheter to set
flags parameter in advertising data.
This is needed to make device discoverable.
2014-07-18 13:21:26 +02:00
Marcel Holtmann
5182dc7c3d
emulator: Reopen PTY master when slave closes it
2014-07-12 19:49:13 +02:00
Marcel Holtmann
096799fd52
emulator: Add support for providing a pseudo terminal
2014-07-12 15:53:16 +02:00
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
Andrzej Kaczmarek
1a4cb1a207
emulator/bthost: Add support to set auth_req for bthost
...
This patch makes possible to set Authentication_Requirements to be used
in io_capa_request_reply when replying for io_capa_request_evt.
2014-05-19 14:14: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
01095e7774
emulator/bthost: Set advertising parameters before enabling advertising
2014-03-14 12:51:12 +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
8e5ad50cd3
emulator: List LE commands, event and features from Bluetooth 4.1
2014-02-28 20:17:45 -08:00
Marcel Holtmann
53dde8be6c
emulator: Add dummy support for clearing the LE white list
2014-02-28 15:09:55 -08: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
502407f176
emulator: Use shared crypto code instead of custom functions
2014-02-26 17:59:37 +02:00
Marcin Kraglak
f79a9e3b44
emulator/bthost: Fix command queue
...
Now new commands will be pushed to tail. Queue will be consumed
from head, firstly added commands will be sent. It repairs this
warning from android-tester:
==20561== 1,904 bytes in 7 blocks are definitely
lost in loss record 30 of 31
==20561== at 0x4006AB1: malloc (in /usr/lib/valgrind/
vgpreload_memcheck-x86-linux.so)
==20561== by 0x8050293: send_command (bthost.c:389)
==20561== by 0x80543E1: start_stack (hciemu.c:299)
==20561== by 0x41043D00: ??? (in /usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x410470E5: g_main_context_dispatch (in
/usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x41047497: ??? (in
/usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x41047912: g_main_loop_run (in
/usr/lib/libglib-2.0.so.0.3600.4)
==20561== by 0x8055870: tester_run (tester.c:798)
==20561== by 0x804B980: main (android-tester.c:3984)
2014-02-19 17:22:05 +02:00
Johan Hedberg
dd78814e7f
tools/bthost: Fix RFCOMM channel variable type
2014-02-19 15:11:08 +02:00
Johan Hedberg
4ead1cb1ec
emulator/bthost: Rename rfcomm_channel to rfcomm_chan for shorter symbol names
2014-02-19 15:09:34 +02:00
Marcin Kraglak
e157b7f28e
emulator/bthost: Add function to send RFCOMM UIH frames from bthost
...
This will make RFCOMM UIH frame and fill with data passed by user.
It also adds bthost internal tracking of RFCOMM connections to store
cid and channel - user have to pass only conenction handle and channel.
2014-02-19 15:03:27 +02:00
Marcin Kraglak
f5e82813af
emulator/bthost: Add api to handle RFCOMM data on bthost
...
With this change user can handle data received on RFCOMM connection.
2014-02-19 15:00:20 +02:00
Marcin Kraglak
68e94df753
emulator/bthost: Check length of received RFCOMM UIH frames
...
Add correct calculation of frame length. If frame is too short, ignore it.
2014-02-17 15:49:22 +02:00
Marcin Kraglak
8e9e005aa0
emulator/bthost: Check length of received RFCOMM UA frames
...
Check length of RFCOMM UA frames and ignore if frame is too short.
2014-02-17 14:31:20 +02:00
Marcin Kraglak
be3841b10d
emulator/bthost: Check length of received RFCOMM DM frames
...
Ignore too short received RFCOMM DM frames.
2014-02-17 14:31:18 +02:00
Marcin Kraglak
fba18071c6
emulator/bthost: Check length of received RFCOMM DISC frame
...
Don't access rfcomm_hdr struct and ignore if frame is too short.
2014-02-17 14:31:16 +02:00
Marcin Kraglak
b2b4716b3c
emulator/bthost: Check length of received RFCOMM SABM frame
...
This will check length of received SABM frame. Ignore frame if
it is too short.
2014-02-17 14:31:14 +02:00
Marcel Holtmann
69c85b61aa
emulator: Add support LE_Encrypt and LE_Rand support
2014-02-17 02:06:05 -08:00
Marcel Holtmann
6898ecdf0e
emulator: Update copyright and license details
2014-02-12 09:24:13 -08: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
Anderson Lizardo
64bc96534b
emulator: Fix crash if socket(AF_ALG) is not supported by the kernel
...
In this situation, smp_stop() was being called with NULL pointer.
Crash detected by valgrind:
==7925== Invalid read of size 4
==7925== at 0x8052F18: smp_stop (smp.c:480)
==7925== by 0x8052542: bthost_stop (bthost.c:2073)
==7925== by 0x805521D: hciemu_unref (hciemu.c:372)
==7925== by 0x8058C65: test_post_teardown (android-tester.c:464)
==7925== by 0x8055DE7: tester_teardown_complete (tester.c:533)
==7925== by 0x8055501: teardown_callback (tester.c:312)
==7925== by 0x408348F: g_idle_dispatch (gmain.c:5250)
==7925== by 0x4086A75: g_main_context_dispatch (gmain.c:3065)
==7925== by 0x4086E14: g_main_context_iterate.isra.23 (gmain.c:3712)
==7925== by 0x40872FA: g_main_loop_run (gmain.c:3906)
==7925== by 0x41744D2: (below main) (libc-start.c:226)
==7925== Address 0x8 is not stack'd, malloc'd or (recently) free'd
2014-01-27 09:59:28 -08:00
Marcel Holtmann
ccbbb8dd3c
emulator: Add simple HFP emulator for testing
2014-01-25 12:17:09 -08:00
Anderson Lizardo
b23ed9bf8d
emulator: Fix unaligned memory access compilation errors
...
The u128_xor() function does proper aligned access and accepts void *
arguments, therefore the casts are unnecessary and trigger clang errors.
2014-01-21 11:07:37 +02:00
Johan Hedberg
35b50f0f34
emulator/bthost: Add dummy entries for LTK reply completion
2014-01-20 16:28:03 +02:00
Johan Hedberg
f3db25a05b
emulator/bthost: Add SMP callback to fetch LTK
2014-01-20 16:28:03 +02:00
Johan Hedberg
741d28de64
emulator/bthost: Add warning for unsupported LE Meta events
2014-01-20 16:27:57 +02:00
Johan Hedberg
fb922ee610
emulator/bthost: Add SMP support
2014-01-20 16:26:33 +02:00
Johan Hedberg
2688bf5c6e
emulator/bthost: Add dummy handler for User Confirm Request Reply completion
2014-01-20 13:14:28 +02:00
Johan Hedberg
23b2191c07
emulator/bthost: Remove unnecessary printf
2014-01-17 15:29:31 +02:00
Johan Hedberg
dee79b4635
emulator/bthost: More RFCOMM code cleanups
2014-01-16 12:23:16 +02:00
Johan Hedberg
d11ac83a18
emulator/bthost: Further cleanups to the RFCOMM code
2014-01-16 12:23:15 +02:00
Johan Hedberg
bce8cc0159
emulator/bthost: Clean up RFCOMM related code
2014-01-16 12:23:15 +02:00
Johan Hedberg
a48b49121f
tools/bthost: Remove useless channel parameter from RFCOMM callback
2014-01-16 12:23:15 +02:00
Marcin Kraglak
c64b9baa99
emulator/bthost: Call rfcomm_connect_cb when connected
...
This will call connect callback when connected or failed to connect.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
37a1b0fa3d
emulator/bthost: Add implementation to PN RSP
...
This will send sabm command if PN_RSP will be received.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
287c075913
emulator/bthost: Ad implementation of rfcomm_ua_recv
...
This will handle ua responses in bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
90fd2a2f98
emulator/bthost: Implement bthost_connect_rfcomm
...
This method will start L2CAP connection on RFCOMM PSM and continue
connecting to rfcomm server. User can specify callback to be called
after connection.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
3fbe314714
emulator/bthost: Implement recv_disc rfcomm frame in bthost
2014-01-16 12:23:15 +02:00
Marcin Kraglak
662c19903f
emulator/bthost: Service msc frames
2014-01-16 12:23:15 +02:00
Marcin Kraglak
f167df0e3a
emulator/bthost: Add recv_pn implementation
2014-01-16 12:23:15 +02:00
Marcin Kraglak
cbc1720d4f
emulator/bthost: Add rfcomm_mcc_recv stub
...
It will handle mcc frames in bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
983ecc30e4
emulator/bthost: Add recv_sabm imnplementation
...
This will handle sabm frames and send ua or dm frame.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
75c7ab2d99
emulator/bthost: Add method to create rfcomm server
...
It allows user to create rfcomm server on bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
0c27ca7f45
emulator/bthost: Add initial rfcomm handling
...
This is initial rfcomm handling in bthost.
2014-01-16 12:23:15 +02:00
Johan Hedberg
3c08f44715
emulator/bthost: Fix requesting encryption if authentication failed
2014-01-15 14:38:04 +02:00
Johan Hedberg
f072c7573b
emulator/bthost: Add API to request authentication
2014-01-15 14:34:01 +02:00
Johan Hedberg
7dfc7e9614
emulator/bthost: Add basic support for link key requests
2014-01-15 14:33:38 +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
27d79b3a73
emulator/bthost: Add API to reject SSP User Confirmation
2014-01-13 14:29:06 +02:00
Johan Hedberg
0903fa12a5
emulator/bthost: Add support for specifying custom IO capability
2014-01-13 13:23:45 +02:00
Marcin Kraglak
62041e0a4d
emulator/bthost: Fix sending L2CAP config req
...
Send L2CAP config request with correct dcid field. It worked
well only if scid and dcid of L2CAP connection were the same.
2014-01-13 13:05:44 +02:00
Johan Hedberg
f881e165ec
emulator/bthost: Request encryption when authentication completes
2014-01-13 12:58:16 +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
cee10685ae
emulator/bthost: Add basic handling of user confirm request and SSP complete events
2014-01-10 16:05:08 +02:00
Johan Hedberg
0143a51c32
emulator: Add dummy cmd complete handler for IO Capability Request Reply
2014-01-10 16:05:07 +02:00
Johan Hedberg
9980744cd4
emulator/bthost: Add basic IO Capability Request & Response handling
2014-01-10 16:05:07 +02:00
Johan Hedberg
2781eb13f5
emulator: Add basic HCI_IO_Capability_Request_Reply handling
2014-01-10 16:05:07 +02:00
Johan Hedberg
bc3b7427cf
tools/bthost: Add dummy handler for HCI_Write_SSP_Mode completion
2014-01-10 16:05:06 +02:00
Johan Hedberg
262ee6bd02
emulator/bthost: Track remote address in btconn
2014-01-10 16:05:06 +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
12d51b2ed1
emulator/bthost: Add support for enabling SSP mode
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
4cd914bd4f
emulator/bthost: Add dummy handler for Authentication Complete HCI event
2014-01-08 16:37:34 +02:00
Johan Hedberg
6f054b115f
emulator/bthost: Add dummy handler for Link Key Notification HCI event
2014-01-08 16:37:34 +02:00
Johan Hedberg
f8052a6616
emulator: Add initial support for Link Key Notify event
2014-01-08 16:37:34 +02:00
Johan Hedberg
1ba4a4fff3
emulator/bthost: Add basic PIN Code Request handling
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