| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This adds the following tests for encrypted broadcast:
ISO Broadcaster Encrypted - Success
ISO Broadcaster Receiver Encrypted - Success
|
|
|
|
|
| |
Split bt_iso_qos into dedicated unicast and broadcast
structures and add additional broadcast parameters.
|
|
|
|
|
|
|
|
| |
Change bthost_send_iso to take packet sequence number and timestamp, and
allow it to send timestamped HCI ISO data packets.
Currently, btdev passes through ISO packets, so this can also be used to
test RX timestamping.
|
|
|
|
|
| |
This enables setting an accept callback which can return reject
reason if the connection shall not be accepted.
|
|
|
|
|
| |
This adds a destroy callback to bthost_add_iso_hook so its user can
detect when the hook is freed when the connection is disconnected.
|
|
|
|
| |
This enables setting QoS other then the mandatory 16_2_1.
|
|
|
|
| |
Create BIG shall set proper values for interval, latency, rtn and phy.
|
|
|
|
| |
This introduces bthost_set_cig_params and bthost_create_cis.
|
|
|
|
| |
This adds bthost_create_big
|
|
|
|
| |
This adds bthost_set_pa_params and bthost_set_pa_enable.
|
|
|
|
| |
This adds sending and receiving BT_H4_ISO_PKT packets.
|
|
|
|
|
| |
This increase the number of credits so bigger packets can be sent by
the likes of rfcomm-tester.
|
|
|
|
|
| |
This fixes the length calculation for large packets that requires more
than 1 byte.
|
|
|
|
|
| |
Large packets requires the support of ACL fragmentation in order to be
properly processed.
|
|
|
|
|
| |
This patch fixes the uninitiailzed varialble(CWE-457) reported by
the Coverity scan.
|
|
|
|
| |
This patch adds support LE_Extended_Advertising_Report Eevnt in bthost.
|
|
|
|
|
|
|
|
|
|
| |
The address type given to the init_conn is the peer address type
(btdev) not the bthost address type, the old code assume it could use
since only BDADDR_BREDR or BDADDR_LE_PUBLIC was tested but with the
upcoming support for LL Privacy the peer address type would become
BDADDR_LE_RANDOM which cannot be used as address type of bthost as that
doesn't support random addresses and would likely cause SMP to fail when
pairing.
|
|
|
|
|
| |
This adds bthost_debug which wraps util_debug and make use of it in
smp.c.
|
|
|
|
|
|
|
| |
Based on the SPEC 5.2 Vol 4, Part E, Section 7.8.54, the
LE_Set_Extended_Advertising_Data_Command may be issued after an
advertising set identifed by the Advertising_Handle has been created
using the HCI_LE_Set_Extended_Advertising_Parameters command.
|
|
|
|
|
| |
This properly initialize the address type according to the connection
address.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Syscall param writev(vector[...]) points to uninitialised byte(s)
at 0x4A8A497: writev (in /usr/lib64/libc-2.31.so)
by 0x1365C1: send_packet (bthost.c:509)
by 0x1365C1: send_packet (bthost.c:492)
by 0x1365C1: next_cmd (bthost.c:737)
by 0x137578: evt_cmd_complete (bthost.c:882)
by 0x137578: process_evt (bthost.c:1343)
by 0x137578: bthost_receive_h4 (bthost.c:2414)
by 0x12DF49: receive_bthost.part.0 (hciemu.c:134)
by 0x48B978E: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x48B9B17: ??? (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x48B9E32: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x14A664: mainloop_run (mainloop-glib.c:66)
by 0x14AA41: mainloop_run_with_signal (mainloop-notify.c:188)
by 0x149A7B: tester_run (tester.c:871)
by 0x129C77: main (mgmt-tester.c:10219)
Address 0x4c48c05 is 21 bytes inside a block of size 280 alloc'd
at 0x483CAE9: calloc (vg_replace_malloc.c:760)
by 0x136487: queue_command (bthost.c:472)
by 0x136487: send_command (bthost.c:715)
by 0x13948A: bthost_set_ext_adv_enable (bthost.c:2581)
by 0x12CEBF: trigger_device_found (mgmt-tester.c:8513)
by 0x148C9A: wait_callback (tester.c:749)
by 0x48BA330: ??? (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x48B978E: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x48B9B17: ??? (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x48B9E32: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.6400.6)
by 0x14A664: mainloop_run (mainloop-glib.c:66)
by 0x14AA41: mainloop_run_with_signal (mainloop-notify.c:188)
by 0x149A7B: tester_run (tester.c:871)
|
|
|
|
|
|
| |
Ident are only unique per request/response pair so if a remote request
is initiated we shall not attempt to run the callback even if the ident
matches.
|
|
|
|
| |
This enables bthost to act as acceptor of LE CIS Request.
|
|
|
|
|
| |
This adds bthost_set_debug which can be used to debug internals of
bthost.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds SPDX License Identifier and removes the license text.
-------------------------------------
License COUNT
-------------------------------------
LGPL-2.1-or-later : 20
GPL-2.0-or-later : 2
License: LGPL-2.1-or-later
emulator/server.c
emulator/amp.c
emulator/hciemu.c
emulator/vhci.c
emulator/btdev.c
emulator/serial.h
emulator/le.h
emulator/le.c
emulator/main.c
emulator/amp.h
emulator/hciemu.h
emulator/bthost.h
emulator/btdev.h
emulator/vhci.h
emulator/serial.c
emulator/phy.c
emulator/smp.c
emulator/phy.h
emulator/bthost.c
emulator/server.h
License: GPL-2.0-or-later
emulator/b1ee.c
emulator/hfp.c
|
|
|
|
|
|
| |
This is to test the behaviour of L2CAP channel when closed with
shut_down(sock, SHUT_WR). In this case, we should wait until we
receive a disconnection response before raising G_IO_HUP.
|
|
|
|
|
| |
This adds support for ECRED Connection request/response which will be
used by l2cap-runner to test L2CAP_MODE_EXT_FLOWCTL mode.
|
| |
|
|
|
|
|
| |
This adds new hciemu for BT 5.0. Also adds extended advertising,
scanning and connection support in btdev and bthost
|
| |
|
| |
|
|
|
|
| |
This allows to set any ADV data and not just flags.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
We should only move to do RFCOMM operations once we exist the CONFIG
state. This means not doing anything if we get a "pending" response and
moving to RFCOMM only once the config req/rsp messages are exchanged.
This patch still isn't a "complete" fix in that it only waits for a
response to our config request, but it's good enough for now and makes
the RFCOMM server tests in rfcomm-tester pass again.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|