summaryrefslogtreecommitdiff
path: root/emulator/le.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Fix errors with glibc < 2.25Fabrice Fontaine2022-02-151-2/+1
| | | | | | | | | | | | | | | | | | getrandom and sys/random.h are only available since glibc 2.25: https://www.gnu.org/software/gnulib/manual/html_node/sys_002frandom_002eh.html resulting in the following build failures since version 5.63 and https://git.kernel.org/pub/scm/bluetooth/bluez.git/log/?qt=grep&q=getrandom: plugins/autopair.c:20:24: fatal error: sys/random.h: No such file or directory #include <sys/random.h> ^ To fix this build failure, add util_getrandom and a fallback (borrowed from pipewire and licensed under MIT): https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/src/pipewire/utils.c Fixes: - http://autobuild.buildroot.org/results/6b8870d12e0804d6154230a7322c49416c1dc0e2
* emulator: Replace random number generation functionTedd Ho-Jeong An2021-12-081-2/+9
| | | | | | | | This patch replaces the rand() function to the getrandom() syscall. It was reported by the Coverity scan rand() should not be used for security-related applications, because linear congruential algorithms are too easy to break
* emulator: Inclusive language changesArchie Pusaka2021-09-211-42/+42
| | | | | | | | 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>
* monitor: Inclusive language changesArchie Pusaka2021-09-211-16/+16
| | | | | | | | 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", "link key", and "accept list" Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* 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: Improved handling of Set Default PHY commandMarcel Holtmann2017-05-021-5/+69
|
* emulator: Enable LE power class and minimum channels featureMarcel Holtmann2017-05-011-2/+2
|
* emulator: Fix comments for event mask descriptionsMarcel Holtmann2017-05-011-9/+9
|
* emulator: Add basic PHY command handling to LE only controllerMarcel Holtmann2017-05-011-5/+52
|
* emulator: Add Bluetooth 5.0 defines to LE only controllerMarcel Holtmann2017-05-011-2/+51
|
* lib: Define HCI_PRIMARY and use it instead of HCI_BREDRMarcel Holtmann2016-07-041-1/+1
|
* emulator: Add support for scanning on different channelsMarcel Holtmann2015-07-141-2/+17
|
* emulator: Add support for scan window and scan interval handlingMarcel Holtmann2015-07-141-1/+72
|
* emulator: Add support for using advertising delay valuesMarcel Holtmann2015-07-141-3/+15
|
* emulator: Fix missing includesSzymon Janc2015-03-121-0/+1
| | | | | | | writev requires #include <sys/uio.h> memcpy and memset require #include <string.h> This fix compilation error with musl.
* emulator: Use local includes for libbluetooth headersMarcel Holtmann2015-02-121-2/+2
|
* shared: Move mainloop implementation from monitor to sharedJohan Hedberg2015-02-121-1/+1
|
* emulator: Store own and peer address information for LE connectionsMarcel Holtmann2014-12-171-0/+13
|
* emulator: Add controller based address resolution for advertising reportsMarcel Holtmann2014-12-171-8/+57
|
* emulator: Fix own address type handling for advertising parametersMarcel Holtmann2014-12-171-2/+8
|
* emulator: Enable the LE feature bit for supporting LL PrivacyMarcel Holtmann2014-12-171-7/+7
|
* emulator: Add support for read peer and local random addressesMarcel Holtmann2014-12-151-3/+46
|
* emulator: Add support for handling white list scan filteringMarcel Holtmann2014-12-141-0/+21
|
* emulator: Add skeleton for HCI Disconnect command supportMarcel Holtmann2014-12-141-1/+8
|
* emulator: Move command for event mask page 2 to correct locationMarcel Holtmann2014-12-141-14/+15
|
* emulator: Add missing storage of local and peer IRK valuesMarcel Holtmann2014-12-141-3/+5
|
* emulator: Add support for adding and removing entries of resolving listMarcel Holtmann2014-12-141-4/+58
|
* emulator: Add support for adding and removing entries of white listMarcel Holtmann2014-12-141-3/+57
|
* emulator: Add support for duplicate filtering during scanningMarcel Holtmann2014-12-141-0/+44
|
* emulator: Add support for LE create connection commands and eventsMarcel Holtmann2014-12-141-4/+66
|
* emulator: Fix missing direct advertising address and typeMarcel Holtmann2014-12-141-0/+2
|
* emulator: Add support for handling advertising interval settingMarcel Holtmann2014-12-141-17/+80
|
* emulator: Change supported LE states to include scanning and advertisingMarcel Holtmann2014-12-141-3/+5
|
* emulator: Fix minor typoJohan Hedberg2014-12-141-1/+1
|
* emulator: Add support for simple advertising and scanningMarcel Holtmann2014-12-141-0/+67
|
* emulator: Add support for LE scan parameters and LE scan enable commandsMarcel Holtmann2014-12-141-2/+125
|
* emulator: Add skeleton for virtual PHY handlingMarcel Holtmann2014-12-141-0/+4
|
* emulator: Add support for changing data length commandMarcel Holtmann2014-12-131-2/+49
|
* emulator: Add support for resolving list enable and timeout commandsMarcel Holtmann2014-12-131-2/+53
|
* emulator: Add support for LE data length commandsMarcel Holtmann2014-12-131-3/+89
|
* emulator: Add support white and resolving list commandsMarcel Holtmann2014-12-131-7/+129
|
* emulator: Enable LE Ping feature for LE only controllerMarcel Holtmann2014-12-071-1/+1
|
* emulator: Add support for event mask page 2 for LE only controllerMarcel Holtmann2014-12-071-7/+22
|
* emulator: Use the LE event mask for LE related eventsMarcel Holtmann2014-12-071-2/+8
|
* emulator: Add support for LE local public key and DHKey commandsMarcel Holtmann2014-12-071-0/+56
|
* emulator: Add supported commands for Bluetooth 4.2Marcel Holtmann2014-12-051-0/+14
|
* emulator: Enable LE Extended Scanner Filter Policies featureMarcel Holtmann2014-12-051-0/+8
|
* emulator: Use Bluetooth 4.2 version for LE only simulationMarcel Holtmann2014-12-041-2/+2
|
* emulator: List LE commands, event and features from Bluetooth 4.1Marcel Holtmann2014-02-281-2/+13
|
* emulator: Add dummy support for clearing the LE white listMarcel Holtmann2014-02-281-1/+13
|