summaryrefslogtreecommitdiff
path: root/emulator/hciemu.c
Commit message (Collapse)AuthorAgeFilesLines
* bthost: Add support for BT_H4_ISO_PKTLuiz Augusto von Dentz2022-03-071-0/+1
| | | | This adds sending and receiving BT_H4_ISO_PKT packets.
* emulator: Add support to get the advertising addressTedd Ho-Jeong An2021-10-251-0/+15
| | | | | This patch add supprt emulator to get the advertising address of the central device.
* emulator: Add support to config the accept and resolve listTedd Ho-Jeong An2021-10-251-0/+28
| | | | | This patch adds interfaces to config the accept list and resolve list in the btdev.
* mgmt-tester: Make use of vhci_set_force_suspend/vhci_set_force_wakeupLuiz Augusto von Dentz2021-10-181-0/+8
| | | | | | This replaces the direct setting debugfs to use vhci instance which properly stores the controller index so it can be used even if there are real controllers in the system.
* hciemu: Use vhci_open to instanciate a vhci btdevLuiz Augusto von Dentz2021-10-181-53/+74
| | | | | This makes use of vhci_open to isntanciate the vhci btdev since that has proper support for reading the index assigned to it.
* emulator: Inclusive language changesArchie Pusaka2021-09-211-10/+11
| | | | | | | | BT core spec 5.3 promotes the usage of inclusive languages. This CL replaces some terms with the more appropriate counterparts, such as "central", "peripheral", and "accept list". Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* bthost: Add bthost_debug and use it on smp.cLuiz Augusto von Dentz2021-08-121-2/+2
| | | | | This adds bthost_debug which wraps util_debug and make use of it in smp.c.
* hciemu: Add support for multiple clientsLuiz Augusto von Dentz2020-12-171-77/+157
| | | | This adds support for creating multiple clients (bthost).
* hciemu: Fix crash when test is aborted during pre setupLuiz Augusto von Dentz2020-11-131-1/+7
| | | | | | If the tester_pre_setup_failed is called all timeout related to the test must be cancelled as the test should have been freed by the application and the next test is about to start.
* emulator/hciemu: Add debug supportLuiz Augusto von Dentz2020-11-021-0/+48
| | | | | This adds bthost_set_debug which can be used to debug internals of hciemu.
* emulator: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* emulator: Fix version number of ISO related featuresLuiz Augusto von Dentz2020-04-231-2/+2
| | | | There are part of Bluetooth 5.2 specification not 6.0.
* emulator: Add initial support for BT 5.2Luiz Augusto von Dentz2020-02-031-0/+3
| | | | This adds the initial command/event decoding for 5.2.
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* emulator: Add 5.0 feature supportJaganath Kanakkassery2018-06-181-0/+3
| | | | | This adds new hciemu for BT 5.0. Also adds extended advertising, scanning and connection support in btdev and bthost
* emulator: Add initial LE states to btdev and API to set new oneŁukasz Rymanowski2018-02-121-0/+8
|
* tools/mgmt-tester: Test read extended controller infoMichał Narajowski2016-09-071-0/+10
| | | | | | This patch tests read extended controller info command added in kernel. It also adds support for sending multiple mgmt commands on setup and expecting hci command on setup.
* lib: Define HCI_PRIMARY and use it instead of HCI_BREDRMarcel Holtmann2016-07-041-1/+2
|
* emulator/hciemu: Fix return valueGowtham Anandha Babu2015-11-161-2/+2
| | | | | | | | | | | | | | | | make throws out the following errors. emulator/hciemu.c: In function ‘hciemu_get_master_scan_enable’: emulator/hciemu.c:433:3: error: return makes integer from pointer without a cast [-Werror] return NULL; ^ emulator/hciemu.c: In function ‘hciemu_get_master_le_scan_enable’: emulator/hciemu.c:441:3: error: return makes integer from pointer without a cast [-Werror] return NULL; ^ cc1: all warnings being treated as errors Fixed by returning zero.
* emulator: Add API to get BR/EDR scan_enable valueJohan Hedberg2015-11-161-0/+8
|
* emulator: Return raw LE scan_enable valueJohan Hedberg2015-11-161-2/+2
| | | | | | This is more future proof (in case other values besides 0x00/0x01 are introduced) and consistent with a similar BR/EDR API that will be added soon.
* emulator: add support for checking le scan stateJakub Pawlowski2015-11-111-0/+8
|
* emulator: Add support for emulating Bluetooth 2.0 controllersMarcel Holtmann2015-03-291-0/+3
|
* emulator: Use local includes for libbluetooth headersMarcel Holtmann2015-02-121-2/+2
|
* emulator/bthost: Remove empty bthost_stop functionSzymon Janc2014-11-041-2/+0
|
* emulator/hciemu: Fix not handling failed read correctlySzymon Janc2014-09-291-0/+7
| | | | | | | | 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.
* build: Move hciemu.c and hciemu.h into emulator directoryMarcel Holtmann2014-09-251-0/+501