summaryrefslogtreecommitdiff
path: root/emulator/btdev.h
Commit message (Collapse)AuthorAgeFilesLines
* btdev: Add support for setting bdaddrLuiz Augusto von Dentz2022-10-101-0/+2
| | | | | This adds btdev_set_bdaddr so it is possible to set an arbritrary address.
* emulator: Add support for vendor commandsLuiz Augusto von Dentz2022-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for vendor commands reserving a single opcode (0xfc10) so it can be extended using subcommands, similar to how MSFT works. The first subcommand (0x00) enables the emulator to generate arbitrary events using the commands parameters: > tools/hcitool cmd 3f 10 00 22 24 d0 d0 d0 d0 d0 d0 ff ff < HCI Command: Vendor (0x3f|0x0010) plen 11 00 22 24 d0 d0 d0 d0 d0 d0 ff ff ."$........ Bluetooth: hci0: Malformed HCI Event: 0x22 > HCI Event: Inquiry Result with R.. (0x22) plen 9 Num responses: 36 Page scan repetition mode: Reserved (0xff) Page period mode: Reserved (0xff) Class: 0xffffd0 Major class: Uncategorized, specific device code not specified Minor class: 0x34 Limited Discoverable Mode invalid service class Clock offset: 0x6368 RSSI: 105 dBm (0x69) > HCI Event: Command Complete (0x0e) plen 4 Vendor (0x3f|0x0010) ncmd 1 Status: Success (0x00)
* emulator: Add support to get the advertising addressTedd Ho-Jeong An2021-10-251-0/+2
| | | | | 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/+4
| | | | | This patch adds interfaces to config the accept list and resolve list in the btdev.
* vhci: Add functions to interface with debugfsLuiz Augusto von Dentz2021-10-181-0/+3
| | | | This adds functions that can be used to set debugfs options.
* emulator/btdev: Add debug supportLuiz Augusto von Dentz2020-11-021-0/+5
| | | | | This adds btdev_set_debug which can be used to debug internals of btdev.
* 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-1/+1
| | | | 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/+1
| | | | This adds the initial command/event decoding for 5.2.
* emulator: Add 5.0 feature supportJaganath Kanakkassery2018-06-181-0/+1
| | | | | 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-1/+2
|
* emulator: Add API to get BR/EDR scan_enable valueJohan Hedberg2015-11-161-0/+2
|
* emulator: Return raw LE scan_enable valueJohan Hedberg2015-11-161-1/+1
| | | | | | 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/+2
|
* emulator: Add support for emulating Bluetooth 2.0 controllersMarcel Holtmann2015-03-291-0/+1
|
* emulator/btdev: Add iovec supportLuiz Augusto von Dentz2014-09-181-1/+1
| | | | | This convert btdev_set_send_handler to take struct iovec for doing scatter io.
* emulator: Add btdev_get_features API (needed for SCO tests)Frédéric Dalleau2013-08-011-0/+1
|
* emulator: Add support for delete a hookEder Ruiz Maria2013-07-241-0/+3
|
* emulator: Add support for pre/post command/event hooksEder Ruiz Maria2013-07-241-0/+15
| | | | | Now who use emulator can add hooks to manipulate hci packets before and after process commands and send events.
* emulator: Remove unneeded btdev_set_bdaddr functionJohan Hedberg2013-04-301-1/+0
|
* emulator: Add getter function for device address in btdevJefferson Delfes2013-04-301-0/+1
| | | | This helper function returns bdaddr field from btdev.
* emulator: Create separate BR/EDR/LE and BR/EDR device typesJohan Hedberg2013-01-311-0/+1
|
* emulator: Relax license restrictions on device emulationMarcel Holtmann2012-12-171-9/+9
|
* emulator: Add support for custom HCI command handlingMarcel Holtmann2012-12-171-0/+29
|
* emulator: Add support for setting Bluetooth device addressMarcel Holtmann2012-12-151-0/+2
|
* emulator: Add type definition for AMP controllerMarcel Holtmann2012-10-291-0/+1
|
* emulator: Add stub for LE single mode devicesMarcel Holtmann2012-10-291-0/+1
|
* emulator: Allow specifying controller typeMarcel Holtmann2012-10-291-1/+5
|
* emulator: Add initial version of new emulatorMarcel Holtmann2012-02-271-0/+38